* The classic version mode lists the execution list.

This commit is contained in:
tianshujie98
2021-04-01 13:26:13 +08:00
parent ff3bb25320
commit 82062bbe8a
4 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -519,6 +519,7 @@ class commonModel extends model
public static function printHomeButton($openApp)
{
global $lang;
global $config;
if(!$openApp) return;
$icon = zget($lang->navIcons, $openApp, '');
@@ -527,6 +528,7 @@ class commonModel extends model
{
$nav = $lang->mainNav->$openApp;
list($title, $currentModule, $currentMethod, $vars) = explode('|', $nav);
if($openApp == 'execution') $currentMethod = 'all';
}
else
{
@@ -535,7 +537,7 @@ class commonModel extends model
if($openApp == 'product') $currentMethod = 'all';
}
$link = $openApp != 'execution' ? helper::createLink($currentModule, $currentMethod) : '';
$link = ($openApp != 'execution' or ($config->systemMode == 'classic')) ? helper::createLink($currentModule, $currentMethod) : '';
$html = $link ? html::a($link, "$icon {$lang->$openApp->common}", '', "class='btn'") : "$icon {$lang->$openApp->common}";
echo "<div class='btn-group header-btn'>" . $html . '</div>';