Beispiel #1
2
?>
</head>
<body>
<?php 
$this->beginBody();
?>
<div class="wrap">
	<header>
		<?php 
echo NaviWidget::widget();
?>
	</header>
	<div class="container">
		<div class="col-sm-3">
			<?php 
echo Accordion::widget(['items' => [['header' => '<strong>Table content <span class="glyphicon glyphicon-list-alt"></span></strong>', 'content' => Nav::widget(['activateParents' => true, 'encodeLabels' => false, 'options' => ['class' => 'nav nav-pills nav-stacked'], 'items' => [['label' => "Content Table <span class='glyphicon glyphicon-th-list'></span>", 'url' => ['control/index']], ['label' => "Add an Image <span class='glyphicon glyphicon-picture'></span> ", 'url' => ['control/image']], ['label' => "Add a new Topic <span class='glyphicon glyphicon-download-alt'></span>", 'url' => ['control/create']]]])], ['header' => '<strong>User Table <span class="glyphicon glyphicon-education"></span></strong>', 'content' => Nav::widget(['activateParents' => true, 'encodeLabels' => false, 'options' => ['class' => 'nav nav-pills nav-stacked'], 'items' => [['label' => "Users <span class='glyphicon glyphicon-star'></span>", 'url' => ['user/index']], ['label' => "Profiles <span class='glyphicon glyphicon-level-up'></span>", 'url' => ['profile/index']]]])]], 'options' => ['tag' => 'div'], 'itemOptions' => ['tag' => 'div'], 'headerOptions' => ['tag' => 'h3'], 'clientOptions' => ['collapsible' => false, 'heightStyle' => "content", 'animate' => 200]]);
?>
		</div>
		<div class="col-sm-9">
			<?php 
echo $content;
?>
		</div>
	</div>
</div>
<footer>
	<div class="container">
        <p class="pull-left">&copy; My Company <?php 
echo date('Y');
?>
</p>
Beispiel #2
0
<?php

/* @var $faculty Faculty */
use frontend\modules\program\helpers\AccordionContent;
use yii\jui\Accordion;
use yii\helpers\Html;
use frontend\modules\program\assets\AccordionAsset;
use common\models\Faculty;
AccordionAsset::register($this);
$this->title = 'Образовательные программы';
$this->params['breadcrumbs'][] = $this->title;
$this->params['header'] = $this->title;
$accordion = new AccordionContent();
$items = $accordion->items($faculty->id);
if (count($items) == 0) {
    echo Html::tag('p', 'Нет образовательных программ');
} else {
    echo Accordion::widget(['items' => $items, 'clientOptions' => ['event' => 'mouseover'], 'options' => ['id' => 'accordionContainer']]);
}
Beispiel #3
0
            <?php 
foreach ($block->getLinksList() as $type => $links) {
    ?>
                <?php 
    $items[] = ['header' => $links['title'], 'content' => Html::tag('div', Html::checkboxList('Menu[' . $type . ']', null, ArrayHelper::map($links['list'], 'id', 'title'), ['separator' => '<br/>']), ['data-type' => $type, 'class' => 'link-section'])];
    ?>
            <?php 
}
?>

            <?php 
if (count($items)) {
    ?>

                <?php 
    echo Accordion::widget(['id' => 'linkManger', 'items' => $items, 'options' => ['tag' => 'div'], 'itemOptions' => ['tag' => 'div'], 'headerOptions' => ['tag' => 'h3'], 'clientOptions' => ['heightStyle' => 'content']]);
    ?>

                <button type="submit" class="btn btn-primary btn-sm" id="addSelectedItems">
                    <i class="fa fa-plus-circle"></i> <?php 
    echo Yii::t('cms', 'Add Menu Item');
    ?>
                </button>

            <?php 
}
?>

        </div>
    </div>
    <div class="col-md-12">