Beispiel #1
0
$this->head();
?>
    </head>
    <body class="container-body">
        <?php 
$this->beginBody();
?>
        <div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
            <div class="container bs-docs-container clear">
                <div class="navbar-header">
                    <?php 
echo Html::a(LsYii::getApp()->name, Url::to(['site/index']), ['class' => 'navbar-brand']);
?>
                </div>
                <?php 
echo Nav::widget(['options' => ['class' => 'nav navbar-nav'], 'items' => Menu::getTopMenu()]);
?>
                <ul class="nav navbar-nav navbar-right">
                    <li class=""></li>
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php 
echo LsYii::getIdentity()->username;
?>
 <b class="caret"></b></a>                    
                        <ul class="dropdown-menu">
                            <li>
                                <?php 
echo Html::a('<span class="glyphicon glyphicon-user"></span> ' . LsYii::gT("个人资料"), Url::to(['site/profile']), []);
?>
                            </li>
                            <li>
Beispiel #2
0
$this->head();
?>
    </head>
    <body class="container-body">
        <?php 
$this->beginBody();
?>
        <div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
            <div class="container bs-docs-container clear">
                <div class="navbar-header">
                    <?php 
echo Html::a(LsYii::getName(), Url::to(['/site/index']), ['class' => 'navbar-brand']);
?>
                </div>
                <?php 
echo Nav::widget(['options' => ['class' => 'nav navbar-nav'], 'items' => \source\models\Menu::getTopMenu()]);
?>
              
                <ul class="nav navbar-nav navbar-right">
                    <li class=""></li>
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php 
echo LsYii::getIdentity()->username;
?>
 <b class="caret"></b></a>                    
                        <ul class="dropdown-menu">
                            <li>
                                <?php 
echo Html::a('<span class="glyphicon glyphicon-user"></span> ' . LsYii::gT("个人资料"), Url::to(['site/profile']), []);
?>
                            </li>