PHP Classes

File: templates/_partials/top-menu.inc.html.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   GetMeALatte   templates/_partials/top-menu.inc.html.php   Download  
File: templates/_partials/top-menu.inc.html.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: GetMeALatte
Promote a product to be sold to a crowd
Author: By
Last change:
Date: 1 year ago
Size: 1,739 bytes
 

Contents

Class file image Download
<?php use GetMeALatteLike\Kernel\Http\Router; ?>

<nav class="light-blue lighten-1" role="navigation">
    <div class="nav-wrapper container">
        <a id="logo-container" href="<?= site_url() ?>" class="brand-logo">
            <?= site_name() ?>
</a>

        <ul class="right hide-on-med-and-down">
            <?php if (!empty($isLoggedIn) && $isLoggedIn === true): ?>
<li <?= Router::doesContain('account/edit') ? 'class="active"' : '' ?>>
                    <a href="<?= site_url('/account/edit') ?>" title="Edit Account">Edit</a>
                </li>
                <li <?= Router::doesContain('account/password') ? 'class="active"' : '' ?>>
                    <a href="<?= site_url('/account/password') ?>" title="Edit Password">Password</a>
                </li>
                <li <?= Router::doesContain('payment') ? 'class="active"' : '' ?>>
                    <a href="<?= site_url('/payment') ?>">Payment</a>
                </li>
                <li <?= Router::doesContain('item') ? 'class="active"' : '' ?>>
                    <a href="<?= site_url('/item') ?>">Item</a>
                </li>
                <li>
                    <a href="<?= site_url('/account/logout') ?>">Logout</a>
                </li>
            <?php else: ?>
<li <?= Router::doesContain('signin') ? 'class="active"' : '' ?>>
                    <a href="<?= site_url('/signin') ?>">Sign In</a>
                </li>
                <li <?= Router::doesContain('signup') ? 'class="active"' : '' ?>>
                    <a href="<?= site_url('/signup') ?>">Sign Up</a>
                </li>
            <?php endif ?>
</ul>
    </div>
</nav>

<?= Router::doesContain('/account/edit') ?>