templates/_parts/sber-action-link.html.twig line 1

Open in your IDE?
  1. {% set class = class|default('') %}
  2. {% set actionLinkSettings = actionLinkSettings|default(action_link_settings()) %}
  3. {% set actionName = actionName|default(actionLinkSettings.name) %}
  4. {% if actionLinkSettings.active %}
  5.     <div class="{{ class }} sber-action-link"
  6.     >
  7.         <div class="sber-action-link__icon-wrap">
  8.             {% if actionLinkSettings is has_image('imageIconName') %}
  9.                 {% set logoFilePath = vich_uploader_asset(actionLinkSettings, 'imageIconFile') %}
  10.                 <img src="{{ logoFilePath }}"
  11.                      alt="{{ actionName }}"
  12.                      class="sber-action-link__icon-image"
  13.                 >
  14.             {% endif %}
  15.         </div>
  16.         <div class="sber-action-link__info-block-wrap">
  17.             <div class="sber-action-link__info-block">
  18.                 <div class="sber-action-link__text text__mini">
  19.                     {{ actionLinkSettings.actionHintText }}
  20.                 </div>
  21.                 <a href="{{ actionLinkSettings.url }}"
  22.                    class="sber-action-link__link text__mini text__main01"
  23.                    title="{{ actionName }}"
  24.                    target="_blank"
  25.                 >
  26.                     Подробнее
  27.                 </a>
  28.             </div>
  29.         </div>
  30.     </div>
  31. {% endif %}