<?php
    /**
     * Site header view.
     *
     * To be included from all views.
     *
     * @category View
     */

    namespace swdb;
?>
<header>
    <div id='logo'>
        <img id='logo_img' src='<?=URL::IMG["LOGO"]?>sw.png' alt=''/>
        <h1 id='logo_text'>
            <span class='large'>D</span>
            <span class='small'>ata</span>
            <span class='large'>B</span>
            <span class='small'>ase</span>
        </h1>
    </div>
<?php
    if ($_SESSION['session'] == true){
?>
        <nav id='menu'>
            <a href='/<?=$UID?>/'>
                Home
            </a>
            <a href='/<?=$UID?>/catalog/'>
                Catalog
            </a>
            <a href='/<?=$UID?>/monsters/'>
                Monsters
            </a>
            <a href='/<?=$UID?>/runes/'>
                Runes
            </a>
            <a href='/<?=$UID?>/fusion/'>
                Fusion
            </a>
            <a href='/<?=$UID?>/guild/'>
                Guild
            </a>
            <a href='/<?=$UID?>/runs/'>
                Runs
            </a>
            <a href='/<?=$UID?>/teams/'>
                Teams
            </a>
            <a href='/<?=$UID?>/report/'>
                Reports
            </a>
        </nav>
        <nav id='profile'>
            <a href='/<?=$UID?>/profile/'>
                <?=$_SESSION['name']?>
            </a>
        </nav>
<?php
    }
?>
</header>

