diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 75927da2c..e02fc66ad 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -1619,7 +1619,7 @@ class e107 } else { - $themedir= self::getPref('sitetheme'); + $themedir= deftrue('USERTHEME', self::getPref('sitetheme')); } } diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 143e5c787..b92feeba7 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -89,7 +89,7 @@ class e_theme { if($theme === null) { - $theme = e107::pref('core','sitetheme'); + $theme = deftrue('USERTHEME', e107::pref('core','sitetheme')); } if(!is_readable(e_THEME.$theme."/layouts/".$key."_layout.html") || !is_readable(e_THEME.$theme."/theme.html")) @@ -1125,7 +1125,6 @@ class e_theme return; } - // check for valid theme. if (@fopen(e_THEME . $themeDir . '/theme.php', 'r')) { @@ -1160,12 +1159,14 @@ class e_theme define('THEME', e_THEME . $e107tmp_theme . '/'); define('THEME_ABS', e_THEME_ABS . $e107tmp_theme . '/'); define('THEME_VERSION', 2.3); + define('THEME_LEGACY', false); + define('USERTHEME', 'bootstrap3'); + define('BOOTSTRAP', 3); + define('FONTAWESOME', 4); - if (ADMIN && strpos(e_SELF, $ADMIN_DIRECTORY) === false) + if (ADMIN && (e_ADMIN_AREA !== true)) { - echo ''; - $tm = e107::getSingleton('themeHandler'); - $tm->setTheme($e107tmp_theme); + echo "
".$themeDir." ".str_replace('\n','
',CORE_LAN1)."
"; } e107::getDebug()->logTime('Theme Check End'); diff --git a/e107_plugins/gallery/includes/gallery_load.php b/e107_plugins/gallery/includes/gallery_load.php index 6278c5f6b..a483c66ad 100644 --- a/e107_plugins/gallery/includes/gallery_load.php +++ b/e107_plugins/gallery/includes/gallery_load.php @@ -66,7 +66,7 @@ function gallery_load_prettyphoto() // @lonalore FIXME Stop loading this on ever if(vartrue($plugPref['downloadable'], false)) { $settings['prettyphoto']['image_markup'] .= ''; - $settings['prettyphoto']['image_markup'] .= '' . LAN_DOWNLOAD . ''; + $settings['prettyphoto']['image_markup'] .= '' . LAN_DOWNLOAD . ''; $settings['prettyphoto']['image_markup'] .= ''; } diff --git a/e107_plugins/gallery/templates/gallery_template.php b/e107_plugins/gallery/templates/gallery_template.php index 70965cb0a..e7805963c 100644 --- a/e107_plugins/gallery/templates/gallery_template.php +++ b/e107_plugins/gallery/templates/gallery_template.php @@ -66,10 +66,10 @@ $GALLERY_TEMPLATE['slideshow_wrapper'] = '