include language when install a theme
This commit is contained in:
parent
3564ab1d8f
commit
7ae0a559a3
|
@ -2,12 +2,6 @@
|
|||
|
||||
echo Bootstrap::pageTitle(array('title'=>$L->g('Themes'), 'icon'=>'eye'));
|
||||
|
||||
echo Bootstrap::link(array(
|
||||
'title'=>$L->g('Configure Blocks'),
|
||||
'href'=>HTML_PATH_ADMIN_ROOT.'blocks',
|
||||
'icon'=>'box'
|
||||
));
|
||||
|
||||
echo '
|
||||
<table class="table mt-3">
|
||||
<thead>
|
||||
|
@ -31,6 +25,10 @@ foreach ($themes as $theme) {
|
|||
|
||||
if ($theme['dirname']!=$site->theme()) {
|
||||
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-theme/'.$theme['dirname'].'">'.$L->g('Activate').'</a>';
|
||||
} else {
|
||||
if (Sanitize::pathFile(PATH_THEMES.$theme['dirname'].DS.'blocks.php')) {
|
||||
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'blocks'.'">'.$L->g('Configure Blocks').'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '
|
||||
|
|
|
@ -794,7 +794,7 @@ function getTag($key) {
|
|||
function activateTheme($themeDirectory) {
|
||||
global $site;
|
||||
global $syslog;
|
||||
global $L;
|
||||
global $L, $language;
|
||||
global $blocks;
|
||||
|
||||
if (Sanitize::pathFile(PATH_THEMES.$themeDirectory)) {
|
||||
|
|
Loading…
Reference in New Issue