[Comoblog-commit] comoblog/css comoblog.css.php,1.5,1.6
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-02-24 00:41:23
|
Update of /cvsroot/comoblog/comoblog/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7776/css Modified Files: comoblog.css.php Log Message: added a proof of concept skin to aid testing, and a few more user options to control if the modules css should be loaded, and if the base comoblog css should be loaded. Index: comoblog.css.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/css/comoblog.css.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- comoblog.css.php 24 Feb 2006 00:01:13 -0000 1.5 +++ comoblog.css.php 24 Feb 2006 00:41:20 -0000 1.6 @@ -4,6 +4,8 @@ Header ('Content-type: text/css'); +if (CFG_MOD_SKINSELECT_INCLUDE_MODULES !="N"){ + // import CSS from activated modules if (count($SIDEBAR_MODULES) > 0) { for ($mod_cnt = 0; $mod_cnt < count($SIDEBAR_MODULES); $mod_cnt++) { @@ -19,6 +21,10 @@ } } } +} + + +if (CFG_MOD_SKINSELECT_INCLUDE_BASE !="N"){ echo ' body { @@ -266,21 +272,21 @@ textarea.comment_form { height: 150px; }'; - + } // if we have this param then we have a skinning option,. // if its not the default, then add it here so we can overide the styles // of course if we have it and its default, then we dont need to do anything anyway - if (CFG_MOD_SKINSELECT_DEFAULT !="default"){ + if (CFG_MOD_SKINSELECT_DEFAULT !=""){ $whichSkin=CFG_MOD_SKINSELECT_DEFAULT; - if ($_COOKIE['comoskin'] !="default"){ + if ($_COOKIE['comoskin'] !=""){ $whichSkin= $_COOKIE['comoskin']; } - if (file_exists(CFG_BASE_PATH.'/skins/'.$whichSkin.'/css.php')) { + if (file_exists(CFG_BASE_PATH.'/skins/'.$whichSkin.'/'.$whichSkin.'.css')) { echo - '@import url('.CFG_BASE_PATH.'/skins/'.$whichSkin.'/css.php);'."\n"; + '@import url('.CFG_BASE_PATH.'/skins/'.$whichSkin.'/'.$whichSkin.'.css);'."\n"; } } |