Exemple #1
0
                                                    <li class="<?php 
echo \SKS\LIB\Session::getActiveClass("Gallery", $this->title);
?>
"><a href="<?php 
echo URL;
?>
gallery">Gallery</a></li>                
                                                    <li class="<?php 
echo \SKS\LIB\Session::getActiveClass("Contact", $this->title);
?>
"><a href="<?php 
echo URL;
?>
contact">Contact</a></li>
                                                    <?php 
if (\SKS\LIB\Session::isLoggedInUser()) {
    echo '<li class="' . \SKS\LIB\Session::getActiveClass("Profile", $this->title) . '"><a href="' . URL . 'user/profile">My Profile</a></li>';
    echo '<li><a href="' . URL . 'login/logout">Logout</a></li>';
} else {
    echo '<li class="' . \SKS\LIB\Session::getActiveClass("Login", $this->title) . '"><a href="' . URL . 'login">Login</a></li>';
}
if (\SKS\LIB\Session::isAdmin()) {
    echo '<li><a href="' . URL . 'dashboardAction">Dashboard</a></li>';
}
?>

                                                </ul>           
                                            </div><!--/.nav-collapse -->
                                        </div>     
                                    </nav>  
                                </div>