Commit 64aa9c88 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 63126898
...@@ -3,7 +3,6 @@ use yii\widgets\ActiveForm; ...@@ -3,7 +3,6 @@ use yii\widgets\ActiveForm;
use yii\helpers\Html; use yii\helpers\Html;
use \common\modules\blog\models\BlogBids; use \common\modules\blog\models\BlogBids;
use common\modules\bids\models\Bid;
$userIsSubscribed = false; $userIsSubscribed = false;
$cacheEmail = Yii::$app->cache->get('user_email'); $cacheEmail = Yii::$app->cache->get('user_email');
if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->exists()===true) if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->exists()===true)
...@@ -16,9 +15,7 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex ...@@ -16,9 +15,7 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex
<div class="subsc_blog_txt"><?=\Yii::t('form', 'We will try to publish this section only useful and unique content for the market. Subscription allow to be the first to get notification about fresh articles.')?></div> <div class="subsc_blog_txt"><?=\Yii::t('form', 'We will try to publish this section only useful and unique content for the market. Subscription allow to be the first to get notification about fresh articles.')?></div>
<?php <?php
$model = new Bid; $model = new BlogBids;
$model->setScenario(Bid::SCENARIO_SUBSCRIBE);
$model->form = Bid::FORM_SUBSCRIBE;
$form = ActiveForm::begin([ $form = ActiveForm::begin([
'action' => '/blog/blog-bid/add', 'action' => '/blog/blog-bid/add',
...@@ -26,8 +23,7 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex ...@@ -26,8 +23,7 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex
'options' => [ 'options' => [
'class' => 'subsc_blog_form bids-form', 'class' => 'subsc_blog_form bids-form',
'data-title' => $title, 'data-title' => $title,
'data-form' => 'Подпись на обновления в блоге', 'data-form' => 'Подпись на обновления в блоге'
'data-tag' => Bid::TAG_INVOLVEMENT
], ],
]); ?> ]); ?>
......
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