Example #1
0
?>
							<p class="text-muted" id="event-description">
								<?php 
echo \common\helpers\Html::bb2html(html_entity_decode($event->description));
?>
							</p>

							<hr class="separator"/>
							<div class="media">
								<div class="media-left">
									<a href="<?php 
echo Url::to(['user/index', 'id' => $event->user_id]);
?>
">
										<?php 
echo \common\helpers\Html::avatar($event->user, User::AVATAR_60, ['class' => 'media-object img-circle']);
?>
									</a>
								</div>
								<div class="media-body">
									<h5 class="media-heading"><?php 
echo $event->user->username;
?>
</h5>
									Опубликовал событие <?php 
echo \common\helpers\Time::dateNormalize($event->created_at);
?>
								</div>
							</div>
						</div>
Example #2
0
use common\helpers\String;
use common\models\User;
use yii\helpers\Url;
/* @var $userAuth User */
/* @var $userView User */
/* @var $eventSubscribe  \common\models\Event[] */
/* @var $eventCreate  \common\models\Event[] */
frontend\assets\User::register($this);
$isSubscribed = $userAuth ? $userView->isSubscribed($userAuth) : false;
$this->title = $userView->username;
?>
<div class="row">
	<div class="col-md-3 user-left col-md-offset-1">
		<div class="avatar-edit" style="overflow: hidden;position: relative">
			<?php 
echo \common\helpers\Html::avatar($userView, User::AVATAR_240, ['class' => 'img-responsive user-avatar center-block img-circle ']);
?>
			<?php 
if ($userView->isMy()) {
    ?>
				<a href="<?php 
    echo Url::to(['user/avatar-change']);
    ?>
" title="Сменить аватар" class="avatar-edit-click"><i
						class="md md-camera-alt md-5x"></i></a>
			<?php 
}
?>
		</div>
		<div class="panel panel-default">
			<div class="panel-body">
Example #3
0
	<div class="event-img">
		<a href="<?php 
echo Url::to(['/event/view', 'id' => $event->id]);
?>
"><?php 
echo $event->getImage(\common\models\Event::IMAGE_MAIN, ['class' => 'img-responsive']);
?>
</a>
	</div>
	<div class="event-body">
		<a href="<?php 
echo Url::to(['/user/index', 'id' => $event->user->id]);
?>
">
			<?php 
echo \common\helpers\Html::avatar($event->user, 50, ['alt' => $event->user->username, 'class' => 'media-object img-circle owner-img']);
?>
		</a>

		<div class="event-title"><?php 
echo $event->name;
?>
</div>
		<div class="event-description"><?php 
echo \common\helpers\String::truncate($event->description, $context->descriptionLength);
?>
</div>
		<div class="event-date"><?php 
echo \common\helpers\Time::dateNormalize($event->begin);
?>
</div>
Example #4
0
<div class="wrap">
	<?php 
\yii\bootstrap\NavBar::begin(['innerContainerOptions' => ['class' => 'container'], 'brandLabel' => 'Findspree', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar navbar-inverse navbar-fixed-top']]);
$menuItems[] = ['label' => 'О сервисе', 'url' => '#', 'options' => ['data-toggle' => 'modal', 'data-target' => '#hello']];
$menuItems[] = ['label' => 'Обратная связь', 'url' => ['/site/feedback']];
$menuItems[] = ['label' => 'Карта', 'url' => ['/event/map']];
$menuItems[] = ['label' => 'События', 'url' => ['/site/index']];
$menuItems[] = ['label' => 'Добавить событие', 'url' => ['/event/edit']];
?>

	<?php 
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => 'Регистрация', 'url' => ['/site/signup']];
    $menuItems[] = ['label' => 'Вход', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => Html::avatar(Yii::$app->user->identity, 50, ['class' => 'img-circle hidden-xs']) . ' ' . \yii\helpers\Html::tag('span', Yii::$app->user->identity->username, ['class' => 'username']), 'encode' => false, 'options' => ['class' => 'user-main-avatar'], 'linkOptions' => ['id' => 'user-main-link'], 'items' => [['label' => 'Профиль', 'url' => ['/user/index']], '<li role="presentation" class="divider"></li>', ['label' => 'Выход', 'url' => ['/site/logout']]]];
}
echo \yii\bootstrap\Nav::widget(['activateParents' => true, 'options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
\yii\bootstrap\NavBar::end();
?>
	<div class="container page">
		<?php 
echo $content;
?>
	</div>

	<div id="hello" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
		 aria-hidden="true">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-body">