2015-09-08 02:51:48 +02:00
|
|
|
<h2 class="title"><i class="fa fa-adjust"></i><?php $Language->p('Themes') ?></h2>
|
2015-08-02 04:47:45 +02:00
|
|
|
|
2015-08-03 00:05:20 +02:00
|
|
|
<?php
|
|
|
|
foreach($themes as $theme)
|
|
|
|
{
|
2015-08-12 22:15:17 +02:00
|
|
|
$installedCSS = '';
|
2015-08-03 00:05:20 +02:00
|
|
|
if($theme['dirname']==$Site->theme()) {
|
2015-08-12 22:15:17 +02:00
|
|
|
$installedCSS = 'themeBoxInstalled';
|
2015-08-03 00:05:20 +02:00
|
|
|
}
|
|
|
|
|
2015-08-12 22:15:17 +02:00
|
|
|
echo '<div class="themeBox '.$installedCSS.'">';
|
2015-08-03 00:05:20 +02:00
|
|
|
|
|
|
|
echo '<p class="name">'.$theme['name'].'</p>';
|
|
|
|
echo '<p>'.$theme['description'].'</p>';
|
2015-08-05 02:42:28 +02:00
|
|
|
echo '<span class="version">'.$Language->g('Version').': '.$theme['version'].'</span><span class="author">'.$Language->g('author').': <a targe="_blank" href="'.$theme['website'].'">'.$theme['author'].'</a></span>';
|
2015-08-03 00:05:20 +02:00
|
|
|
|
|
|
|
if($theme['dirname']!=$Site->theme()) {
|
2015-08-03 00:07:34 +02:00
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-theme/'.$theme['dirname'].'" class="btn btn-red btn-smaller">'.$Language->g('Install theme').'</a>';
|
2015-08-03 00:05:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
echo '</div>';
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|