Revert "Added option to select legacy icons"
This reverts commit f0f888a42e.
@@ -257,12 +257,6 @@ Dynamix color theme:
|
||||
<?endforeach;?>
|
||||
</select>
|
||||
|
||||
Icons display:
|
||||
: <select name="legacy" size="1">
|
||||
<?=mk_option($display['legacy'], "0", "Modern")?>
|
||||
<?=mk_option($display['legacy'], "1", "Legacy")?>
|
||||
</select>
|
||||
|
||||
Used / Free columns:
|
||||
: <select name="text" size="1">
|
||||
<?=mk_option($display['text'], "0", "Text")?>
|
||||
|
||||
@@ -24,7 +24,6 @@ critical="90"
|
||||
hot="45"
|
||||
max="55"
|
||||
theme="white"
|
||||
legacy="0"
|
||||
[parity]
|
||||
mode="0"
|
||||
hour="0 0"
|
||||
|
||||
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -407,20 +407,18 @@ foreach ($pages as $page) {
|
||||
}
|
||||
if (isset($page['Type']) && $page['Type']=='menu') {
|
||||
$pgs = find_pages($page['name']);
|
||||
$legacy = $display['legacy'];
|
||||
foreach ($pgs as $pg) {
|
||||
@eval("\$title=\"".htmlspecialchars($pg['Title'])."\";");
|
||||
$link = "$path/{$pg['name']}";
|
||||
$icon = $pg['Icon'] ?? "<i class='icon-app PanelIcon'></i>";
|
||||
if ($legacy || substr($icon,-4)=='.png') {
|
||||
if (substr($icon,-4)=='.png') {
|
||||
$root = $pg['root'];
|
||||
if ($legacy) $icon = ($root=='webGui' ? strtolower(preg_replace('/([a-z])([A-Z])/','$1-$2',$pg['name'])) : basename($root)).".png";
|
||||
if (file_exists("$docroot/$root/images/$icon")) {
|
||||
$icon = "<img src='/$root/images/$icon' class='PanelImg'>";
|
||||
} elseif (file_exists("$docroot/$root/$icon")) {
|
||||
$icon = "<img src='/$root/$icon' class='PanelImg'>";
|
||||
} else {
|
||||
$icon = ($legacy ? "<img src='/webGui/images/default.png' class='PanelImg'>" : "<i class='icon-app PanelIcon'></i>");
|
||||
$icon = "<i class='icon-app PanelIcon'></i>";
|
||||
}
|
||||
} elseif (substr($icon,0,5)=='icon-') {
|
||||
$icon = "<i class='$icon PanelIcon'></i>";
|
||||
|
||||