[Phpslash-commit] CVS: phpslash-dev/include/class functions.inc,1.18,1.19
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2004-10-18 23:11:51
|
Update of /cvsroot/phpslash/phpslash-dev/include/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4482/sandbox/phpslash-dev/include/class Modified Files: functions.inc Log Message: allow switching css in url Index: functions.inc =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/class/functions.inc,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** functions.inc 18 Oct 2004 17:05:04 -0000 1.18 --- functions.inc 18 Oct 2004 23:11:42 -0000 1.19 *************** *** 232,235 **** --- 232,242 ---- $QUERY_STRING = ''; } + + // allow switching css from the url + if(isset($GLOBALS['ary']['css'])) { + $css = $GLOBALS['ary']['css']; + } else { + $css = $_PSL['skin']; + } // Are there extra tags/variables to pass to template? *************** *** 258,262 **** // 'NAVBAR' => $navbarcontent, // Could be empty if NavBar is not required // 'TOPICBAR' => $topicbarcontent, // Could be empty if TopicBar is not required ! 'SKIN' => $_PSL['skin'] )); --- 265,270 ---- // 'NAVBAR' => $navbarcontent, // Could be empty if NavBar is not required // 'TOPICBAR' => $topicbarcontent, // Could be empty if TopicBar is not required ! 'SKIN' => $_PSL['skin'], ! 'CSS' => $css )); |