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-06-09 20:30:13 +02:00
< 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 ()) {
2017-06-09 20:30:13 +02:00
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 '
2017-06-09 20:30:13 +02:00
</ div >
2016-08-10 01:46:56 +02:00
</ td > ' ;
echo '<td>' ;
echo $theme [ 'description' ];
2017-03-14 05:21:25 +01:00
echo '</td>' ;
2016-08-10 01:46:56 +02:00
2017-06-09 20:30:13 +02:00
echo '<td class="uk-text-center">' ;
2016-08-10 01:46:56 +02:00
if ( ! $theme [ 'compatible' ] ) {
2017-10-14 00:02:30 +02:00
echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="' . $L -> g ( 'This theme may not be supported by this version of Bludit' ) . '"></i>' ;
2016-08-10 01:46:56 +02:00
}
2017-06-09 20:30:13 +02:00
echo $theme [ 'version' ];
echo '</td>' ;
2016-08-10 01:46:56 +02:00
2017-06-09 20:30:13 +02:00
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
' ;