public function ThemeMod() { //create the model object $cal = new ThemeMod(); //send the webclass $webClass = __CLASS__; //filter only for active theme $dir = ThemeItem::getTheme(); $cal->read_filter_array = array("set_theme_id" => $dir); //run the crud utility Crud::run($cal, $webClass); //pr($mps); }
$selected_lang = Lang::getLang(); if (!isset($selected_lang) || $selected_lang == "" || is_object($selected_lang)) { $selected_lang = "en"; } //pr($selected_lang); //echo "lang/".strtolower($selected_lang).".php"; require_once "lang/" . strtolower($selected_lang) . ".php"; //get globals $db = $init->getDB(); $params = $init->getParams(); $template = $init->getTemplate(); //theme selection if (strpos($_GET['url'], 'EfiHome') !== false || $_GET['url'] == "index") { $themepath = 'adminlte2'; } else { $themepath = ThemeItem::getTheme(); } $init->setThemeDynamic($themepath); //include the functions foreach ($files2Load as $file) { //penambahan mold if (strpos($file, 'BPlugin') && strpos($file, 'functions.php')) { require_once $file; } //echo $file;echo "<br>"; } //set session for photopath and photourl $_SESSION['photopath'] = _PHOTOPATH; $_SESSION['photourl'] = _SPPATH . _PHOTOURL; define('_LANGPATH', _SPPATH); //coba di load websettingnya
<link rel="icon" type="image/png" href="<?php echo _SPPATH; ?> kcfinder/favicon.ico" /> <style> body { padding-top: 10px; padding-bottom: 40px; background-color: #75863f; color: white; font-size: 18px; <?php $active_theme = ThemeItem::getTheme(); global $themepath; $sem = $themepath; $themepath = $active_theme; $bgcolor = ThemeReg::mod("index_bodybg", "#ffffff", "color"); $bgimage = ThemeReg::mod("index_bodybgimage", _SPPATH . "images/forrest.jpg", "image"); $strbgimage = ''; if ($bgimage != "") { $strbgimage = 'background-image: url("' . $bgimage . '"); background-repeat: repeat; background-attachment: fixed;'; } ?> background: <?php echo $bgcolor; ?> ;