jilo-web/app/templates/page-menu.php

44 lines
2.3 KiB
PHP
Raw Normal View History

2024-07-01 09:45:07 +00:00
2024-08-02 13:07:50 +00:00
<!-- Menu -->
<div class="menu-container">
<ul class="menu-left">
2024-08-05 17:21:34 +00:00
<div class="container">
<div class="row">
2024-08-24 10:06:00 +00:00
<a href="<?= $app_root ?>?platform=<?= $platform_id?>" class="logo-link"><div class="col-4"><img class="logo" src="<?= $app_root ?>static/jilo-logo.png" alt="JILO"/></div></a>
2024-08-05 17:21:34 +00:00
</div>
</div>
2024-08-05 16:53:24 +00:00
2024-08-07 08:13:55 +00:00
<li class="font-weight-light text-uppercase" style="font-size: 0.5em; color: whitesmoke; margin-right: 70px; align-content: center;">version&nbsp;<?php echo $config['version']; ?></li>
2024-07-03 15:15:32 +00:00
<?php if ( isset($_SESSION['username']) ) { ?>
2024-08-07 08:13:55 +00:00
<!--li><a href="?page=config">config</a></li>
2024-08-02 13:07:50 +00:00
<li><a href="?page=conferences">conferences</a></li>
<li><a href="?page=participants">participants</a></li>
2024-08-07 08:13:55 +00:00
<li><a href="?page=components">components</a></li-->
2024-08-19 10:25:09 +00:00
<li style="margin-right: 0px;">
<a style="background-color: #111;" href="?platform=<?= htmlspecialchars(array_keys($config['platforms'])[$platform_id]) ?>&page=front">
<?= htmlspecialchars($config['platforms'][$platform_id]['name']) ?>
</a>
</li>
2024-08-18 19:06:24 +00:00
<li style="margin: 0px; padding: 0px;">
2024-08-19 10:25:09 +00:00
<a style="background-color: #555; padding-left: 3px; padding-right: 3px;" href="?platform=<?= htmlspecialchars(array_keys($config['platforms'])[$platform_id]) ?>&page=config&action=edit">
<i class="fas fa-wrench" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="configure platform &quot;<?= htmlspecialchars($config['platforms'][$platform_id]['name']) ?>&quot;"></i>
2024-08-18 19:06:24 +00:00
</a>
</li>
2024-08-07 08:13:55 +00:00
2024-07-01 09:45:07 +00:00
<?php } ?>
2024-08-02 13:07:50 +00:00
</ul>
2024-07-01 09:45:07 +00:00
2024-08-02 13:07:50 +00:00
<ul class="menu-right">
2024-07-03 15:15:32 +00:00
<?php if ( isset($_SESSION['username']) ) { ?>
2024-08-15 07:31:26 +00:00
<li><a href="<?= $app_root ?>?page=profile"><?= $user ?></a></li>
<li><a href="<?= $app_root ?>?page=logout">logout</a></li>
2024-07-01 09:45:07 +00:00
<?php } else { ?>
2024-08-15 07:31:26 +00:00
<li><a href="<?= $app_root ?>?page=login">login</a></li>
<li><a href="<?= $app_root ?>?page=register">register</a></li>
2024-07-01 09:45:07 +00:00
<?php } ?>
2024-08-02 13:07:50 +00:00
</ul>
</div>
<!-- /Menu -->