X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-extensions.php;h=96ecf8a7260b0b8eb95597d85a66a5ba92c8be82;hb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;hp=94e32a8231b0057a5e761dcf9404679c97888ca2;hpb=995488beda665a1fc3de65df95f2d1ae236d1245;p=mailer.git diff --git a/inc/modules/guest/what-extensions.php b/inc/modules/guest/what-extensions.php index 94e32a8231..96ecf8a726 100644 --- a/inc/modules/guest/what-extensions.php +++ b/inc/modules/guest/what-extensions.php @@ -4,22 +4,20 @@ * =================== Last change: 01/09/2005 * * * * -------------------------------------------------------------------- * - * File : what-beg.php * + * File : what-extensions.php * * -------------------------------------------------------------------- * - * Short description : Beg points with us! * + * Short description : Lists all extension's description texts * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Mit uns Punkte erbetteln! * + * Kurzbeschreibung : Listet alle Beschreibungstexte aller Erw. auf * * -------------------------------------------------------------------- * * $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 * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 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 * @@ -43,29 +41,34 @@ if (!defined('__SECURITY')) { } // END - if // Add description as navigation point -addMenuDescription('guest', __FILE__); +addYouAreHereLink('guest', __FILE__); // Get all extension files -$extensions = getArrayFromDirectory('templates/' . getLanguage() . '/html/ext/', 'ext_', false, false, array(), '.tpl', '@(\.|\.\.)$@', false); +$extensions = getArrayFromDirectory( + 'templates/' . getLanguage() . '/html/ext/', + 'ext_', + false, + false, + array(), + '.tpl', + '@(\.|\.\.)$@', + false +); // Now iterate through all and load that template file -$OUT = ''; $SW = 2; +$OUT = ''; foreach ($extensions as $ext_file) { - // We only need the filename! + // We only need the filename $template = substr(basename($ext_file), 0, -4); // Prepare data $content = array( 'name' => substr($template, 4), 'description' => loadTemplate($template, true), - 'sw' => $SW ); // Load the template in a special row template $OUT .= loadTemplate('guest_extensions_row', true, $content); - - // Switch color - $SW = 3 - $SW; } // END - foreach // Load main template