1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 22:25:31 +02:00

Added THEME_STYLE constant for easy checking of the currently selected theme style. CSSORDER also added, but subject to change.

This commit is contained in:
Cameron
2013-06-17 15:40:39 -07:00
parent bebbaa0533
commit 59047796d1
5 changed files with 49 additions and 7 deletions

View File

@@ -1092,6 +1092,15 @@ if(!defined("THEME_LAYOUT"))
}
*/
if(varset($pref['themecss']) && file_exists(THEME.$pref['themecss']))
{
define("THEME_STYLE", $pref['themecss']);
}
else
{
define("THEME_STYLE", 'style.css');
}
if($def) // custom-page layout.
{
define("THEME_LAYOUT",$def);