12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php'; ?>
- <?php if (!$myUser->connected()) throw new Exception('Vous devez être connecté pour accéder à cette fonctionnalité');
- $settingMenu = array();
- $administrationMenu = false;
- Plugin::callHook("menu_setting", array(&$settingMenu));
- // usort($settingMenu, function($a,$b){
- // if($a['label'] == "Général") return -1;
- // if($a['label'] > $b['label']) return 1;
- // if($a['label'] < $b['label']) return -1;
- // if($a['label'] == $b['label']) return 0;
- // });
- $_['section'] = !isset($_['section']) ? 'global': $_['section'];
- $page = basename($_SERVER['PHP_SELF']);
- ?>
- <div class="row">
- <div class="col-md-3">
- <div class="list-group">
- <h5 class="list-group-item">Configuration</h5>
- <?php foreach($settingMenu as $item):
- if(isset($item['category']) && $item['category']!='configuration') {
- $administrationMenu = true;
- continue;
- }
- ?>
- <a href="<?php echo $item['url']; ?>" class="list-group-item <?php echo $item['url'] == $page.'?section='.$_['section']?'active':'' ?> "><i class="<?php echo $item['icon']; ?>"></i> <?php echo $item['label']; ?></a>
- <?php endforeach; ?>
- </div>
- <br/>
- <?php if($administrationMenu): ?>
- <div class="list-group">
- <h5 class="list-group-item">Administration</h5>
- <?php foreach($settingMenu as $item):
- if(!isset($item['category']) || $item['category']!='administration') continue;
- ?>
- <a href="<?php echo isset($item['url'])?$item['url']:''; ?>" class="list-group-item <?php echo $item['url'] == $page.'?section='.$_['section']?'active':'' ?> "><i class="<?php echo $item['icon']; ?>"></i> <?php echo $item['label']; ?></a>
- <?php endforeach; ?>
- </div>
- <?php endif; ?>
- </div>
- <div class="col-md-9"><?php Plugin::callHook("content_setting"); ?></div>
- </div>
- <br>
- <?php require_once __ROOT__.'footer.php' ?>
|