Commit 88fd5f8922ee800f60a76d9de41b15f76d210cd6

Authored by Volodymyr
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 114 <?php foreach ($forPrivate as $object){ ?>
115 115 <div class="col-xs-12 col-sm-6 index-solution__col">
116 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 123 <!--540x240-->
119 124 <?= $object->image->getImg([]) ?>
120 125 </a>
121 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 133 <table>
124 134 <tr>
125 135 <td>5,0 кВт</td>
... ... @@ -228,12 +238,22 @@
228 238 <?php foreach ($forCompanies as $object){ ?>
229 239 <div class="col-xs-12 col-sm-6 index-solution__col">
230 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 247 <!--540x240-->
233 248 <?= $object->image->getImg([]) ?>
234 249 </a>
235 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 257 <table>
238 258 <tr>
239 259 <td>5,0 кВт</td>
... ...