} header("Content-type: text/css"); //$LOAD_ALL_MODULES = 1; require_once "../include.php"; //require_once("../lib/classes/class.user.inc.php"); $theme = get_preference(get_userid(), "admintheme"); $style = "style"; $gCms = cmsms(); if (isset($gCms->nls['direction']) && $gCms->nls['direction'] == 'rtl') { $style .= "-rtl"; } if (isset($_GET['ie'])) { $style .= "_ie"; } $style .= ".css"; if (file_exists(dirname(__FILE__) . "/themes/" . $theme . "/css/" . $style)) { cms_readfile(dirname(__FILE__) . "/themes/" . $theme . "/css/" . $style); } else { if (file_exists(dirname(__FILE__) . "/themes/default/css/" . $style)) { cms_readfile(dirname(__FILE__) . "/themes/default/css/" . $style); } } $allmodules = ModuleOperations::get_instance()->GetLoadedModules(); if (is_array($allmodules) && count($allmodules)) { foreach ($allmodules as $key => &$object) { if ($object->HasAdmin()) { echo $object->AdminStyle(); } } } # vim:ts=4 sw=4 noet
$theme = $themeObject->themeName; $style = "style"; cms_admin_sendheaders('text/css'); $thelang = CmsNlsOperations::get_language_info(CmsNlsOperations::get_current_language()); if (is_object($thelang) && $thelang->direction() == 'rtl') { $style .= "-rtl"; } if (isset($_GET['ie'])) { $style .= "_ie"; } $style .= ".css"; if (file_exists(dirname(__FILE__) . "/themes/" . $theme . "/css/" . $style)) { cms_readfile(dirname(__FILE__) . "/themes/" . $theme . "/css/" . $style); } if (file_exists(dirname(__FILE__) . "/themes/" . $theme . "/extcss/" . $style)) { cms_readfile(dirname(__FILE__) . "/themes/" . $theme . "/extcss/" . $style); } // else if (file_exists(dirname(__FILE__)."/themes/default/css/".$style)) // { // cms_readfile(dirname(__FILE__)."/themes/default/css/".$style); // } $allmodules = ModuleOperations::get_instance()->GetLoadedModules(); if (is_array($allmodules) && count($allmodules)) { foreach ($allmodules as $key => &$object) { if (!is_object($object)) { continue; } if ($object->HasAdmin()) { echo $object->AdminStyle(); } }