diff -r ee23fd0f9b49 protected/components/Controller.php
--- a/protected/components/Controller.php Wed Sep 12 15:56:08 2018 +0300
+++ b/protected/components/Controller.php Mon Sep 17 13:33:58 2018 +0300
@@ -87,6 +87,8 @@
public $adsForIndexMap = array();
public $useAdditionalView;
public $countNewsProduct = 0;
+
+ public $showInnerSearchForm = true;
protected function beforeAction($action)
{
diff -r ee23fd0f9b49 protected/modules/entries/controllers/MainController.php
--- a/protected/modules/entries/controllers/MainController.php Wed Sep 12 15:56:08 2018 +0300
+++ b/protected/modules/entries/controllers/MainController.php Mon Sep 17 13:33:58 2018 +0300
@@ -23,6 +23,8 @@
public $modelName = 'Entries';
public $showSearchForm = false;
+
+ public $showInnerSearchForm = false;
public function actionIndex($catUrlName = '', $tag = '')
{
diff -r ee23fd0f9b49 themes/basis/assets/css/style.css
--- a/themes/basis/assets/css/style.css Wed Sep 12 15:56:08 2018 +0300
+++ b/themes/basis/assets/css/style.css Mon Sep 17 13:33:58 2018 +0300
@@ -2163,6 +2163,9 @@
.news_block.widget.news_block_search_inner_top {
margin-top: 0;
}
+.news_block.widget {
+ margin-top: 0px;
+}
.entries-image {
margin-bottom: 15px;
diff -r ee23fd0f9b49 themes/basis/views/layouts/inner.php
--- a/themes/basis/views/layouts/inner.php Wed Sep 12 15:56:08 2018 +0300
+++ b/themes/basis/views/layouts/inner.php Mon Sep 17 13:33:58 2018 +0300
@@ -6,6 +6,7 @@
$compact = ($showHideFilter == false) ? false : param("useCompactInnerSearchForm", false);
$searchUrl = isset($this->aData['searchUrl']) ? $this->aData['searchUrl'] : Yii::app()->controller->createUrl('/quicksearch/main/mainsearch');
$useTopFullWidthInnerSearchForm = false;
+$showInnerSearchForm = (isset($this->showInnerSearchForm)) ? $this->showInnerSearchForm : true;
?>
<?php if ($useTopFullWidthInnerSearchForm): ?>
@@ -62,7 +63,7 @@
<div class="col-md-3 sidebar_left">
<div id="sticker">
- <?php if (!$useTopFullWidthInnerSearchForm):?>
+ <?php if (!$useTopFullWidthInnerSearchForm && $showInnerSearchForm):?>
<div class="box-content search-inner">
<?php Yii::app()->controller->renderPartial('//site/inner-search'); ?>
</div>
Вернуться в Вопросы и помощь по изменениям
Сейчас этот форум просматривают: Google [Bot] и гости: 23