- // 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>';
+ // 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);