2015-08-03 00:05:20 +02:00
|
|
|
<?php
|
|
|
|
|
2018-07-18 22:44:42 +02:00
|
|
|
echo Bootstrap::pageTitle(array('title'=>$L->g('Themes'), 'icon'=>'eye'));
|
2015-08-03 00:05:20 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '
|
2018-04-27 20:36:43 +02:00
|
|
|
<table class="table mt-3">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="border-bottom-0 w-25" scope="col">'.$L->g('Name').'</th>
|
2018-05-14 00:00:10 +02:00
|
|
|
<th class="border-bottom-0 d-none d-sm-table-cell" scope="col">'.$L->g('Description').'</th>
|
2018-04-27 20:36:43 +02:00
|
|
|
<th class="text-center border-bottom-0 d-none d-lg-table-cell" scope="col">'.$L->g('Version').'</th>
|
|
|
|
<th class="text-center border-bottom-0 d-none d-lg-table-cell" scope="col">'.$L->g('Author').'</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-10-19 00:45:58 +02:00
|
|
|
';
|
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
foreach ($themes as $theme) {
|
2015-11-30 01:45:30 +01:00
|
|
|
echo '
|
2018-07-17 19:13:01 +02:00
|
|
|
<tr '.($theme['dirname']==$site->theme()?'class="bg-light"':'').'>
|
2018-04-27 20:36:43 +02:00
|
|
|
<td class="align-middle pt-3 pb-3">
|
|
|
|
<div>'.$theme['name'].'</div>
|
|
|
|
<div class="mt-1">
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|
2015-08-03 00:05:20 +02:00
|
|
|
|
2018-07-17 19:13:01 +02:00
|
|
|
if ($theme['dirname']!=$site->theme()) {
|
2018-04-27 20:36:43 +02:00
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-theme/'.$theme['dirname'].'">'.$L->g('Activate').'</a>';
|
2019-01-04 14:21:15 +01:00
|
|
|
} else {
|
|
|
|
if (Sanitize::pathFile(PATH_THEMES.$theme['dirname'].DS.'blocks.php')) {
|
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'blocks'.'">'.$L->g('Configure Blocks').'</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 '
|
2018-04-27 20:36:43 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
';
|
2016-08-10 01:46:56 +02:00
|
|
|
|
2018-05-14 00:00:10 +02:00
|
|
|
echo '<td class="align-middle d-none d-sm-table-cell">';
|
2016-08-10 01:46:56 +02:00
|
|
|
echo $theme['description'];
|
2017-03-14 05:21:25 +01:00
|
|
|
echo '</td>';
|
2016-08-10 01:46:56 +02:00
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo '<td class="text-center align-middle d-none d-lg-table-cell">';
|
|
|
|
echo '<span>'.$theme['version'].'</span>';
|
2017-06-09 20:30:13 +02:00
|
|
|
echo '</td>';
|
2016-08-10 01:46:56 +02:00
|
|
|
|
2018-04-27 20:36:43 +02:00
|
|
|
echo '<td class="text-center align-middle d-none d-lg-table-cell">
|
|
|
|
<a target="_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 '
|
2018-04-27 20:36:43 +02:00
|
|
|
</tbody>
|
2015-10-19 00:45:58 +02:00
|
|
|
</table>
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|