Export of extensions basicly added
authorRoland Häder <roland@mxchange.org>
Thu, 6 May 2010 01:21:08 +0000 (01:21 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 6 May 2010 01:21:08 +0000 (01:21 +0000)
inc/modules/guest/what-extensions.php [new file with mode: 0644]
templates/de/html/guest/guest_extensions.tpl [new file with mode: 0644]
templates/de/html/guest/guest_extensions_row.tpl [new file with mode: 0644]

diff --git a/inc/modules/guest/what-extensions.php b/inc/modules/guest/what-extensions.php
new file mode 100644 (file)
index 0000000..e3bdb8d
--- /dev/null
@@ -0,0 +1,75 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 01/09/2005 *
+ * ===================                          Last change: 01/09/2005 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-beg.php                                     *
+ * -------------------------------------------------------------------- *
+ * Short description : Beg points with us!                              *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Mit uns Punkte erbetteln!                        *
+ * -------------------------------------------------------------------- *
+ * $Revision:: 1690                                                   $ *
+ * $Date:: 2010-01-01 17:04:52 +0100 (Fri, 01 Jan 2010)               $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author:: quix0r                                                   $ *
+ * 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                  *
+ *                                                                      *
+ * 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 *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+// Add description as navigation point
+addMenuDescription('guest', __FILE__);
+
+// Get all extension files
+$extensions = getArrayFromDirectory('templates/' . getLanguage() . '/html/ext/', 'ext_', false, false, array(), '.tpl', '@(\.|\.\.)$@', false);
+
+// Now iterate through all and load that template file
+$OUT = ''; $SW = 2;
+foreach ($extensions as $ext_file) {
+       // 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
+loadTemplate('guest_extensions', false, $OUT);
+
+// [EOF]
+?>
diff --git a/templates/de/html/guest/guest_extensions.tpl b/templates/de/html/guest/guest_extensions.tpl
new file mode 100644 (file)
index 0000000..b7be740
--- /dev/null
@@ -0,0 +1,13 @@
+<div align="center">
+<div class="guest_table dashed" style="width:600px">
+
+<div class="guest_title2 bottom2" align="center">
+       <strong>Es sind bereits folgende Erweiterungen zum {?MAIN_TITLE?} verf&uuml;gbar:</strong>
+</div>
+
+<div>
+$content
+</div>
+
+</div>
+</div>
diff --git a/templates/de/html/guest/guest_extensions_row.tpl b/templates/de/html/guest/guest_extensions_row.tpl
new file mode 100644 (file)
index 0000000..074c172
--- /dev/null
@@ -0,0 +1,10 @@
+<div class="bottom2 sw_$content[sw]">
+       <div class="bottom2">
+               <strong>Erweiterung ext-$content[name]</strong>
+       </div>
+
+       <div>
+               <strong>Beschreibungstext:</strong>
+               $content[description]
+       </div>
+</div>