Update of /cvsroot/phpwiki/phpwiki/themes/WikiTrek
In directory usw-pr-cvs1:/tmp/cvs-serv25831
Modified Files:
themeinfo.php
Log Message:
CSS now stored in an array, and <link rel="stylesheet"> headers are dynamically generated. - Simplifies xhtml templates. - Easier to add new alternate stylesheets in index.php without using themes. - Any stylesheets defined by a theme now works together with any default stylesheets (i.e. phpwiki.css, phpwiki-printer.css, phpwiki-modern.css) instead of completely replacing them.
Index: themeinfo.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/WikiTrek/themeinfo.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** themeinfo.php 2002/01/01 07:36:15 1.5
--- themeinfo.php 2002/01/03 00:09:17 1.6
***************
*** 29,38 ****
// To deactivate themes, comment out all the $theme=lines in index.php.
- // CSS location
- //
// CSS file defines fonts, colors and background images for this style.
// The companion '*-heavy.css' file isn't defined, it's just expected to
// be in the same directory that the base style is in.
! $CSS_URL = "themes/$theme/WikiTrek.css";
// Logo image appears on every page and links to the HomePage.
--- 29,38 ----
// To deactivate themes, comment out all the $theme=lines in index.php.
// CSS file defines fonts, colors and background images for this style.
// The companion '*-heavy.css' file isn't defined, it's just expected to
// be in the same directory that the base style is in.
! $CSS_DEFAULT = "WikiTrek";
!
! $CSS_URLS = array_merge($CSS_URLS, array( "$CSS_DEFAULT" => "themes/$theme/${CSS_DEFAULT}.css" ) );
// Logo image appears on every page and links to the HomePage.
|