Пример #1
0
                    <a href="<?php 
echo $this->createUrl('site/page', array('view' => 'guidelines'));
?>
">Guidelines</a>
                </li>
                <li  <?php 
echoSelectedClassIfRequestMatches('faq');
?>
	>
                    <a href="<?php 
echo $this->createUrl('site/page', array('view' => 'faq'));
?>
">FAQ</a>
                </li>
                <li <?php 
echoSelectedClassIfRequestMatches('contact');
?>
>
                    <a href="<?php 
echo $this->createUrl('site/contact');
?>
" >Contact</a>
                </li>
                
                <?php 
if (Yii::app()->user->isGuest) {
    ?>
                    <li>
                        <a href="<?php 
    echo $this->createUrl('user/signup');
    ?>
Пример #2
0
<div id="navbar">
<nav id="nav-main">
    <ul>
        <li><a href="home.php"<?php 
echo echoSelectedClassIfRequestMatches("home");
?>
>Home</a></li>
        <li><a href="reserve.php"<?php 
echo echoSelectedClassIfRequestMatches("reserve");
?>
>Reserveren</a></li>
        <li><a href="aboutus.php"<?php 
echo echoSelectedClassIfRequestMatches("aboutus");
?>
>Over ons</a></li>
        <li><a href="contact.php"<?php 
echo echoSelectedClassIfRequestMatches("contact");
?>
>Contact</a></li>
        <?php 
if (isset($_SESSION['user_id']) || !empty($_SESSION['user_id'])) {
    echo "<li><a href=\"user.php\">Mijn gegevens</a></li>";
    echo "<li><a href=\"logout.php\">Logout</a></li>";
} else {
    echo "<li><a href=\"login.php\"<?=echoSelectedClassIfRequestMatches(\"login\")?>Inloggen</a></li>";
    echo "<li><a href=\"register.php\"<?=echoSelectedClassIfRequestMatches(\"register\")?>Registreren</a></li>";
}
?>
    </ul>
</nav>
</div>