Blame view

common/config/main.php 9.06 KB
4ca21c3e   Alexey Boroda   first commit
1
2
3
4
5
  <?php
      return [
          'language'      => 'ru',
          'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
          'components' => [
4ca21c3e   Alexey Boroda   first commit
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
              'sms' => [
                  'class' => 'common\components\SmsSender',
              ],
              
              'cache' => [
                  'class' => 'yii\caching\FileCache',
              ],
              
              'i18n' => [
                  'translations' => [
                      '*' => [
                          'class' => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@common/translation',
                          'fileMap' => [
                              'app' => 'app.php',
                              'app/error' => 'error.php',
                          ],
                      ],
                      'app' => [
                          'class' => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@common/translation',
                          'fileMap' => [
                              'app' => 'app.php',
                              'app/error' => 'error.php',
                          ],
                      ],
                      'artbox-comment' => [
                          'class' => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@common/modules/comment/messages',
                      ],
                  ],
              ],
              'artboximage' => [
                  'class' => 'common\components\artboximage\ArtboxImage',
                  'driver' => 'GD',
                  'rootPath' => Yii::getAlias('@storage'),
                  'rootUrl' => Yii::getAlias('/storage'),
                  'presets' => [
                      'product' => [
                          'resize' => [
                              'width' => 300,
                              'height' => 300,
                              'master' => null
                          ],
                      ],
                      'product_variant' => [
                          'resize' => [
                              'width' => 38,
                              'height' => 38,
                              'master' => null
                          ],
                      ],
                      'product_trumb2' => [
                          'resize' => [
                              'width' => 88,
                              'height' => 88,
                              'master' => null
                          ],
                      ],
                      'product_basket' => [
                          'resize' => [
                              'width' => 100,
                              'height' => 200,
                              'master' => null
                          ],
                      ],
                      'product_view' => [
                          'resize' => [
                              'width' => 392,
                              'height' => 365,
                              'master' => null
                          ],
                      ],
                      'iam' => [
                          'resize' => [
                              'width' => 120,
                              'height' => 240,
                              'master' => null
                          ],
                      ],
                      'slider' => [
                          'resize' => [
                              'width' => 720,
                              'height' => 340,
                              'master' => null
                          ],
                      ],
                      'brandlist' => [
                          'resize' => [
                              'width' => 128,
                              'height' => 128,
                              'master' => null
                          ],
                      ],
                      'eventlist' => [
                          'resize' => [
                              'width' => 180,
                              'height' => 125,
                              'master' => null
                          ],
                      ],
                      'brand_item' => [
                          'resize' => [
                              'width' => 150,
                              'height' => 150,
                              'master' => null
                          ],
                          'crop' => [
                              'width' => 150,
                              'height' => 150,
                              'master' => null
                          ],
                      ],
                      'mainmenu' => [
                          'resize' => [
                              'width' => 160,
                              'height' => 170,
                              'master' => null
                          ],
                      ],
                      'list' => [
                          'resize' => [
                              'width' => 134,
                              'height' => 200,
                              'master' => null
                          ],
                      ],
                      'large' => [
                          'resize' => [
                              'width' => 600,
                              'height' => 600,
                              'master' => null
                          ],
                      ],
                      'admin_thumb' => [
                          'resize' => [
                              'width' => 256,
                          ],
                      ],
                      'option_menu' => [
                          'resize' => [
                              'width' => 100,
                              'height' => 110,
                          ],
                      ],
                      'article_list' => [
                          'resize' => [
                              'width' => 555,
                              'height' => 299,
                          ],
                      ],
                      'project_list' => [
                          'resize' => [
                              'width' => 165,
                              'height' => 100,
                          ],
                      ],
                      'category_thumb' => [
                          'resize' => [
                              'width' => 227,
                              'height' => 180,
                          ],
                      ],
                      'brand_thumb' => [
                          'resize' => [
                              'width' => 455,
                              'height' => 268,
013e4074   Alexey Boroda   -Image fix
173
                              'master' => yii\image\drivers\Kohana_Image::CROP,
4ca21c3e   Alexey Boroda   first commit
174
175
176
177
178
179
180
181
182
183
                          ],
                      ],
                      'coll' => [
                          'resize' => [
                              'width' => 120,
                              'height' => 50,
                          ],
                      ],
                      'collections_home' => [
                          'resize' => [
412ae249   Alexey Boroda   -Playing images
184
                              'width' => 270,
4ca21c3e   Alexey Boroda   first commit
185
                              'height' => 175,
412ae249   Alexey Boroda   -Playing images
186
                              'master' => yii\image\drivers\Kohana_Image::CROP,
4ca21c3e   Alexey Boroda   first commit
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
                          ],
                      ],
                      'article_thumb' => [
                          'resize' => [
                              'width' => 450,
                              'height' => 300,
                          ],
                      ],
                      'blog_thumb' => [
                          'resize' => [
                              'width' => 595,
                              'height' => 266,
                          ],
                      ],
                      'product_main' => [
                          'resize' => [
                              'width' => 630,
                              'height' => 389,
                          ],
                      ],
                      'product_variant_main' => [
                          'resize' => [
                              'width' => 139,
                              'height' => 124,
                          ],
                      ],
                      'collections_thumb' => [
                          'resize' => [
                              'width' => 304,
                          ],
                      ],
                      'main_blog_one' => [
                          'resize' => [
                              'width' => 305,
427196c7   Alexey Boroda   -Image resize fix 2
221
                              'height' => 206,
e2d7556d   Alexey Boroda   -Image resize fix
222
                              'master' => yii\image\drivers\Kohana_Image::NONE,
4ca21c3e   Alexey Boroda   first commit
223
224
225
226
227
                          ],
                      ],
                      'main_event_one' => [
                          'resize' => [
                              'width' => 308,
e3b0a3cb   Alexey Boroda   -Export/Import
228
229
                              'height' => 206,
                              'master' => yii\image\drivers\Kohana_Image::NONE,
4ca21c3e   Alexey Boroda   first commit
230
231
                          ],
                      ],
2d7ef064   Alexey Boroda   added menu and pr...
232
233
234
235
236
237
                      'product_list_item' => [
                          'resize' => [
                              'width' => 308,
                              'height' => 221,
                          ],
                      ],
4ca21c3e   Alexey Boroda   first commit
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
                  ]
              ],
              'basket' => [
                  'class' => 'common\models\Basket',
              ],
          ],
          'modules' => [
              'file' => [
                  'class' => 'common\modules\file\Module',
              ],
              'artbox-comment' => [
                  'class' => 'common\modules\comment\Module',
              ],
          ],
      ];