Esempio n. 1
0
    <?php 
NavBar::begin(['brandLabel' => 'My Company', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$menuItems = [['label' => 'Home', 'url' => ['/site/index']], ['label' => 'About', 'url' => ['/site/about']], ['label' => 'Contact', 'url' => ['/site/contact']]];
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']];
    $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Yii::$app->language . WLang::widget();
?>

        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo Alert::widget();
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
Esempio n. 2
0
<?php 
$this->beginBody();
?>

<header id="header">
    <div class="top-bar">
        <div class="container">
            <div class="row">
                <div class="col-sm-4 col-xs-4">
                    <div class="top-number"><p><i class="fa fa-phone-square"></i> +38 063 132 13 36</p></div>

                </div>
                <div class="col-sm-2 col-xs-4">
                    <div><?php 
echo WLang::widget();
?>
</div>
                </div>
                <div class="col-sm-6 col-xs-8">
                    <div class="social">
                        <ul class="social-share">
                            <li><a href="#"><i class="fa fa-facebook"></i></a></li>
                            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                            <li><a href="#"><i class="fa fa-dribbble"></i></a></li>
                            <li><a href="#"><i class="fa fa-skype"></i></a></li>
                        </ul>
                        <div class="search">
                            <form role="form">
                                <input type="text" class="search-form" autocomplete="off" placeholder="Search">
Esempio n. 3
0
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'Improving LIVES', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
if (\frontend\models\User::isActive() || true) {
    $menuItems = [['label' => Yii::t('frontend', 'My Page'), 'items' => [['label' => Yii::t('frontend', 'Weight Tracker'), 'url' => ['/members/weight-tracker']], ['label' => Yii::t('frontend', 'Meal Plan'), 'url' => ['/members/meal-plan']]]], ['label' => Yii::t('frontend', 'PDFs'), 'url' => ['/members/pdfs']], ['label' => Yii::t('frontend', 'Recipes'), 'url' => ['/recipes/categories']], ['label' => Yii::t('frontend', 'Articles'), 'url' => ['/articles/categories']], ['label' => Yii::t('frontend', 'FAQ'), 'url' => ['/faq/categories']]];
}
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => Yii::t('frontend', 'Signup'), 'url' => ['/site/signup']];
    $menuItems[] = ['label' => Yii::t('frontend', 'Login'), 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => Yii::t('frontend', 'Logout ({name})', ['name' => Yii::$app->user->identity->email]), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']];
}
$menuItems[] = ['label' => Yii::t('frontend', Lang::getLangByUrl(Yii::$app->language)->name), 'items' => WLang::getItems()];
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo Alert::widget();
?>
        <?php 
echo $content;
?>
        <?php