if (!defined('__SECURITY')) {
die();
} elseif (!isBlockModeEnabled()) {
- // Block mode detected
+ // Non-block mode detected
return;
}
// Get total num
if (isAdmin()) {
- // Load only active designs for user
- $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true);
-} else {
// Load all themes for admin
$num_themes = countSumTotalData('', 'themes', 'id', '', true);
+} else {
+ // Load only active designs for user
+ $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true);
}
$OUT = '';
$OUT = loadTemplate('theme_one', true, getCurrentThemeName());
} elseif (isAdmin()) {
// If there is no theme installed and there's an admin notify him!
- $OUT = loadTemplate('admin_settings_saved', true, "<div class=\"admin_note\">{--ADMIN_NO_THEME_INSTALLED_WARNING--}</div>");
+ $OUT = '{--ADMIN_NO_THEME_INSTALLED_WARNING--}';
}
// Load final box template