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

parent 18910e99
...@@ -38,6 +38,8 @@ $more = CoContent::find() ...@@ -38,6 +38,8 @@ $more = CoContent::find()
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if (Yii::$app->user->isGuest || !Bid::find()->where(['email' => Yii::$app->user->identity->email])->exists()): ?>
<div class="col-md-6 col-xs-6 col-sm-12"> <div class="col-md-6 col-xs-6 col-sm-12">
<div class="subsc_block"> <div class="subsc_block">
<h2 class="subsc_block_title">Подписаться на обновления</h2> <h2 class="subsc_block_title">Подписаться на обновления</h2>
...@@ -80,6 +82,7 @@ $more = CoContent::find() ...@@ -80,6 +82,7 @@ $more = CoContent::find()
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
</div> </div>
</div> </div>
<?php endif; ?>
</div> </div>
<!-- </div> <!-- </div>
</section> --> </section> -->
......
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