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' ];
2017-03-14 05:21:25 +01:00
echo '</td>' ;
echo '
< td class = " uk-text-center " > ' ;
2016-08-10 01:46:56 +02:00
if ( ! $theme [ 'compatible' ] ) {
2017-05-08 19:52:47 +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-03-14 05:21:25 +01:00
echo $theme [ 'version' ] . '</td>' ;
2016-08-10 01:46:56 +02:00
echo '
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
' ;