// Load theme in test mode
loadInclude($inc);
+ // Copy data from theme to content
+ $content['theme_url'] = $GLOBALS['theme_data']['url'];
+
// Is the loaded theme name != current theme name?
$content['link'] = $content['theme_path'];
if ($content['theme_path'] != getCurrentTheme()) $content['link'] = '<a href="{%url=modules.php?module=admin&what=theme_edit&default_theme=' . $content['theme_path'] . '%}" title="{--ADMIN_SET_AS_NEW_THEME--}">' . $content['theme_path'] . '</a>';
// Initialize array
$THEMES = array(
- 'theme_unix' => array(), // Unix name from filesystem
- 'theme_name' => array(), // Title
- 'theme_author' => array(), // Theme author's name
- 'theme_email' => array(), // Author's email address
- 'theme_url' => array(), // URL were you can download it from
- 'theme_version' => array(), // Version number of theme
+ 'theme_unix' => array(), // Unix name from filesystem
+ 'theme_name' => array(), // Title
+ 'theme_author' => array(), // Theme author's name
+ 'theme_email' => array(), // Author's email address
+ 'theme_url' => array(), // URL were you can download it from
+ 'theme_version' => array(), // Version number of theme
);
// Read directory "themes"
$content[email]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank">$content[url]</a>
+ <a href="{%pipe,generateDerefererUrl=$content[theme_url]%}" target="_blank">$content[theme_url]</a>
</td>
<td class="{%template,ColorSwitch%} bottom" align="center">
v$content[theme_version]