- // Add row
- $OUT .= "<TR>
- <TD class=\"switch_sw".$SW." bottom2 right2\" align=\"center\" height=\"30\">".$unix."</TD>
- <TD class=\"switch_sw".$SW." bottom2 right2\" align=\"center\">".$THEMES['theme_name'][$key]."</TD>
- <TD class=\"switch_sw".$SW." bottom2 right2\" align=\"center\">
- <a href=\"mailto:".$THEMES['theme_email'][$key]."?Subject=[Theme:] ".$THEMES['theme_name'][$key]." (".$unix.")"."\">".$THEMES['theme_author'][$key]."</a>
- </TD>
- <TD class=\"switch_sw".$SW." bottom2 right2\" align=\"center\">
- <a href=\"".DEREFERER($THEMES['theme_url'][$key])."\" target=\"_blank\">".$THEMES['theme_url'][$key]."</a>
- </TD>
- <TD class=\"switch_sw".$SW." bottom2 right2\" align=\"center\">v".$THEMES['theme_ver'][$key]."</TD>
- <TD class=\"switch_sw".$SW." bottom2\" align=\"center\">
- ".$FOUND."
- </TD>
-</TR>\n";
+ // Prepare content
+ $content = array(
+ 'sw' => $SW,
+ 'unix' => $unix,
+ 'name' => $THEMES['theme_name'][$key],
+ 'email' => $THEMES['theme_email'][$key],
+ 'author' => $THEMES['theme_author'][$key],
+ 'link' => DEREFERER($THEMES['theme_url'][$key]),
+ 'url' => $THEMES['theme_url'][$key],
+ 'version' => $THEMES['theme_ver'][$key],
+ 'form' => $FOUND
+ );
+
+ // Add row template
+ $OUT .= LOAD_TEMPLATE("admin_theme_import_row", true, $content);