mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
fb44b524fd
|
@ -79,12 +79,8 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common {
|
|||
header($name . ": " . $value);
|
||||
}
|
||||
}
|
||||
$hookObjs = $this->getHookObjects('SeedDMS_View_Bootstrap');
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'startPage')) {
|
||||
$hookObj->startPage($this);
|
||||
}
|
||||
}
|
||||
if($this->hasHook('startPage'))
|
||||
$this->callHook('startPage');
|
||||
echo "<!DOCTYPE html>\n";
|
||||
echo "<html lang=\"en\">\n<head>\n";
|
||||
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
|
||||
|
@ -147,11 +143,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
echo "<div class=\"splash\" data-type=\"".$flashmsg['type']."\"".(!empty($flashmsg['timeout']) ? ' data-timeout="'.$flashmsg['timeout'].'"': '').">".$flashmsg['msg']."</div>\n";
|
||||
}
|
||||
echo "<div class=\"statusbar-container\"><h1>".getMLText('recent_uploads')."</h1></div>\n";
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'startBody')) {
|
||||
$hookObj->startBody($this);
|
||||
}
|
||||
}
|
||||
if($this->hasHook('startBody'))
|
||||
$this->callHook('startBody');
|
||||
} /* }}} */
|
||||
|
||||
function htmlAddHeader($head, $type='js') { /* {{{ */
|
||||
|
@ -166,13 +159,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
|
||||
function htmlEndPage($nofooter=false) { /* {{{ */
|
||||
if(!$nofooter) {
|
||||
$hookObjs = $this->getHookObjects('SeedDMS_View_Bootstrap');
|
||||
$html = $this->footNote();
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'footNote')) {
|
||||
$html = $hookObj->footNote($this, $html);
|
||||
}
|
||||
}
|
||||
if($this->hasHook('footNote'))
|
||||
$html = $this->callHook('footNote', $html);
|
||||
echo $html;
|
||||
if($this->params['showmissingtranslations']) {
|
||||
$this->missingLanguageKeys();
|
||||
|
@ -317,15 +306,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
}
|
||||
echo " </ul>\n";
|
||||
|
||||
$hookObjs = $this->getHookObjects('SeedDMS_View_Bootstrap');
|
||||
echo " <ul class=\"navbar-nav\">\n";
|
||||
$menuitems = array();
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'globalNavigationBar')) {
|
||||
$menuitems = $hookObj->globalNavigationBar($this, $menuitems);
|
||||
}
|
||||
}
|
||||
if($this->hasHook('globalNavigationBar'))
|
||||
$menuitems = $this->callHook('globalNavigationBar', $menuitems);
|
||||
foreach($menuitems as $menuitem) {
|
||||
if(!empty($menuitem['children'])) {
|
||||
echo " <li class=\"nav-item dropdown\">\n";
|
||||
|
@ -413,11 +398,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$menuitems['my_account'] = array('link'=>"../out/out.MyAccount.php", 'label'=>'my_account');
|
||||
if ($accessobject->check_view_access('TransmittalMgr'))
|
||||
$menuitems['my_transmittals'] = array('link'=>"../out/out.TransmittalMgr.php", 'label'=>'my_transmittals');
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'userMenuItems')) {
|
||||
$menuitems = $hookObj->userMenuItems($this, $menuitems);
|
||||
}
|
||||
}
|
||||
if($this->hasHook('userMenuItems'))
|
||||
$menuitems = $this->callHook('userMenuItems', $menuitems);
|
||||
if($menuitems) {
|
||||
foreach($menuitems as $menuitem) {
|
||||
echo " <a class=\"dropdown-item\" href=\"".$menuitem['link']."\">".getMLText($menuitem['label'])."</a>\n";
|
||||
|
@ -2842,13 +2824,16 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
|||
* @return string
|
||||
*/
|
||||
function getListRowPath($object) { /* {{{ */
|
||||
$belowtitle = "<br /><span style=\"font-size: 85%;\">".getMLText('in_folder').": /";
|
||||
$belowtitle = '';
|
||||
$folder = $object->getParent();
|
||||
if($folder) {
|
||||
$belowtitle .= "<br /><span style=\"font-size: 85%;\">".getMLText('in_folder').": /";
|
||||
$path = $folder->getPath();
|
||||
for ($i = 1; $i < count($path); $i++) {
|
||||
$belowtitle .= htmlspecialchars($path[$i]->getName())."/";
|
||||
}
|
||||
$belowtitle .= "</span>";
|
||||
}
|
||||
return $belowtitle;
|
||||
} /* }}} */
|
||||
|
||||
|
@ -3156,11 +3141,13 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
|||
if(!empty($extracontent['begin_action_list']))
|
||||
$content .= $extracontent['begin_action_list'];
|
||||
$subFolderAccessMode = $subFolder->getAccessMode($user);
|
||||
if ($accessop->check_view_access('RemoveFolder')) {
|
||||
if($subFolderAccessMode >= M_ALL) {
|
||||
$content .= $this->printDeleteFolderButton($subFolder, 'splash_rm_folder', true);
|
||||
} else {
|
||||
$content .= '<span style="padding: 2px; color: #CCC;"><i class="fa fa-remove"></i></span>';
|
||||
}
|
||||
}
|
||||
if($subFolderAccessMode >= M_READWRITE) {
|
||||
$content .= '<a class_="btn btn-mini" href="../out/out.EditFolder.php?folderid='.$subFolder->getID().'" title="'.getMLText("edit_folder_props").'"><i class="fa fa-edit"></i></a>';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user