Пример #1
0
}], ['class' => ActionColumn::className(), 'header' => Yii::t('podium/view', 'Actions'), 'contentOptions' => ['class' => 'text-right'], 'headerOptions' => ['class' => 'text-right'], 'template' => '{view}' . (!Yii::$app->user->isGuest ? ' {pm}' : ''), 'buttons' => ['view' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', ['members/view', 'id' => $model->id, 'slug' => $model->podiumSlug], ['class' => 'btn btn-default btn-xs', 'data-pjax' => '0', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'View Member')]);
}, 'pm' => function ($url, $model) {
    if ($model->id !== User::loggedId()) {
        return Html::a('<span class="glyphicon glyphicon-envelope"></span>', ['messages/new', 'user' => $model->id], ['class' => 'btn btn-default btn-xs', 'data-pjax' => '0', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'Send Message')]);
    } else {
        return Html::a('<span class="glyphicon glyphicon-envelope"></span>', '#', ['class' => 'btn btn-xs disabled text-muted']);
    }
}]]]]);
Pjax::end();
?>
<div class="panel panel-default">
    <div class="panel-body small">
        <ul class="list-inline pull-right">
            <li><a href="<?php 
echo Url::to(['default/index']);
?>
" data-toggle="tooltip" data-placement="top" title="<?php 
echo Yii::t('podium/view', 'Go to the main page');
?>
"><span class="glyphicon glyphicon-home"></span></a></li>
            <li><a href="#top" data-toggle="tooltip" data-placement="top" title="<?php 
echo Yii::t('podium/view', 'Go to the top');
?>
"><span class="glyphicon glyphicon-arrow-up"></span></a></li>
        </ul>
        <?php 
echo Readers::widget(['what' => 'members']);
?>
    </div>
</div>
Пример #2
0
    <div id="collapseUnread" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="unreadThreads">
        <table class="table table-hover">
            <?php 
echo $this->render('/elements/forum/_thread_header');
?>
            <?php 
echo ListView::widget(['dataProvider' => (new ThreadView())->search(), 'itemView' => '/elements/forum/_thread', 'summary' => '', 'emptyText' => Yii::t('podium/view', 'No more unread posts at the moment.'), 'emptyTextOptions' => ['tag' => 'td', 'class' => 'text-muted', 'colspan' => 4], 'options' => ['tag' => 'tbody'], 'itemOptions' => ['tag' => 'tr', 'class' => 'podium-thread-line']]);
?>
        </table>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-body small">
        <ul class="list-inline pull-right">
            <li><a href="<?php 
echo Url::to(['default/index']);
?>
" data-toggle="tooltip" data-placement="top" title="<?php 
echo Yii::t('podium/view', 'Go to the main page');
?>
"><span class="glyphicon glyphicon-home"></span></a></li>
            <li><a href="#top" data-toggle="tooltip" data-placement="top" title="<?php 
echo Yii::t('podium/view', 'Go to the top');
?>
"><span class="glyphicon glyphicon-arrow-up"></span></a></li>
        </ul>
        <?php 
echo Readers::widget(['what' => 'unread']);
?>
    </div>
</div>
Пример #3
0
    ?>
</h3>
            </div>
        </div>
    </div>
</div>
<?php 
}
?>
<br>
<div class="panel panel-default">
    <div class="panel-body small">
        <ul class="list-inline pull-right">
            <li><a href="<?php 
echo Url::to(['default/index']);
?>
" data-toggle="tooltip" data-placement="top" title="<?php 
echo Yii::t('podium/view', 'Go to the main page');
?>
"><span class="glyphicon glyphicon-home"></span></a></li>
            <li><a href="#top" data-toggle="tooltip" data-placement="top" title="<?php 
echo Yii::t('podium/view', 'Go to the top');
?>
"><span class="glyphicon glyphicon-arrow-up"></span></a></li>
        </ul>
        <?php 
echo Readers::widget(['what' => 'topic']);
?>
    </div>
</div>
Пример #4
0
    echo Html::encode($model->sub);
    ?>
</small>
<?php 
}
?>
    </div>
    <div id="collapse<?php 
echo $model->id;
?>
" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="forum<?php 
echo $model->id;
?>
">
        <?php 
echo $this->render('/elements/forum/_threads', ['forum' => $model->id, 'category' => $model->category_id, 'slug' => $model->slug, 'filters' => $filters]);
?>
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-body small">
        <?php 
echo $this->render('/elements/forum/_icons');
?>
        <?php 
echo Readers::widget(['what' => 'forum']);
?>
    </div>
</div>