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(); } } } # vim:ts=4 sw=4 noet ?>