- Скрыли форму подписки для тех кто уже подписан (fix)

parent 5aa36468
......@@ -38,7 +38,13 @@ $more = CoContent::find()
</div>
<?php endif; ?>
<?php if (Yii::$app->user->isGuest || !Bid::find()->where(['email' => Yii::$app->user->identity->email])->exists()): ?>
<?php
$show = true;
if (!Yii::$app->user->isGuest && Bid::find()->where(['email' => Yii::$app->user->identity->email])->exists())
$show = false;
if ($show===true):
?>
<div class="col-md-6 col-xs-6 col-sm-12">
<div class="subsc_block">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment