bludit/bl-kernel/admin/views/themes.php

54 lines
1.2 KiB
PHP
Raw Normal View History

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>
<div class="plugin-name">'.$theme['name'].'</div>
<div class="plugin-links">
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()) {
echo '<a class="install" href="'.HTML_PATH_ADMIN_ROOT.'install-theme/'.$theme['dirname'].'">'.$L->g('Activate').'</a>';
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 '
</div>
</td>';
echo '<td>';
echo $theme['description'];
echo '</td>';
echo '<td class="uk-text-center">';
2018-03-05 23:46:52 +01:00
// if( !$theme['compatible'] ) {
// echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="'.$L->g('This theme may not be supported by this version of Bludit').'"></i>';
// }
echo $theme['version'];
echo '</td>';
echo '<td class="uk-text-center"><a targe="_blank" href="'.$theme['website'].'">'.$theme['author'].'</a></td>';
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
';