Commit 88fd5f8922ee800f60a76d9de41b15f76d210cd6
1 parent
99514985
add object links to mainpage
Showing
1 changed file
with
24 additions
and
4 deletions
 
Show diff stats
frontend/views/site/index.php
| @@ -114,12 +114,22 @@ | @@ -114,12 +114,22 @@ | ||
| 114 | <?php foreach ($forPrivate as $object){ ?> | 114 | <?php foreach ($forPrivate as $object){ ?> | 
| 115 | <div class="col-xs-12 col-sm-6 index-solution__col"> | 115 | <div class="col-xs-12 col-sm-6 index-solution__col"> | 
| 116 | <div class="index-solution__item"> | 116 | <div class="index-solution__item"> | 
| 117 | - <a href="#" class="index-solution__item_img"> | 117 | + <a href="<?= \yii\helpers\Url::toRoute( | 
| 118 | + [ | ||
| 119 | + 'object/view', | ||
| 120 | + 'alias' => $object->lang->alias, | ||
| 121 | + ] | ||
| 122 | + ) ?>" class="index-solution__item_img"> | ||
| 118 | <!--540x240--> | 123 | <!--540x240--> | 
| 119 | <?= $object->image->getImg([]) ?> | 124 | <?= $object->image->getImg([]) ?> | 
| 120 | </a> | 125 | </a> | 
| 121 | <div class="index-solution__item_text"> | 126 | <div class="index-solution__item_text"> | 
| 122 | - <a href="#"><?=$object->lang->object_name ?></a> | 127 | + <a href="<?= \yii\helpers\Url::toRoute( | 
| 128 | + [ | ||
| 129 | + 'object/view', | ||
| 130 | + 'alias' => $object->lang->alias, | ||
| 131 | + ] | ||
| 132 | + ) ?>"><?=$object->lang->object_name ?></a> | ||
| 123 | <table> | 133 | <table> | 
| 124 | <tr> | 134 | <tr> | 
| 125 | <td>5,0 кВт</td> | 135 | <td>5,0 кВт</td> | 
| @@ -228,12 +238,22 @@ | @@ -228,12 +238,22 @@ | ||
| 228 | <?php foreach ($forCompanies as $object){ ?> | 238 | <?php foreach ($forCompanies as $object){ ?> | 
| 229 | <div class="col-xs-12 col-sm-6 index-solution__col"> | 239 | <div class="col-xs-12 col-sm-6 index-solution__col"> | 
| 230 | <div class="index-solution__item"> | 240 | <div class="index-solution__item"> | 
| 231 | - <a href="#" class="index-solution__item_img"> | 241 | + <a href="<?= \yii\helpers\Url::toRoute( | 
| 242 | + [ | ||
| 243 | + 'object/view', | ||
| 244 | + 'alias' => $object->lang->alias, | ||
| 245 | + ] | ||
| 246 | + ) ?>" class="index-solution__item_img"> | ||
| 232 | <!--540x240--> | 247 | <!--540x240--> | 
| 233 | <?= $object->image->getImg([]) ?> | 248 | <?= $object->image->getImg([]) ?> | 
| 234 | </a> | 249 | </a> | 
| 235 | <div class="index-solution__item_text"> | 250 | <div class="index-solution__item_text"> | 
| 236 | - <a href="#"><?=$object->lang->object_name ?></a> | 251 | + <a href="<?= \yii\helpers\Url::toRoute( | 
| 252 | + [ | ||
| 253 | + 'object/view', | ||
| 254 | + 'alias' => $object->lang->alias, | ||
| 255 | + ] | ||
| 256 | + ) ?>"><?=$object->lang->object_name ?></a> | ||
| 237 | <table> | 257 | <table> | 
| 238 | <tr> | 258 | <tr> | 
| 239 | <td>5,0 кВт</td> | 259 | <td>5,0 кВт</td> | 
