* Podium Module * Yii 2 Forum Module * @author Paweł Bizley Brzozowski <*****@*****.**> * @since 0.1 */ use bizley\podium\components\Helper; use kartik\sortable\Sortable; use yii\helpers\Html; use yii\helpers\Url; $this->title = Yii::t('podium/view', 'Forums'); $this->params['breadcrumbs'][] = ['label' => Yii::t('podium/view', 'Administration Dashboard'), 'url' => ['admin/index']]; $this->params['breadcrumbs'][] = ['label' => Yii::t('podium/view', 'Categories List'), 'url' => ['admin/categories']]; $this->params['breadcrumbs'][] = $this->title; $items = []; foreach ($forums as $forum) { $items[] = ['content' => Helper::adminForumsPrepareContent($forum)]; } if (!empty($items)) { $this->registerJs("\$('#podiumModalDelete').on('show.bs.modal', function(e) { var button = \$(e.relatedTarget); \$('#deleteUrl').attr('href', button.data('url')); });"); $this->registerJs("\$('[data-toggle=\"tooltip\"]').tooltip();"); } echo $this->render('/elements/admin/_navbar', ['active' => 'categories']); ?> <br> <div class="row"> <div class="col-sm-3"> <ul class="nav nav-pills nav-stacked"> <li role="presentation"><a href="<?php echo Url::to(['admin/categories']); ?> "><span class="glyphicon glyphicon-list"></span> <?php