]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-themes.php
Even more usage of EL
[mailer.git] / inc / modules / member / what-themes.php
index f7381e612ba3d4b036de2d4fa3e20cf64db44b18..53b047c7669687bbb78f19effa9eaa79baf8db2b 100644 (file)
@@ -112,21 +112,19 @@ foreach ($THEMES['theme_unix'] as $key => $unix) {
        $default = '';
        if (getCurrentTheme() == $unix) $default = ' selected="selected"';
 
-       // Add row
-       // @TODO Move this code into a template
-       $OUT .= "<tr>
-  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\" height=\"30\">
-    <input type=\"radio\" name=\"member_theme\" class=\"member_normal\" value=\"".$unix."\"".$default." />
-  </td>
-  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\">".$THEMES['theme_name'][$key]."</td>
-  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\">
-    <a href=\"mailto:".$THEMES['theme_email'][$key]."?Subject=[Theme:] ".$THEMES['theme_name'][$key]." (".$unix.")'.'\">".$THEMES['theme_author'][$key]."</a>
-  </td>
-  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\">
-    <a href=\"".generateDerefererUrl($THEMES['theme_url'][$key])."\" target=\"_blank\">".$THEMES['theme_url'][$key]."</a>
-  </td>
-  <td class=\"{%template,ColorSwitch%} bottom\" align=\"center\">v".$THEMES['theme_version'][$key]."</td>
-</tr>\n";
+       // Prepare content
+       $content = array(
+               'unix'          => $unix,
+               'default'       => $default,
+               'theme_name'    => $THEMES['theme_name'][$key],
+               'theme_email'   => $THEMES['theme_email'][$key],
+               'theme_author'  => $THEMES['theme_author'][$key],
+               'theme_url'     => $THEMES['theme_url'][$key],
+               'theme_version' => $THEMES['theme_version'][$key]
+       );
+
+       // Load row template
+       $OUT .= loadTemplate('member_themes_row', true, $content);
 } // END - foreach
 
 if (empty($OUT)) {