mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
fall back to bootstrap file, include theme style
This commit is contained in:
parent
5efc5802b7
commit
ac85cfe26d
|
@ -102,9 +102,14 @@ class UI extends UI_Default {
|
||||||
}
|
}
|
||||||
if(!$filename)
|
if(!$filename)
|
||||||
$filename = $settings->_rootDir."views/".$theme."/class.".$class.".php";
|
$filename = $settings->_rootDir."views/".$theme."/class.".$class.".php";
|
||||||
|
/* Fall back onto the view class in bootstrap theme */
|
||||||
|
if(!file_exists($filename))
|
||||||
|
$filename = $settings->_rootDir."views/bootstrap/class.".$class.".php";
|
||||||
if(!file_exists($filename))
|
if(!file_exists($filename))
|
||||||
$filename = '';
|
$filename = '';
|
||||||
if($filename) {
|
if($filename) {
|
||||||
|
/* Always include the base class which defines class SeedDMS_Theme_Style */
|
||||||
|
require($settings->_rootDir."views/".$theme."/class.".ucfirst($theme).".php");
|
||||||
require($filename);
|
require($filename);
|
||||||
$view = new $classname($params, $theme);
|
$view = new $classname($params, $theme);
|
||||||
/* Set some configuration parameters */
|
/* Set some configuration parameters */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user