Commit 824ca43a5bd37b3aef17634026d49315f6a33258
1 parent
4583f00b
-Pages update (admin part)
Showing
587 changed files
with
225 additions
and
160 deletions
Show diff stats
| @@ -96,64 +96,64 @@ AddDefaultCharset utf-8 | @@ -96,64 +96,64 @@ AddDefaultCharset utf-8 | ||
| 96 | 96 | ||
| 97 | 97 | ||
| 98 | # кеширование в браузере на стороне пользователя | 98 | # кеширование в браузере на стороне пользователя |
| 99 | - | ||
| 100 | -<IfModule mod_expires.c> | ||
| 101 | - ExpiresActive On | ||
| 102 | - ExpiresDefault "access 7 days" | ||
| 103 | - ExpiresByType application/javascript "access plus 1 year" | ||
| 104 | - ExpiresByType text/javascript "access plus 1 year" | ||
| 105 | - ExpiresByType text/css "access plus 1 year" | ||
| 106 | - ExpiresByType text/html "access plus 7 day" | ||
| 107 | - ExpiresByType text/x-javascript "access 1 year" | ||
| 108 | - ExpiresByType image/gif "access plus 1 year" | ||
| 109 | - ExpiresByType image/jpeg "access plus 1 year" | ||
| 110 | - ExpiresByType image/png "access plus 1 year" | ||
| 111 | - ExpiresByType image/jpg "access plus 1 year" | ||
| 112 | - ExpiresByType image/x-icon "access 1 year" | ||
| 113 | - ExpiresByType application/x-shockwave-flash "access 1 year" | ||
| 114 | - </IfModule> | ||
| 115 | -<IfModule mod_deflate.c> | ||
| 116 | -AddOutputFilterByType DEFLATE text/plain | ||
| 117 | -AddOutputFilterByType DEFLATE text/html | ||
| 118 | -AddOutputFilterByType DEFLATE text/xml | ||
| 119 | -AddOutputFilterByType DEFLATE text/css | ||
| 120 | -AddOutputFilterByType DEFLATE application/xml | ||
| 121 | -AddOutputFilterByType DEFLATE application/xhtml+xml | ||
| 122 | -AddOutputFilterByType DEFLATE application/rss+xml | ||
| 123 | -AddOutputFilterByType DEFLATE application/javascript | ||
| 124 | -AddOutputFilterByType DEFLATE application/x-javascript | ||
| 125 | -BrowserMatch ^Mozilla/4 gzip-only-text/html | ||
| 126 | -BrowserMatch ^Mozilla/4\.0[678] no-gzip | ||
| 127 | -BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | ||
| 128 | -Header append Vary User-Agent | ||
| 129 | -RewriteEngine On | ||
| 130 | -AddEncoding gzip .gz | ||
| 131 | -RewriteCond %{HTTP:Accept-encoding} gzip | ||
| 132 | -RewriteCond %{REQUEST_FILENAME}.gz -f | ||
| 133 | -RewriteRule ^(.*)$ $1.gz [QSA,L] | ||
| 134 | -</IfModule> | ||
| 135 | -# Cache-Control | ||
| 136 | -<ifModule mod_headers.c> | ||
| 137 | -# 30 дней | ||
| 138 | - <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$"> | ||
| 139 | - Header set Cache-Control "max-age=2592000, public" | ||
| 140 | - </filesMatch> | ||
| 141 | - # 30 дней | ||
| 142 | - <filesMatch "\.(css|js)$"> | ||
| 143 | - Header set Cache-Control "max-age=2592000, public" | ||
| 144 | - </filesMatch> | ||
| 145 | - # 2 дня | ||
| 146 | - <filesMatch "\.(xml|txt)$"> | ||
| 147 | - Header set Cache-Control "max-age=172800, public, must-revalidate" | ||
| 148 | - </filesMatch> | ||
| 149 | - # 1 день | ||
| 150 | - <filesMatch "\.(html|htm|php)$"> | ||
| 151 | - Header set Cache-Control "max-age=172800, private, must-revalidate" | ||
| 152 | - </filesMatch> | ||
| 153 | -</ifModule> | ||
| 154 | - | ||
| 155 | -#Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE | ||
| 156 | -<IfModule mod_setenvif.c> | ||
| 157 | -BrowserMatch "MSIE" force-no-vary | ||
| 158 | -BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary | ||
| 159 | -</IfModule> | 99 | +# |
| 100 | +#<IfModule mod_expires.c> | ||
| 101 | +# ExpiresActive On | ||
| 102 | +# ExpiresDefault "access 7 days" | ||
| 103 | +# ExpiresByType application/javascript "access plus 1 year" | ||
| 104 | +# ExpiresByType text/javascript "access plus 1 year" | ||
| 105 | +# ExpiresByType text/css "access plus 1 year" | ||
| 106 | +# ExpiresByType text/html "access plus 7 day" | ||
| 107 | +# ExpiresByType text/x-javascript "access 1 year" | ||
| 108 | +# ExpiresByType image/gif "access plus 1 year" | ||
| 109 | +# ExpiresByType image/jpeg "access plus 1 year" | ||
| 110 | +# ExpiresByType image/png "access plus 1 year" | ||
| 111 | +# ExpiresByType image/jpg "access plus 1 year" | ||
| 112 | +# ExpiresByType image/x-icon "access 1 year" | ||
| 113 | +# ExpiresByType application/x-shockwave-flash "access 1 year" | ||
| 114 | +# </IfModule> | ||
| 115 | +#<IfModule mod_deflate.c> | ||
| 116 | +#AddOutputFilterByType DEFLATE text/plain | ||
| 117 | +#AddOutputFilterByType DEFLATE text/html | ||
| 118 | +#AddOutputFilterByType DEFLATE text/xml | ||
| 119 | +#AddOutputFilterByType DEFLATE text/css | ||
| 120 | +#AddOutputFilterByType DEFLATE application/xml | ||
| 121 | +#AddOutputFilterByType DEFLATE application/xhtml+xml | ||
| 122 | +#AddOutputFilterByType DEFLATE application/rss+xml | ||
| 123 | +#AddOutputFilterByType DEFLATE application/javascript | ||
| 124 | +#AddOutputFilterByType DEFLATE application/x-javascript | ||
| 125 | +#BrowserMatch ^Mozilla/4 gzip-only-text/html | ||
| 126 | +#BrowserMatch ^Mozilla/4\.0[678] no-gzip | ||
| 127 | +#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | ||
| 128 | +#Header append Vary User-Agent | ||
| 129 | +#RewriteEngine On | ||
| 130 | +#AddEncoding gzip .gz | ||
| 131 | +#RewriteCond %{HTTP:Accept-encoding} gzip | ||
| 132 | +#RewriteCond %{REQUEST_FILENAME}.gz -f | ||
| 133 | +#RewriteRule ^(.*)$ $1.gz [QSA,L] | ||
| 134 | +#</IfModule> | ||
| 135 | +## Cache-Control | ||
| 136 | +#<ifModule mod_headers.c> | ||
| 137 | +## 30 дней | ||
| 138 | +# <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$"> | ||
| 139 | +# Header set Cache-Control "max-age=2592000, public" | ||
| 140 | +# </filesMatch> | ||
| 141 | +# # 30 дней | ||
| 142 | +# <filesMatch "\.(css|js)$"> | ||
| 143 | +# Header set Cache-Control "max-age=2592000, public" | ||
| 144 | +# </filesMatch> | ||
| 145 | +# # 2 дня | ||
| 146 | +# <filesMatch "\.(xml|txt)$"> | ||
| 147 | +# Header set Cache-Control "max-age=172800, public, must-revalidate" | ||
| 148 | +# </filesMatch> | ||
| 149 | +# # 1 день | ||
| 150 | +# <filesMatch "\.(html|htm|php)$"> | ||
| 151 | +# Header set Cache-Control "max-age=172800, private, must-revalidate" | ||
| 152 | +# </filesMatch> | ||
| 153 | +#</ifModule> | ||
| 154 | +# | ||
| 155 | +##Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE | ||
| 156 | +#<IfModule mod_setenvif.c> | ||
| 157 | +#BrowserMatch "MSIE" force-no-vary | ||
| 158 | +#BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary | ||
| 159 | +#</IfModule> |
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | -use yii\helpers\Html; | ||
| 4 | -use yii\grid\GridView; | ||
| 5 | - | ||
| 6 | -/* @var $this yii\web\View */ | ||
| 7 | -/* @var $searchModel common\models\PageSearch */ | ||
| 8 | -/* @var $dataProvider yii\data\ActiveDataProvider */ | ||
| 9 | - | ||
| 10 | -$this->title = \Yii::t('app', 'Pages'); | ||
| 11 | -$this->params['breadcrumbs'][] = $this->title; | 2 | + |
| 3 | + use common\models\Page; | ||
| 4 | + use yii\helpers\Html; | ||
| 5 | + use yii\grid\GridView; | ||
| 6 | + | ||
| 7 | + /** | ||
| 8 | + * @var yii\web\View $this | ||
| 9 | + * @var common\models\PageSearch $searchModel | ||
| 10 | + * @var yii\data\ActiveDataProvider $dataProvider | ||
| 11 | + */ | ||
| 12 | + | ||
| 13 | + $this->title = \Yii::t('app', 'Pages'); | ||
| 14 | + $this->params[ 'breadcrumbs' ][] = $this->title; | ||
| 12 | ?> | 15 | ?> |
| 13 | <div class="page-index"> | 16 | <div class="page-index"> |
| 14 | - | 17 | + |
| 15 | <h1><?= Html::encode($this->title) ?></h1> | 18 | <h1><?= Html::encode($this->title) ?></h1> |
| 16 | - | 19 | + |
| 17 | <p> | 20 | <p> |
| 18 | - <?= Html::a(\Yii::t('app', 'Create Page'), ['create'], ['class' => 'btn btn-success']) ?> | 21 | + <?= Html::a(\Yii::t('app', 'Create Page'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?> |
| 19 | </p> | 22 | </p> |
| 20 | <?= GridView::widget([ | 23 | <?= GridView::widget([ |
| 21 | 'dataProvider' => $dataProvider, | 24 | 'dataProvider' => $dataProvider, |
| 22 | - 'filterModel' => $searchModel, | ||
| 23 | - 'columns' => [ | ||
| 24 | - ['class' => 'yii\grid\SerialColumn'], | 25 | + 'filterModel' => $searchModel, |
| 26 | + 'columns' => [ | ||
| 25 | 'id', | 27 | 'id', |
| 26 | - ['class' => 'yii\grid\ActionColumn'], | 28 | + [ |
| 29 | + 'attribute' => 'title', | ||
| 30 | + 'value' => 'lang.title', | ||
| 31 | + ], | ||
| 32 | + [ | ||
| 33 | + 'attribute' => 'in_menu', | ||
| 34 | + 'value' => function($model) { | ||
| 35 | + /** | ||
| 36 | + * @var Page $model | ||
| 37 | + */ | ||
| 38 | + return ( !$model->in_menu ) ? \Yii::t('app', 'Не в меню') : \Yii::t('app', 'В меню'); | ||
| 39 | + }, | ||
| 40 | + 'filter' => [ | ||
| 41 | + 0 => \Yii::t('app', 'Не в меню'), | ||
| 42 | + 1 => \Yii::t('app', 'В меню'), | ||
| 43 | + ], | ||
| 44 | + ], | ||
| 45 | + [ 'class' => 'yii\grid\ActionColumn' ], | ||
| 27 | ], | 46 | ], |
| 28 | ]); ?> | 47 | ]); ?> |
| 29 | </div> | 48 | </div> |
| @@ -11,13 +11,13 @@ | @@ -11,13 +11,13 @@ | ||
| 11 | * @var PageLang[] $model_langs | 11 | * @var PageLang[] $model_langs |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | - $this->title = \Yii::t('app', 'Update Page').': ' . $model->id; | 14 | + $this->title = \Yii::t('app', 'Update Page') . ': ' . $model->lang->title; |
| 15 | $this->params[ 'breadcrumbs' ][] = [ | 15 | $this->params[ 'breadcrumbs' ][] = [ |
| 16 | 'label' => \Yii::t('app', 'Pages'), | 16 | 'label' => \Yii::t('app', 'Pages'), |
| 17 | 'url' => [ 'index' ], | 17 | 'url' => [ 'index' ], |
| 18 | ]; | 18 | ]; |
| 19 | $this->params[ 'breadcrumbs' ][] = [ | 19 | $this->params[ 'breadcrumbs' ][] = [ |
| 20 | - 'label' => $model->id, | 20 | + 'label' => $model->lang->title, |
| 21 | 'url' => [ | 21 | 'url' => [ |
| 22 | 'view', | 22 | 'view', |
| 23 | 'id' => $model->id, | 23 | 'id' => $model->id, |
| @@ -3,10 +3,12 @@ | @@ -3,10 +3,12 @@ | ||
| 3 | use yii\helpers\Html; | 3 | use yii\helpers\Html; |
| 4 | use yii\widgets\DetailView; | 4 | use yii\widgets\DetailView; |
| 5 | 5 | ||
| 6 | - /* @var $this yii\web\View */ | ||
| 7 | - /* @var $model common\models\Page */ | 6 | + /** |
| 7 | + * @var yii\web\View $this | ||
| 8 | + * @var common\models\Page $model | ||
| 9 | + */ | ||
| 8 | 10 | ||
| 9 | - $this->title = $model->id; | 11 | + $this->title = $model->lang->title; |
| 10 | $this->params[ 'breadcrumbs' ][] = [ | 12 | $this->params[ 'breadcrumbs' ][] = [ |
| 11 | 'label' => \Yii::t('app', 'Pages'), | 13 | 'label' => \Yii::t('app', 'Pages'), |
| 12 | 'url' => [ 'index' ], | 14 | 'url' => [ 'index' ], |
| @@ -35,9 +37,15 @@ | @@ -35,9 +37,15 @@ | ||
| 35 | </p> | 37 | </p> |
| 36 | 38 | ||
| 37 | <?= DetailView::widget([ | 39 | <?= DetailView::widget([ |
| 38 | - 'model' => $model, | 40 | + 'model' => $model, |
| 39 | 'attributes' => [ | 41 | 'attributes' => [ |
| 40 | 'id', | 42 | 'id', |
| 43 | + 'lang.title', | ||
| 44 | + [ | ||
| 45 | + 'attribute' => 'in_menu', | ||
| 46 | + 'value' => $model->in_menu ? Yii::t('app', 'В меню') : Yii::t('app', 'Не в меню'), | ||
| 47 | + ], | ||
| 48 | + 'lang.body:html', | ||
| 41 | ], | 49 | ], |
| 42 | ]) ?> | 50 | ]) ?> |
| 43 | 51 |
common/components/artboximage/ArtboxImageBehavior.php
100644 → 100755
common/components/artboximage/ArtboxImageHelper.php
100644 → 100755
common/components/artboxtree/ArtboxTreeBehavior.php
100644 → 100755
common/components/artboxtree/ArtboxTreeHelper.php
100644 → 100755
common/components/artboxtree/ArtboxTreeQueryTrait.php
100644 → 100755
common/components/artboxtree/ArtboxTreeWidget.php
100644 → 100755
common/components/artboxtree/treegrid/TreeGridColumn.php
100644 → 100755
common/components/artboxtree/treegrid/TreeGridWidget.php
100644 → 100755
common/components/artboxtree/treelist/TreeListWidget.php
100644 → 100755
common/components/artboxtree/treemenu/TreeMenuWidget.php
100644 → 100755
common/components/urlManager/LangUrlManager.php
100644 → 100755
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | namespace common\models; | 3 | namespace common\models; |
| 4 | - | 4 | + |
| 5 | use common\modules\language\behaviors\LanguageBehavior; | 5 | use common\modules\language\behaviors\LanguageBehavior; |
| 6 | use yii\db\ActiveQuery; | 6 | use yii\db\ActiveQuery; |
| 7 | use yii\db\ActiveRecord; | 7 | use yii\db\ActiveRecord; |
| 8 | use yii\web\Request; | 8 | use yii\web\Request; |
| 9 | + | ||
| 9 | /** | 10 | /** |
| 10 | * This is the model class for table "page". | 11 | * This is the model class for table "page". |
| 11 | - * @property integer $id | ||
| 12 | - * @property bool $in_menu | 12 | + * @property integer $id |
| 13 | + * @property bool $in_menu | ||
| 13 | * * From language behavior * | 14 | * * From language behavior * |
| 14 | - * @property PageLang $lang | ||
| 15 | - * @property PageLang[] $langs | ||
| 16 | - * @property PageLang $object_lang | ||
| 17 | - * @property string $ownerKey | ||
| 18 | - * @property string $langKey | 15 | + * @property PageLang $lang |
| 16 | + * @property PageLang[] $langs | ||
| 17 | + * @property PageLang $object_lang | ||
| 18 | + * @property string $ownerKey | ||
| 19 | + * @property string $langKey | ||
| 19 | * @method string getOwnerKey() | 20 | * @method string getOwnerKey() |
| 20 | - * @method void setOwnerKey(string $value) | 21 | + * @method void setOwnerKey( string $value ) |
| 21 | * @method string getLangKey() | 22 | * @method string getLangKey() |
| 22 | - * @method void setLangKey(string $value) | 23 | + * @method void setLangKey( string $value ) |
| 23 | * @method ActiveQuery getLangs() | 24 | * @method ActiveQuery getLangs() |
| 24 | * @method ActiveQuery getLang( integer $language_id ) | 25 | * @method ActiveQuery getLang( integer $language_id ) |
| 25 | * @method PageLang[] generateLangs() | 26 | * @method PageLang[] generateLangs() |
| 26 | - * @method void loadLangs(Request $request, ActiveRecord[] $model_langs) | ||
| 27 | - * @method bool linkLangs(ActiveRecord[] $model_langs) | ||
| 28 | - * @method bool saveLangs(ActiveRecord[] $model_langs) | 27 | + * @method void loadLangs( Request $request, ActiveRecord[] $model_langs ) |
| 28 | + * @method bool linkLangs( ActiveRecord[] $model_langs ) | ||
| 29 | + * @method bool saveLangs( ActiveRecord[] $model_langs ) | ||
| 29 | * * End language behavior * | 30 | * * End language behavior * |
| 30 | */ | 31 | */ |
| 31 | - class Page extends \yii\db\ActiveRecord | 32 | + class Page extends ActiveRecord |
| 32 | { | 33 | { |
| 33 | 34 | ||
| 35 | + public $title; | ||
| 36 | + | ||
| 34 | /** | 37 | /** |
| 35 | * @inheritdoc | 38 | * @inheritdoc |
| 36 | */ | 39 | */ |
| @@ -58,6 +61,10 @@ | @@ -58,6 +61,10 @@ | ||
| 58 | { | 61 | { |
| 59 | return [ | 62 | return [ |
| 60 | [ | 63 | [ |
| 64 | + [ 'title' ], | ||
| 65 | + 'safe', | ||
| 66 | + ], | ||
| 67 | + [ | ||
| 61 | [ | 68 | [ |
| 62 | 'in_menu', | 69 | 'in_menu', |
| 63 | ], | 70 | ], |
| @@ -72,8 +79,8 @@ | @@ -72,8 +79,8 @@ | ||
| 72 | public function attributeLabels() | 79 | public function attributeLabels() |
| 73 | { | 80 | { |
| 74 | return [ | 81 | return [ |
| 75 | - 'id' => 'ID', | ||
| 76 | - 'in_menu' => 'Show in menu', | 82 | + 'id' => 'ID', |
| 83 | + 'in_menu' => 'Show in menu', | ||
| 77 | ]; | 84 | ]; |
| 78 | } | 85 | } |
| 79 | } | 86 | } |
| 1 | <?php | 1 | <?php |
| 2 | - | ||
| 3 | -namespace common\models; | ||
| 4 | - | ||
| 5 | -use yii\base\Model; | ||
| 6 | -use yii\data\ActiveDataProvider; | ||
| 7 | - | ||
| 8 | -/** | ||
| 9 | - * PageSearch represents the model behind the search form about `common\models\Page`. | ||
| 10 | - */ | ||
| 11 | -class PageSearch extends Page | ||
| 12 | -{ | ||
| 13 | - /** | ||
| 14 | - * @inheritdoc | ||
| 15 | - */ | ||
| 16 | - public function rules() | ||
| 17 | - { | ||
| 18 | - return [ | ||
| 19 | - [['id'], 'integer'], | ||
| 20 | - ]; | ||
| 21 | - } | ||
| 22 | - | ||
| 23 | - /** | ||
| 24 | - * @inheritdoc | ||
| 25 | - */ | ||
| 26 | - public function scenarios() | ||
| 27 | - { | ||
| 28 | - // bypass scenarios() implementation in the parent class | ||
| 29 | - return Model::scenarios(); | ||
| 30 | - } | ||
| 31 | 2 | ||
| 32 | - public function behaviors() | ||
| 33 | - { | ||
| 34 | - return []; | ||
| 35 | - } | 3 | + namespace common\models; |
| 4 | + | ||
| 5 | + use yii\base\Model; | ||
| 6 | + use yii\data\ActiveDataProvider; | ||
| 36 | 7 | ||
| 37 | /** | 8 | /** |
| 38 | - * Creates data provider instance with search query applied | ||
| 39 | - * | ||
| 40 | - * @param array $params | ||
| 41 | - * | ||
| 42 | - * @return ActiveDataProvider | 9 | + * PageSearch represents the model behind the search form about `common\models\Page`. |
| 43 | */ | 10 | */ |
| 44 | - public function search($params) | 11 | + class PageSearch extends Page |
| 45 | { | 12 | { |
| 46 | - $query = Page::find(); | ||
| 47 | - | ||
| 48 | - // add conditions that should always apply here | ||
| 49 | - | ||
| 50 | - $dataProvider = new ActiveDataProvider([ | ||
| 51 | - 'query' => $query, | ||
| 52 | - ]); | ||
| 53 | - | ||
| 54 | - $this->load($params); | ||
| 55 | - | ||
| 56 | - if (!$this->validate()) { | ||
| 57 | - // uncomment the following line if you do not want to return any records when validation fails | ||
| 58 | - // $query->where('0=1'); | 13 | + |
| 14 | + public $title; | ||
| 15 | + | ||
| 16 | + /** | ||
| 17 | + * @inheritdoc | ||
| 18 | + */ | ||
| 19 | + public function rules() | ||
| 20 | + { | ||
| 21 | + return [ | ||
| 22 | + [ | ||
| 23 | + [ 'id' ], | ||
| 24 | + 'integer', | ||
| 25 | + ], | ||
| 26 | + [ | ||
| 27 | + [ 'title' ], | ||
| 28 | + 'safe', | ||
| 29 | + ], | ||
| 30 | + [ | ||
| 31 | + [ 'in_menu' ], | ||
| 32 | + 'boolean', | ||
| 33 | + ], | ||
| 34 | + ]; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + /** | ||
| 38 | + * @inheritdoc | ||
| 39 | + */ | ||
| 40 | + public function scenarios() | ||
| 41 | + { | ||
| 42 | + // bypass scenarios() implementation in the parent class | ||
| 43 | + return Model::scenarios(); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + public function behaviors() | ||
| 47 | + { | ||
| 48 | + return []; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + /** | ||
| 52 | + * Creates data provider instance with search query applied | ||
| 53 | + * | ||
| 54 | + * @param array $params | ||
| 55 | + * | ||
| 56 | + * @return ActiveDataProvider | ||
| 57 | + */ | ||
| 58 | + public function search($params) | ||
| 59 | + { | ||
| 60 | + $query = Page::find() | ||
| 61 | + ->joinWith('lang'); | ||
| 62 | + | ||
| 63 | + // add conditions that should always apply here | ||
| 64 | + | ||
| 65 | + $dataProvider = new ActiveDataProvider([ | ||
| 66 | + 'query' => $query, | ||
| 67 | + 'sort' => [ | ||
| 68 | + 'attributes' => [ | ||
| 69 | + 'title' => [ | ||
| 70 | + 'asc' => [ 'page_lang.title' => SORT_ASC ], | ||
| 71 | + 'desc' => [ 'page_lang.title' => SORT_DESC ], | ||
| 72 | + ], | ||
| 73 | + 'id', | ||
| 74 | + 'in_menu', | ||
| 75 | + ], | ||
| 76 | + ], | ||
| 77 | + ]); | ||
| 78 | + | ||
| 79 | + $this->load($params); | ||
| 80 | + | ||
| 81 | + if(!$this->validate()) { | ||
| 82 | + // uncomment the following line if you do not want to return any records when validation fails | ||
| 83 | + // $query->where('0=1'); | ||
| 84 | + return $dataProvider; | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + // grid filtering conditions | ||
| 88 | + $query->andFilterWhere([ | ||
| 89 | + 'id' => $this->id, | ||
| 90 | + 'in_menu' => $this->in_menu, | ||
| 91 | + ]) | ||
| 92 | + ->andFilterWhere([ | ||
| 93 | + 'like', | ||
| 94 | + 'page_lang.title', | ||
| 95 | + $this->title, | ||
| 96 | + ]); | ||
| 97 | + | ||
| 59 | return $dataProvider; | 98 | return $dataProvider; |
| 60 | } | 99 | } |
| 61 | - | ||
| 62 | - // grid filtering conditions | ||
| 63 | - $query->andFilterWhere([ | ||
| 64 | - 'id' => $this->id, | ||
| 65 | - ]); | ||
| 66 | - | ||
| 67 | - return $dataProvider; | ||
| 68 | } | 100 | } |
| 69 | -} |
common/modules/artboxfile/controllers/ActionController.php
100644 → 100755
common/modules/comment/assets/CommentAsset.php
100644 → 100755
common/modules/comment/behaviors/ParentBehavior.php
100644 → 100755
common/modules/comment/controllers/DefaultController.php
100644 → 100755
common/modules/comment/controllers/ManageController.php
100644 → 100755
common/modules/comment/messages/en/artbox-comment.php
100644 → 100755
common/modules/comment/messages/ru/artbox-comment.php
100644 → 100755
common/modules/comment/migrations/m160724_162347_artbox_comment.php
100644 → 100755
common/modules/comment/migrations/m160726_092634_add_entity_fields.php
100644 → 100755
common/modules/comment/migrations/m160726_211227_create_artbox_comment_rating.php
100644 → 100755
common/modules/comment/models/CommentModel.php
100644 → 100755
common/modules/comment/models/CommentModelSearch.php
100644 → 100755
common/modules/comment/models/interfaces/CommentInterface.php
100644 → 100755
common/modules/comment/resources/artbox_comment.css
100644 → 100755
common/modules/comment/resources/artbox_comment.js
100644 → 100755
common/modules/comment/resources/jquery.rateit.min.js
100644 → 100755
common/modules/comment/views/artbox_comment_form.php
100644 → 100755
common/modules/comment/views/artbox_comment_item.php
100644 → 100755
common/modules/comment/views/artbox_comment_list.php
100644 → 100755
common/modules/comment/views/artbox_comment_reply.php
100644 → 100755
common/modules/comment/views/manage/update.php
100644 → 100755
common/modules/comment/widgets/CommentWidget.php
100644 → 100755
common/modules/file/assets/css/fileupload/style.css
100644 → 100755
common/modules/file/assets/css/jquery.fileupload-noscript.css
100644 → 100755
common/modules/file/assets/css/jquery.fileupload-ui-noscript.css
100644 → 100755
common/modules/file/assets/css/jquery.fileupload-ui.css
100644 → 100755
common/modules/file/assets/css/jquery.fileupload.css
100644 → 100755
common/modules/file/assets/js/cors/jquery.postmessage-transport.js
100644 → 100755
common/modules/file/assets/js/cors/jquery.xdr-transport.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-angular.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-audio.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-image.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-jquery-ui.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-process.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-ui.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-validate.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload-video.js
100644 → 100755
common/modules/file/assets/js/jquery.fileupload.js
100644 → 100755
common/modules/file/assets/js/jquery.iframe-transport.js
100644 → 100755
common/modules/file/assets/js/vendor/jquery.ui.widget.js
100644 → 100755
common/modules/file/controllers/UploaderController.php
100644 → 100755
common/modules/file/widgets/views/image_sizer.php
100644 → 100755
common/modules/language/behaviors/LanguageBehavior.php
100644 → 100755
common/modules/language/behaviors/TransactionBehavior.php
100644 → 100755
common/modules/language/components/LanguageRequest.php
100644 → 100755
common/modules/language/components/LanguageUrlManager.php
100644 → 100755
common/modules/language/migrations/m160829_104745_create_table_language.php
100644 → 100755
common/modules/language/migrations/m160829_105345_add_default_languages.php
100644 → 100755
common/modules/language/migrations/m160901_140639_add_ukrainian_language.php
100644 → 100755
common/modules/language/migrations/m160927_124151_add_status_column.php
100644 → 100755
common/modules/language/widgets/LanguageForm.php
100644 → 100755
common/modules/language/widgets/LanguagePicker.php
100644 → 100755
common/modules/language/widgets/views/language_form_frame.php
100644 → 100755
common/modules/language/widgets/views/view.php
100644 → 100755
common/modules/product/behaviors/FilterBehavior.php
100644 → 100755
common/modules/product/controllers/DefaultController.php
100644 → 100755
common/modules/product/controllers/ManageController.php
100644 → 100755
common/modules/product/controllers/ProductUnitController.php
100644 → 100755
common/modules/product/controllers/VariantController.php
100644 → 100755
common/modules/product/helpers/FilterHelper.php
100644 → 100755
common/modules/product/helpers/ProductHelper.php
100644 → 100755
common/modules/product/models/CategoryLang.php
100644 → 100755
common/modules/product/models/CategoryQuery.php
100644 → 100755
common/modules/product/models/CategorySearch.php
100644 → 100755
common/modules/product/models/ProductCategory.php
100644 → 100755
common/modules/product/models/ProductImage.php
100644 → 100755
common/modules/product/models/ProductOption.php
100644 → 100755
common/modules/product/models/ProductSearch.php
100644 → 100755
common/modules/product/models/ProductStock.php
100644 → 100755
common/modules/product/models/ProductUnitLang.php
100644 → 100755
common/modules/product/models/ProductUnitSearch.php
100644 → 100755
common/modules/product/models/ProductVariant.php
100644 → 100755
common/modules/product/models/ProductVariantLang.php
100644 → 100755
common/modules/product/models/ProductVariantListSearch.php
100644 → 100755
common/modules/product/models/ProductVariantOption.php
100644 → 100755
common/modules/product/models/ProductVariantSearch.php
100644 → 100755
common/modules/product/views/default/index.php
100644 → 100755
common/modules/product/views/manage/_form_language.php
100644 → 100755
common/modules/product/views/manage/_form_spec_language.php
100644 → 100755
common/modules/product/views/manage/_search.php
100644 → 100755
common/modules/product/views/manage/create.php
100644 → 100755
common/modules/product/views/manage/import-process.php
100644 → 100755
common/modules/product/views/manage/import.php
100644 → 100755
common/modules/product/views/manage/update.php
100644 → 100755
common/modules/product/views/product-unit/_form.php
100644 → 100755
common/modules/product/views/product-unit/_form_language.php
100644 → 100755
common/modules/product/views/product-unit/_search.php
100644 → 100755
common/modules/product/views/product-unit/create.php
100644 → 100755
common/modules/product/views/product-unit/index.php
100644 → 100755
common/modules/product/views/product-unit/update.php
100644 → 100755
common/modules/product/views/product-unit/view.php
100644 → 100755
common/modules/product/views/variant/_form.php
100644 → 100755
common/modules/product/views/variant/_form_language.php
100644 → 100755
common/modules/product/views/variant/_search.php
100644 → 100755
common/modules/product/views/variant/create.php
100644 → 100755
common/modules/product/views/variant/index.php
100644 → 100755
common/modules/product/views/variant/update.php
100644 → 100755
common/modules/product/widgets/brandsCarouselWidget.php
100644 → 100755
common/modules/product/widgets/lastProducts.php
100644 → 100755
common/modules/product/widgets/similarProducts.php
100644 → 100755
common/modules/product/widgets/specialProducts.php
100644 → 100755
common/modules/product/widgets/views/brandsCarousel.php
100644 → 100755
common/modules/product/widgets/views/product_smart.php
100644 → 100755
common/modules/product/widgets/views/products_block.php
100644 → 100755
common/modules/product/widgets/views/submenu.php
100644 → 100755
common/modules/rubrication/controllers/DefaultController.php
100644 → 100755
common/modules/rubrication/controllers/TaxGroupController.php
100644 → 100755
common/modules/rubrication/controllers/TaxOptionController.php
100644 → 100755
common/modules/rubrication/helpers/RubricationHelper.php
100644 → 100755
common/modules/rubrication/models/TaxGroup.php
100644 → 100755
common/modules/rubrication/models/TaxGroupLang.php
100644 → 100755
common/modules/rubrication/models/TaxGroupToCategory.php
100644 → 100755
common/modules/rubrication/models/TaxOption.php
100644 → 100755
common/modules/rubrication/models/TaxOptionLang.php
100644 → 100755
common/modules/rubrication/models/TaxOptionQuery.php
100644 → 100755
common/modules/rubrication/models/TaxOptionSearch.php
100644 → 100755
common/modules/rubrication/views/default/index.php
100644 → 100755
common/modules/rubrication/views/tax-group/_form.php
100644 → 100755
common/modules/rubrication/views/tax-group/_form_language.php
100644 → 100755
common/modules/rubrication/views/tax-group/create.php
100644 → 100755
common/modules/rubrication/views/tax-group/index.php
100644 → 100755
common/modules/rubrication/views/tax-group/update.php
100644 → 100755
common/modules/rubrication/views/tax-group/view.php
100644 → 100755
common/modules/rubrication/views/tax-option/_form.php
100644 → 100755
common/modules/rubrication/views/tax-option/_form_language.php
100644 → 100755
common/modules/rubrication/views/tax-option/_search.php
100644 → 100755
common/modules/rubrication/views/tax-option/create.php
100644 → 100755
common/modules/rubrication/views/tax-option/index.php
100644 → 100755
common/modules/rubrication/views/tax-option/update.php
100644 → 100755
common/modules/rubrication/views/tax-option/view.php
100644 → 100755
console/migrations/m160926_122456_create_articles_lang_table.php
100644 → 100755
console/migrations/m160928_100918_create_page_lang_table.php
100644 → 100755
console/migrations/m160928_104529_create_banner_lang_table.php
100644 → 100755
console/migrations/m160928_112124_create_bg_lang_table.php
100644 → 100755
console/migrations/m160928_122509_create_brand_lang_table.php
100644 → 100755
console/migrations/m160928_133403_create_category_lang_table.php
100644 → 100755
console/migrations/m160928_161047_create_event_lang_table.php
100644 → 100755
console/migrations/m160929_135920_create_orders_delivery_lang_table.php
100644 → 100755
console/migrations/m160929_142458_create_orders_label_lang_table.php
100644 → 100755
console/migrations/m160929_144357_create_product_lang_table.php
100644 → 100755
console/migrations/m160929_155222_create_product_spec_lang_table.php
100644 → 100755
console/migrations/m160929_173535_create_product_unit_lang_table.php
100644 → 100755
console/migrations/m160929_175821_create_product_variant_lang_table.php
100644 → 100755
console/migrations/m160930_082350_create_project_lang_table.php
100644 → 100755
console/migrations/m160930_100954_create_seo_lang_table.php
100644 → 100755
console/migrations/m160930_133757_create_service_lang_table.php
100644 → 100755
console/migrations/m160930_142752_create_slider_image_lang_table.php
100644 → 100755
console/migrations/m160930_145734_create_tax_group_lang_table.php
100644 → 100755
console/migrations/m160930_151832_create_tax_option_lang_table.php
100644 → 100755
console/migrations/m161004_102751_add_lang_column.php
100644 → 100755
No preview for this file type
No preview for this file type
No preview for this file type
frontend/web/js/jquery.mCustomScrollbar.concat.min.js
100644 → 100755