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

58 lines
1.3 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">
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'].'" 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 '
'.$theme['name'].'</div>
</td>';
echo '<td>';
echo $theme['description'];
echo '</td>';
echo '
<td class="uk-text-center">';
if( !$theme['compatible'] ) {
echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="This theme is incompatible with Bludit v'.BLUDIT_VERSION.'"></i>';
}
echo $theme['version'].'</td>';
echo '
<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
';