Commit da44d1f0a7bfd9d68fcbf79d05a51edb23a3fee4

Authored by Timur Kastemirov
1 parent a3c00620

alt attribute на картинках в меню

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
frontend/views/layouts/main-menu.php
... ... @@ -41,7 +41,15 @@ $models = Category::find()->orderBy(['sort' => SORT_ASC])->all();
41 41 <table cellpadding="0" cellspacing="0" border="0">
42 42 <tr>
43 43 <td>
44   - <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias(!empty($group['image']) ? '@imagesUrl/tax_option/'. $group['image'] : '/storage/no_photo.png'), 'option_menu'))?>
  44 + <?= Html::img(
  45 + ArtboxImageHelper::getImageSrc(
  46 + Yii::getAlias(
  47 + !empty($group[ 'image' ]) ? '@imagesUrl/tax_option/' . $group[ 'image' ] : '/storage/no_photo.png'
  48 + ),
  49 + 'option_menu'
  50 + ),
  51 + [ 'alt' => $group[ 'value' ] ]
  52 + ) ?>
45 53 </td>
46 54 </tr>
47 55 </table>
... ...