DEBUGMODE in FRONTEND

This commit is contained in:
JonatanRek
2020-01-17 10:27:51 +01:00
parent f345419c39
commit 3479fb9c87
15 changed files with 73 additions and 51 deletions

View File

@@ -32,7 +32,11 @@
'path' => 'log',
],
];
foreach ( $menuItems as $key => $value) { ?>
foreach ( $menuItems as $key => $value) {
if ($DEBUGMOD == 0 && $value['path'] == 'log') {
continue;
}
?>
<div class="nav-item <?php echo ($ITEM == $value ? 'is-active' : ''); ?>">
<a href="<?php echo $value['path']?>">
<i class="fa <?php echo $key ?>"></i>
@@ -42,5 +46,5 @@
</a>
</div>
<?php }?>
</div>
</div>