mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
dee7977016
|
@ -30,7 +30,7 @@ RewriteRule "^styles/.*$" "-" [L]
|
|||
# Added for old extensions which do not use routes
|
||||
RewriteRule ^ext/[^/]+/icon.(?:png|svg)$ - [L]
|
||||
RewriteCond %{REQUEST_URI} "ext/[^/]+/"
|
||||
RewriteRule !^ext/[^/]+/.*(?:op|out|res) - [F]
|
||||
RewriteRule !^ext/[^/]+/.*(?:op|out|res|node_modules) - [F]
|
||||
RewriteCond %{REQUEST_URI} "ext/[^/]+/res/.*$" [NC]
|
||||
RewriteRule !^ext/[^/]+/res/.*\.(?:css|js|png|svg) - [F]
|
||||
RewriteCond %{REQUEST_FILENAME} -f
|
||||
|
|
|
@ -49,6 +49,7 @@ class UI extends UI_Default {
|
|||
global $settings, $dms, $user, $session, $extMgr;
|
||||
if(!$class) {
|
||||
$class = 'Bootstrap';
|
||||
$class = 'Style';
|
||||
$classname = "SeedDMS_Bootstrap_Style";
|
||||
} else {
|
||||
$classname = "SeedDMS_View_".$class;
|
||||
|
|
|
@ -217,13 +217,16 @@ class SeedDMS_View_Common {
|
|||
*/
|
||||
public function getHookObjects($classname='') { /* {{{ */
|
||||
if($classname)
|
||||
$tmp = explode('_', $classname);
|
||||
$tmps = array(explode('_', $classname)[2]);
|
||||
else
|
||||
$tmp = explode('_', get_class($this));
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])])) {
|
||||
return $GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])];
|
||||
$tmps = $this->getHookClassNames();
|
||||
$hooks = [];
|
||||
foreach($tmps as $tmp) {
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp)])) {
|
||||
$hooks = array_merge($hooks, $GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp)]);
|
||||
}
|
||||
}
|
||||
return array();
|
||||
return $hooks;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
|
|
@ -844,21 +844,16 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||
}
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
if($this->hasHook('documentNavigationBar'))
|
||||
$menuitems = $this->callHook('documentNavigationBar', $document, $menuitems);
|
||||
|
||||
/* Do not use $this->callHook() because $menuitems must be returned by the hook
|
||||
* or left unchanged
|
||||
/* Do not use $this->callHook() because $menuitems must be returned by the the
|
||||
* first hook and passed to next hook. $this->callHook() will just pass
|
||||
* the menuitems to each single hook. Hence, the last hook will win.
|
||||
*/
|
||||
/*
|
||||
$hookObjs = $this->getHookObjects();
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'documentNavigationBar')) {
|
||||
$menuitems = $hookObj->documentNavigationBar($this, $document, $menuitems);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
self::showNavigationBar($menuitems);
|
||||
|
||||
|
|
|
@ -763,21 +763,16 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$menuitems['transfer_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.TransferDocument". $docid, 'label'=>getMLText('transfer_document'));
|
||||
}
|
||||
|
||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||
if($this->hasHook('documentNavigationBar'))
|
||||
$menuitems = $this->callHook('documentNavigationBar', $document, $menuitems);
|
||||
|
||||
/* Do not use $this->callHook() because $menuitems must be returned by the hook
|
||||
* or left unchanged
|
||||
/* Do not use $this->callHook() because $menuitems must be returned by the the
|
||||
* first hook and passed to next hook. $this->callHook() will just pass
|
||||
* the menuitems to each single hook. Hence, the last hook will win.
|
||||
*/
|
||||
/*
|
||||
$hookObjs = $this->getHookObjects();
|
||||
foreach($hookObjs as $hookObj) {
|
||||
if (method_exists($hookObj, 'documentNavigationBar')) {
|
||||
$menuitems = $hookObj->documentNavigationBar($this, $document, $menuitems);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
self::showNavigationBar($menuitems);
|
||||
} /* }}} */
|
||||
|
|
|
@ -25,9 +25,6 @@ body {
|
|||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
/* Set the fixed height of the footer here */
|
||||
height: 68px;
|
||||
_line-height: 17px; /* Vertically center the text there */
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
|
@ -45,9 +42,9 @@ body {
|
|||
}
|
||||
.footer .disclaimer {
|
||||
display: inline-block;
|
||||
padding: 15px 0px 0px 0px;
|
||||
padding: 7px 0px 7px 0px;
|
||||
}
|
||||
.footer .footNote {
|
||||
display: inline-block;
|
||||
padding: 0px 0px 15px 0px;
|
||||
padding: 7px 0px 7px 0px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user