2015-08-03 00:05:20 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
HTML::title(array('title'=>$L->g('Themes'), 'icon'=>'paint-brush'));
|
2015-08-03 00:05:20 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '
|
2016-01-17 22:11:20 +01:00
|
|
|
<table class="uk-table">
|
2015-10-19 00:45:58 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="uk-width-1-5">'.$L->g('Name').'</th>
|
|
|
|
<th class="uk-width-3-5">'.$L->g('Description').'</th>
|
|
|
|
<th class="uk-text-center">'.$L->g('Version').'</th>
|
|
|
|
<th class="uk-text-center">'.$L->g('Author').'</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
';
|
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
foreach($themes as $theme)
|
|
|
|
{
|
|
|
|
echo '
|
2016-01-17 22:11:20 +01:00
|
|
|
<tr '.($theme['dirname']==$Site->theme()?'class="theme-installed"':'class="theme-notInstalled"').'>
|
2015-11-30 01:45:30 +01:00
|
|
|
<td>
|
2017-03-13 14:31:02 +01:00
|
|
|
<div class="plugin-name">
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|
2015-08-03 00:05:20 +02:00
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
if($theme['dirname']!=$Site->theme()) {
|
2017-03-13 14:31:02 +01:00
|
|
|
echo '<a class="install" href="'.HTML_PATH_ADMIN_ROOT.'install-theme/'.$theme['dirname'].'" title="'.$L->g('Activate').'"><i class="uk-icon-square-o"></i></a> ';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<i class="uk-icon-check-square-o"></i> ';
|
2015-11-30 01:45:30 +01:00
|
|
|
}
|
2015-08-03 00:05:20 +02:00
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
echo '
|
2017-03-13 14:31:02 +01:00
|
|
|
'.$theme['name'].'</div>
|
2016-08-10 01:46:56 +02:00
|
|
|
</td>';
|
|
|
|
|
|
|
|
echo '<td>';
|
|
|
|
echo $theme['description'];
|
|
|
|
|
|
|
|
if( !$theme['compatible'] ) {
|
2017-03-13 14:41:29 +01:00
|
|
|
echo '<div class="theme-incompatible"><i class="uk-icon-exclamation-triangle"></i> This theme is incompatible with Bludit v'.BLUDIT_VERSION.'</div>';
|
2016-08-10 01:46:56 +02:00
|
|
|
}
|
|
|
|
echo '</td>';
|
|
|
|
|
|
|
|
echo '
|
2015-11-30 01:45:30 +01:00
|
|
|
<td class="uk-text-center">'.$theme['version'].'</td>
|
2017-03-13 14:42:28 +01:00
|
|
|
<td class="uk-text-center"><a target="_blank" href="'.$theme['website'].'">'.$theme['author'].'</a></td>
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
2015-08-03 00:05:20 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|