From: Carsten K. <car...@us...> - 2001-12-06 08:15:41
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv8922/phpwiki Modified Files: index.php Log Message: Added unobtrusive hook for upcoming theme support. Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -r1.32 -r1.33 *** index.php 2001/12/02 07:53:47 1.32 --- index.php 2001/12/06 08:15:38 1.33 *************** *** 290,293 **** --- 290,302 ---- "MESSAGE" => "templates/message.html"); + // The themeinfo file can be used to override default settings above this line + // (i.e. templates, logo, signature etc.) + $theme=""; + if ( !$theme == "" ) { + if ( file_exists( "themes/$theme/themeinfo.php" ) ) { + include "themes/$theme/themeinfo.php"; + } + } + /* WIKI_PGSRC -- specifies the source for the initial page contents * of the Wiki. The setting of WIKI_PGSRC only has effect when |