12345678910111213141516171819202122232425262728293031 |
- <?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php';
- if(!$myUser->connected()) throw new Exception("Vous devez être connecté pour accéder à cette fonctionnalité",401);
- $accountMenu = array();
- Plugin::callHook("menu_account", array(&$accountMenu));
- usort($accountMenu, function($a,$b){
- if($a['sort'] > $b['sort']) return 1;
- if($a['sort'] < $b['sort']) return -1;
- if($a['sort'] == $b['sort']) 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">Préférences</h5>
- <?php foreach($accountMenu as $item): ?>
- <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>
- </div>
- <div class="col-md-9">
- <?php Plugin::callHook("content_account"); ?>
- </div>
- </div>
- <?php require_once __ROOT__.'footer.php' ?>
|