Cases

parent bffbccdc
...@@ -63,4 +63,16 @@ class Settings extends \common\components\ActiveRecordModel ...@@ -63,4 +63,16 @@ class Settings extends \common\components\ActiveRecordModel
'description' => 'Описание', 'description' => 'Описание',
]; ];
} }
public function getValue($code)
{
$model = Settings::find()->where(['code' => $code])->one();
if($model)
{
return $model->value;
}
return;
}
} }
...@@ -120,7 +120,13 @@ class CoContent extends \common\components\ActiveRecordModel ...@@ -120,7 +120,13 @@ class CoContent extends \common\components\ActiveRecordModel
} }
$arrWhatReplaceNext[] = '[about-reviews]'; $arrWhatReplaceNext[] = '[about-reviews]';
$arrReplaceNext[] = \common\modules\content\models\CoBlocks::printStaticBlock( 'about-reviews', true); $arrReplaceNext[] = \common\modules\content\models\CoBlocks::printStaticBlock('about-reviews', true);
$arrWhatReplaceNext[] = '[content-phone]';
$arrReplaceNext[] = \common\models\Settings::getValue('content-phone');
$arrWhatReplaceNext[] = '[cases]';
$arrReplaceNext[] = \common\modules\content\models\CoBlocks::printStaticBlock('cases', true);
$arrWhatReplaceNext[] = '[case-subscribe]';
$arrReplaceNext[] = \common\modules\content\models\CoBlocks::printStaticBlock('case-subscribe', true);
return str_replace($arrWhatReplaceNext, $arrReplaceNext,str_replace($arrWhatReplace, $arrReplace, $content)); return str_replace($arrWhatReplaceNext, $arrReplaceNext,str_replace($arrWhatReplace, $arrReplace, $content));
} }
......
...@@ -34,7 +34,6 @@ class SiteController extends BaseController ...@@ -34,7 +34,6 @@ class SiteController extends BaseController
return [ return [
'Index' => 'Главная страница', 'Index' => 'Главная страница',
'Contacts' => 'Контакты', 'Contacts' => 'Контакты',
'Keys' => 'Кейсы',
'Error' => 'Error', 'Error' => 'Error',
'Login' => '', 'Login' => '',
'Logout' => '', 'Logout' => '',
...@@ -48,12 +47,6 @@ class SiteController extends BaseController ...@@ -48,12 +47,6 @@ class SiteController extends BaseController
{ {
return $this->render('contacts'); return $this->render('contacts');
} }
// TEMP
public function actionKeys()
{
return $this->render('keys');
}
......
<div class="row">
<div class="col-md-12 col-xs-12 col-sm-12">
<div class="keys_send_mail">
<p>Процесс создания кейса очень трудоемкий.Поэтому мы занимаемся созданием кейсов свободное от работы время. Подпишитесь, чтобы следить за обновлениями.</p>
<form class="keys_mail_form">
<input type="email" placeholder="E-mail*" class="field-input required email"></input>
<button class="save-button">Подписаться</button>
</form>
<div class="send_secce">Вы успешно подписались на обновление раздела «Кейсы». Нам приятно, что вы следите за нашим развитием :-)</div>
</div>
</div>
</div>
\ No newline at end of file
<div class="row">
<div class="col-md-6 col-xs-6 col-sm-12">
<div class="keys_block_small">
<img src="/images/keys_small1.jpg" height="338" width="455" alt="">
<div class="keys_small_title">Он-лайн сервис по подбору аналогов оборудования</div>
<div class="keys_small_foot">
<a href="/case/kns" class="keys_small_btn_more"><span>Подробнее</span></a>
<a href="#" class="keys_small_tags"># Big data</a>
</div>
</div>
</div>
<div class="col-md-6 col-xs-6 col-sm-12">
<div class="keys_block_small">
<img src="/images/keys_small2.jpg" height="338" width="455" alt="">
<div class="keys_small_title">Автоматизация освещения на АЗС</div>
<div class="keys_small_foot">
<a href="#" class="keys_small_btn_more"><span>Подробнее</span></a>
<a href="#" class="keys_small_tags"># Big data</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xs-12 col-sm-12">
<div class="keys_block_big">
<picture>
<source srcset="images/keys_big338.jpg" media="(max-width: 768px)">
<img src="/images/keys_big1.jpg" height="338" width="940" alt="">
</picture>
<div class="keys_small_title">Он-лайн сервис по подбору аналогов оборудования</div>
<div class="keys_small_foot">
<a href="#" class="keys_small_btn_more"><span>Подробнее</span></a>
<a href="#" class="keys_small_tags"># Big data</a>
</div>
</div>
</div>
</div>
\ No newline at end of file
...@@ -27,10 +27,10 @@ AppAsset::register($this); ...@@ -27,10 +27,10 @@ AppAsset::register($this);
<nav class="menu"> <nav class="menu">
<div class="toggle_block"><a href="#" class="toggle-mnu"><span></span></a></div> <div class="toggle_block"><a href="#" class="toggle-mnu"><span></span></a></div>
<div class="phone_menu">8-495-749-29-69</div> <div class="phone_menu"><?=\common\models\Settings::getValue('content-phone')?></div>
<ul> <ul>
<li><a href="/about" class="link">О компании</a></li> <li><a href="/about" class="link">О компании</a></li>
<li><a href="/keys" class="link">Кейсы</a></li> <li><a href="/case" class="link">Кейсы</a></li>
<li><a href="#" class="link">Блог</a></li> <li><a href="#" class="link">Блог</a></li>
<li><a href="/school" class="link">Школа аналитики</a></li> <li><a href="/school" class="link">Школа аналитики</a></li>
<li><a href="/contacts" class="link">Контакты</a></li> <li><a href="/contacts" class="link">Контакты</a></li>
...@@ -49,7 +49,7 @@ AppAsset::register($this); ...@@ -49,7 +49,7 @@ AppAsset::register($this);
<nav class="top_nav clearfix"> <nav class="top_nav clearfix">
<ul> <ul>
<li><a href="/about">О компании</a></li> <li><a href="/about">О компании</a></li>
<li><a href="/keys">Кейсы</a></li> <li><a href="/case">Кейсы</a></li>
<li><a href="#">Блог</a></li> <li><a href="#">Блог</a></li>
<li><a href="/school">Школа аналитики</a></li> <li><a href="/school">Школа аналитики</a></li>
<li><a href="/contacts">Контакты</a></li> <li><a href="/contacts">Контакты</a></li>
...@@ -61,7 +61,7 @@ AppAsset::register($this); ...@@ -61,7 +61,7 @@ AppAsset::register($this);
</div> </div>
</div> </div>
<div class="col-md-3 col-xs-3 col-sm-12"> <div class="col-md-3 col-xs-3 col-sm-12">
<span class="top_phone">8-495-749-29-69</span> <span class="top_phone"><?=\common\models\Settings::getValue('content-phone')?></span>
<div class="phone_hover_head">Стоимость звонка 0 руб,<br/> в том числе с мобильного</div> <div class="phone_hover_head">Стоимость звонка 0 руб,<br/> в том числе с мобильного</div>
</div> </div>
</div> </div>
......
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