themes/webapicTheme/templates/partials/block-article-guide.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% if article is not empty %}
  3.     <div class="taxons-guide">
  4.         <div class="taxons-guide-ctn">
  5.             <div class="taxons-guide-left">
  6.                 {% if article.imagesByType('image_article_main')|length > 0 %}
  7.                 <img class="top ui image" src="{{ article.imagesByType('image_article_main').first.path|imagine_filter('sylius_shop_product_original') }}" />
  8.                 {% endif %}
  9.             </div>
  10.             <div class="taxons-guide-right">
  11.                 <div class="taxons-guide-right-ctn">
  12.                     <h2>{{ 'app.front.block.guide.titre'|trans }}</h2>
  13.                     <h3>{{ article.title }}</h3>
  14.                     <div class="desc">{{ article.textSubtitle|raw }}</div>
  15.                     <div class="ctn-liens">
  16.                         <a href="{{ path('app_leguide') }}" class="left">{{ 'app.front.block.guide.voir'|trans }}</a>
  17.                         <a href="{{ path('app_leguide_article', {'slugCategory': article.articleCategory.slug, 'slug': article.slug, 'articleId': article.id}) }}" class="right">{{ 'app.front.block.guide.lire'|trans }}</a>
  18.                     </div>
  19.                 </div>
  20.             </div>
  21.         </div>
  22.     </div>
  23. {% endif %}