X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-themes.php;h=00b40a12dfd5d5883a3595afd24113aa38526499;hp=7c99f54a3e78d6cb2eba0eb2e55f4ed31f494e35;hb=e9da1508b2a3ccbf63adc999981674740a47e074;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e diff --git a/inc/modules/guest/action-themes.php b/inc/modules/guest/action-themes.php index 7c99f54a3e..00b40a12df 100644 --- a/inc/modules/guest/action-themes.php +++ b/inc/modules/guest/action-themes.php @@ -10,15 +10,9 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Theme-Auswahl * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -38,40 +32,43 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isBlockModeEnabled()) { // Non-block mode detected return; } if ((!isExtensionActive('theme')) && (!isAdmin())) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=theme%}'); return; } // END - if // Get total num if (isAdmin()) { // Load all themes for admin - $num_themes = countSumTotalData('', 'themes', 'id', '', true); + $num_themes = countSumTotalData('', 'themes', 'id', '', TRUE); } else { // Load only active designs for user - $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true); + $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', TRUE); } +// Default is no box $OUT = ''; + +// Choose from it if ($num_themes > 1) { // If more than 1 is installed output selection box $OUT = generateThemeSelectionBox(); } elseif (($num_themes == 1) || ((!isAdmin()) && ($num_themes == '0'))) { // If there's only one just output it's name - $OUT = loadTemplate('theme_one', true, getCurrentThemeName()); + $OUT = loadTemplate('theme_one', TRUE, getCurrentThemeName()); } elseif (isAdmin()) { // If there is no theme installed and there's an admin notify him! $OUT = '{--ADMIN_NO_THEME_INSTALLED_WARNING--}'; } // Load final box template -$GLOBALS['rows'] .= loadTemplate('theme_select_box', true, $OUT); +$GLOBALS['rows'] .= loadTemplate('theme_select_box', TRUE, $OUT); // [EOF] ?>