Ejemplo n.º 1
0
 public function actionEvents()
 {
     $lastDate = Yii::$app->request->post('lastDate', 0);
     $lastIds = Yii::$app->request->post('loadEventId', []);
     $order = Yii::$app->request->post('order', EventList::ORDER_BY_DATE);
     $dateCreateType = Yii::$app->request->post('dateCreateType', EventList::DATE_CREATE_ALL);
     return EventList::widget(['lastIds' => $lastIds, 'lastDate' => $lastDate, 'onlyEvent' => true, 'orderBy' => $order, 'dateCreateType' => $dateCreateType]);
 }
Ejemplo n.º 2
0
use frontend\models\Lang;
use frontend\widgets\EventList;
use yii\bootstrap\Html;
use yii\helpers\Url;
$this->title = Lang::t('main/index', 'title');
$keywords = 'brazilian zouk, zouk, бразильский зук, бразильский танец зук, конгресс, congress, мастер класс, фестиваль, потанцевать, научиться';
$description = 'Зук – это современный, романтичный и ритмичный танец. Найти вечиринку, конгресс по бразильскому зуку. Разместить своё мероприятие.';
$this->registerMetaTag(['name' => 'keywords', 'content' => $keywords], 'keywords');
$this->registerMetaTag(['name' => 'description', 'content' => $description], 'description');
Yii::$app->params['jsZoukVar']['dateCreateType'] = EventList::DATE_CREATE_AFTER;
?>
<div class="site-index">
    <div class="body-content">
        <div class="row">
            <div class="col-md-8">
                <?php 
echo $this->render('/event/tabs', ['selectTab' => 2]);
?>
                <?php 
echo EventList::widget(['orderBy' => EventList::ORDER_BY_DATE, 'dateCreateType' => EventList::DATE_CREATE_AFTER]);
?>
            </div>
            <div class="col-md-4">
                <?php 
echo Html::a(Lang::t('main', 'mainButtonAddEvent'), ['/events/add'], ['class' => 'btn btn-success btn-label-main add-item']);
echo $this->render('/list/listRightBlock');
?>
            </div>
        </div>
    </div>
</div>
Ejemplo n.º 3
0
$this->params['breadcrumbs'][] = ['label' => Lang::t('page/eventView', 'events'), 'url' => ['events/all']];
$this->params['breadcrumbs'][] = $year;
?>
<h1><?php 
echo Lang::t('main', 'yearEvents') . ': ' . Html::a($year, ['event/year', 'year' => $year]);
?>
</h1>

<div id="eventMap">

</div>

<div class="row">
    <div class="col-md-10">
        <?php 
echo EventList::widget(['orderBy' => EventList::ORDER_BY_DATE, 'dateCreateType' => EventList::DATE_CREATE_AFTER, 'events' => $events, 'display' => EventList::EVENT_LIST_DISPLAY_MINI]);
?>
    </div>
    <div class="col-md-2 text-center">
        <h4><b><?php 
echo Html::a($year - 1, ['event/year', 'year' => $year - 1]);
?>
</b></h4>
        <h4><b><?php 
echo $year;
?>
</b></h4>
        <?php 
for ($i = 1; $i <= 12; $i++) {
    echo Html::tag('div', Html::a(Lang::t('month', 'month' . str_pad($i, 2, '0', STR_PAD_LEFT)), ['event/month', 'year' => $year, 'month' => $i]));
}