Commit 9cf612c45d16070cfc196ffad73cbd32c79860b0
1 parent
5fb518d5
objects on main ready
Showing
3 changed files
with
50 additions
and
78 deletions
Show diff stats
common/messages/ru/app.php
@@ -388,6 +388,9 @@ return [ | @@ -388,6 +388,9 @@ return [ | ||
388 | 'calc-text-3'=> 'Окупаемость', | 388 | 'calc-text-3'=> 'Окупаемость', |
389 | 'calc-text-4'=> 'лет', | 389 | 'calc-text-4'=> 'лет', |
390 | 'section-question__title'=> 'ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ', | 390 | 'section-question__title'=> 'ЧАСТО ЗАДАВАЕМЫЕ ВОПРОСЫ', |
391 | + 'Номінальна потужність мережевого інвертора'=>'Номінальна потужність мережевого інвертора', | ||
392 | + 'Встановлена потужність фотоелектричних модулів'=>'Встановлена потужність фотоелектричних модулів', | ||
393 | + 'Вартість системи "під ключ"'=>'Вартість системи "під ключ"', | ||
391 | 394 | ||
392 | 395 | ||
393 | 396 |
1 | +<div class="row row-flex"> | ||
2 | + <?php foreach ($objects as $object){ ?> | ||
3 | + <div class="col-xs-12 col-sm-6 index-solution__col"> | ||
4 | + <div class="index-solution__item"> | ||
5 | + <a href="<?= \yii\helpers\Url::toRoute( | ||
6 | + [ | ||
7 | + 'object/view', | ||
8 | + 'alias' => $object->lang->alias, | ||
9 | + ] | ||
10 | + ) ?>" class="index-solution__item_img"> | ||
11 | + <!--540x240--> | ||
12 | + <?= $object->image->getImg([]) ?> | ||
13 | + </a> | ||
14 | + <div class="index-solution__item_text"> | ||
15 | + <a href="<?= \yii\helpers\Url::toRoute( | ||
16 | + [ | ||
17 | + 'object/view', | ||
18 | + 'alias' => $object->lang->alias, | ||
19 | + ] | ||
20 | + ) ?>"><?=$object->lang->object_name ?></a> | ||
21 | + <table> | ||
22 | + <?php if(!empty($object->invertor_power)){ ?> | ||
23 | + <tr> | ||
24 | + <td><?=$object->invertor_power ?> кВт</td> | ||
25 | + <td><?= \Yii::t('app', 'Номінальна потужність мережевого інвертора') ?></td> | ||
26 | + </tr> | ||
27 | + <?php } ?> | ||
28 | + <?php if(!empty($object->module_power)){ ?> | ||
29 | + <tr> | ||
30 | + <td><?=$object->module_power ?> кВт</td> | ||
31 | + <td><?= \Yii::t('app', 'Встановлена потужність фотоелектричних модулів') ?></td> | ||
32 | + </tr> | ||
33 | + <?php } ?> | ||
34 | + <?php if(!empty($object->price)){ ?> | ||
35 | + <tr> | ||
36 | + <td><?=$object->price ?> $</td> | ||
37 | + <td><?= \Yii::t('app', 'Вартість системи "під ключ"') ?></td> | ||
38 | + </tr> | ||
39 | + <?php } ?> | ||
40 | + </table> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + </div> | ||
44 | + <?php } ?> | ||
45 | +</div> | ||
0 | \ No newline at end of file | 46 | \ No newline at end of file |
frontend/views/site/index.php
@@ -90,45 +90,7 @@ | @@ -90,45 +90,7 @@ | ||
90 | <div class="index-solution__title index-titles"><?= \Yii::t('app', 'index-solution__title') ?></div> | 90 | <div class="index-solution__title index-titles"><?= \Yii::t('app', 'index-solution__title') ?></div> |
91 | </div> | 91 | </div> |
92 | </div> | 92 | </div> |
93 | - <div class="row row-flex"> | ||
94 | - <?php foreach ($forPrivate as $object){ ?> | ||
95 | - <div class="col-xs-12 col-sm-6 index-solution__col"> | ||
96 | - <div class="index-solution__item"> | ||
97 | - <a href="<?= \yii\helpers\Url::toRoute( | ||
98 | - [ | ||
99 | - 'object/view', | ||
100 | - 'alias' => $object->lang->alias, | ||
101 | - ] | ||
102 | - ) ?>" class="index-solution__item_img"> | ||
103 | - <!--540x240--> | ||
104 | - <?= $object->image->getImg([]) ?> | ||
105 | - </a> | ||
106 | - <div class="index-solution__item_text"> | ||
107 | - <a href="<?= \yii\helpers\Url::toRoute( | ||
108 | - [ | ||
109 | - 'object/view', | ||
110 | - 'alias' => $object->lang->alias, | ||
111 | - ] | ||
112 | - ) ?>"><?=$object->lang->object_name ?></a> | ||
113 | - <table> | ||
114 | - <tr> | ||
115 | - <td>5,0 кВт</td> | ||
116 | - <td>Номінальна потужність мережевого інвертора</td> | ||
117 | - </tr> | ||
118 | - <tr> | ||
119 | - <td>7,4 кВт</td> | ||
120 | - <td>Встановлена потужність фотоелектричних модулів</td> | ||
121 | - </tr> | ||
122 | - <tr> | ||
123 | - <td>8 094 $</td> | ||
124 | - <td>Вартість системи "під ключ"</td> | ||
125 | - </tr> | ||
126 | - </table> | ||
127 | - </div> | ||
128 | - </div> | ||
129 | - </div> | ||
130 | - <?php } ?> | ||
131 | - </div> | 93 | + <?=$this->render('_objects',['objects'=>$forPrivate]) ?> |
132 | <div class="row row-flex justify-content-center"> | 94 | <div class="row row-flex justify-content-center"> |
133 | <div class="index-solution__more"> | 95 | <div class="index-solution__more"> |
134 | <a href="#" class="animation-hover"><?= \Yii::t('app', 'index-solution__more') ?></a> | 96 | <a href="#" class="animation-hover"><?= \Yii::t('app', 'index-solution__more') ?></a> |
@@ -214,45 +176,7 @@ | @@ -214,45 +176,7 @@ | ||
214 | <div class="index-solution__title index-titles"><?= \Yii::t('app', 'index-solution__title_company') ?></div> | 176 | <div class="index-solution__title index-titles"><?= \Yii::t('app', 'index-solution__title_company') ?></div> |
215 | </div> | 177 | </div> |
216 | </div> | 178 | </div> |
217 | - <div class="row row-flex"> | ||
218 | - <?php foreach ($forCompanies as $object){ ?> | ||
219 | - <div class="col-xs-12 col-sm-6 index-solution__col"> | ||
220 | - <div class="index-solution__item"> | ||
221 | - <a href="<?= \yii\helpers\Url::toRoute( | ||
222 | - [ | ||
223 | - 'object/view', | ||
224 | - 'alias' => $object->lang->alias, | ||
225 | - ] | ||
226 | - ) ?>" class="index-solution__item_img"> | ||
227 | - <!--540x240--> | ||
228 | - <?= $object->image->getImg([]) ?> | ||
229 | - </a> | ||
230 | - <div class="index-solution__item_text"> | ||
231 | - <a href="<?= \yii\helpers\Url::toRoute( | ||
232 | - [ | ||
233 | - 'object/view', | ||
234 | - 'alias' => $object->lang->alias, | ||
235 | - ] | ||
236 | - ) ?>"><?=$object->lang->object_name ?></a> | ||
237 | - <table> | ||
238 | - <tr> | ||
239 | - <td>5,0 кВт</td> | ||
240 | - <td>Номінальна потужність мережевого інвертора</td> | ||
241 | - </tr> | ||
242 | - <tr> | ||
243 | - <td>7,4 кВт</td> | ||
244 | - <td>Встановлена потужність фотоелектричних модулів</td> | ||
245 | - </tr> | ||
246 | - <tr> | ||
247 | - <td>8 094 $</td> | ||
248 | - <td>Вартість системи "під ключ"</td> | ||
249 | - </tr> | ||
250 | - </table> | ||
251 | - </div> | ||
252 | - </div> | ||
253 | - </div> | ||
254 | - <?php } ?> | ||
255 | - </div> | 179 | + <?=$this->render('_objects',['objects'=>$forCompanies]) ?> |
256 | <div class="row row-flex justify-content-center"> | 180 | <div class="row row-flex justify-content-center"> |
257 | <div class="index-solution__more"> | 181 | <div class="index-solution__more"> |
258 | <a href="#" class="animation-hover"><?= \Yii::t('app', 'index-solution__more') ?></a> | 182 | <a href="#" class="animation-hover"><?= \Yii::t('app', 'index-solution__more') ?></a> |