49 if (!isset($template))
51 $template = new \YAWK\template();
56 $this->version = $template->checkBootstrapVersion(
$db, $currentTemplateID,
$lang);
104 if (isset($this->cssCode) && (is_string($this->cssCode) && (!empty($this->cssCode))))
122 if ($this->version == 3)
124 require_once
'bootstrap3.php';
126 $bootstrap3 = new \YAWK\FRAMEWORK\BOOTSTRAP3\bootstrap3($this->version, $this->tplSettings);
128 $this->cssCode = $bootstrap3->init();
130 if (isset($this->cssCode) && (is_string($this->cssCode) && (!empty($this->cssCode))))
140 if ($this->version == 4)
142 require_once
'bootstrap4.php';
144 $bootstrap4 = new \YAWK\FRAMEWORK\BOOTSTRAP4\bootstrap4($this->version, $this->tplSettings);
146 $this->cssCode = $bootstrap4->init();
148 if (isset($this->cssCode) && (is_string($this->cssCode) && (!empty($this->cssCode))))
print $lang['FILEMAN_UPLOAD']
Helper function to output custom (overriden) bootstrap css (settings.css)
init()
Init calls setBootstrapComponents and return all css code as string on success or null on error.
setBootstrapComponents()
Check if Bootstrap is version 3 or 4 and load the required component methods.
outputCssCode()
Check CSS code and return it on success as string, otherwise return null.
The language class - support multilingual backend.
static getTemplateSettingsArray($db, $templateID)
get all template settings into an array and return it
static getCurrentTemplateId(object $db)
return ID of current (active) template