themes/webapicTheme/templates/site_leguide_category_show.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% block title %}{{ articleCategory.metaTitle }} - {{ parent() }}{% endblock %}
  3. {% block metatags %}
  4.     {{ parent() }}
  5.     <meta name="description" content="{{ articleCategory.metaDescription }}" />
  6. {% endblock %}
  7. {% block container_css_classes %}
  8. {% apply spaceless %}
  9. bitbag_sylius_cms_plugin_shop_page_show
  10. {% endapply %}
  11. {% endblock %}
  12. {% block content %}
  13. <div class="page-content typecms2" style="background-image: url('/webapic-theme/images/asupprimer/page-bg-content-full.png')">
  14.     {# Fil d'ariane #}
  15.     {{ wo_render_breadcrumbs() }}
  16.     <div class="page-content-ctn">
  17.         <div class="page-content-left">
  18.             <img src="/webapic-theme/images/asupprimer/page-bg-content-left.svg" class="ui image">
  19.         </div>
  20.         <div class="page-content-middle">
  21.             <h1 class="bitbag-page-name">{{ articleCategory.name }}</h1>
  22.             <div class="bitbag-page-content">
  23.                 <p>{{ articleCategory.description|raw }}</p>
  24.             </div>
  25.         </div>
  26.     </div>
  27. </div>
  28. {# <div class="categorie">
  29.     <div class="categorie-childrens">
  30.         <div class="categorie-childrens-ctn">
  31.             <div class="carouseel">
  32.                 {% for articleCategory in articleCategories %}
  33.                     <div class="child">
  34.                         <div class="categorie">
  35.                             <a href="{{ path('app_leguide_category', {'slug': articleCategory.slug}) }}" class="top">
  36.                                 {% if articleCategory.imagesByType('image_article_category_main').first() is not empty %}
  37.                                     <img class="ui image" src="{{ articleCategory.imagesByType('image_article_category_main').first().path|imagine_filter('app_taxon_image_taxon_main') }}" />
  38.                                 {% else %}
  39.                                     <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}"/>
  40.                                 {% endif %}
  41.                                 <h2>{{ articleCategory.name }}</h2>
  42.                             </a>
  43.                         </div>
  44.                     </div>
  45.                 {% endfor %}
  46.             </div>
  47.         </div>
  48.     </div>
  49. </div> #}
  50. {% if articles is not empty %}
  51. <div class="categorie guide-categorie">
  52.      <div class="categorie-looks">   
  53.         <div class="categorie-looks-ctn">
  54.             {# <h2>Nos articles</h2> #}
  55.             <div class="no-caroussel">
  56.                 {% for article in articles %}
  57.                 <div class="look">
  58.                      <a href="{{ path('app_leguide_article', {'slugCategory': article.articleCategory.slug, 'slug': article.slug, 'articleId': article.id}) }}" class="top">
  59.                         {% if article.imagesByType('image_article_main')|length > 0 %}
  60.                         <img class="ui image" src="{{ article.imagesByType('image_article_main').first.path|imagine_filter('sylius_shop_product_original') }}" />
  61.                         {% endif %}                   
  62.                         <h2 class="categorie-looks-description">
  63.                             {% if article.titleVignette is not empty %}
  64.                                 {{ article.titleVignette }}
  65.                             {% else %}
  66.                                  {{ article.title }}
  67.                             {% endif %}
  68.                         </h2>
  69.                     </a>
  70.                 </div>
  71.                 {% endfor %}
  72.             </div>  
  73.         </div> 
  74.     </div>
  75. </div>
  76. {% endif %}
  77. {% endblock %}