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

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {# {% block title %}
  3.     Nos collections | {{ parent() }}
  4. {% endblock %}
  5. {% block metatags %}
  6.     {{ parent() }}
  7.     <meta name="description" content="Découvrez les collections éphémères, classiques et enfants Papa Pique et Maman Coud. Accessoires de mode et Tissu. Livraison gratuite en boutique." />
  8. {% endblock %} #}
  9. {% block title %}{{ bitbag_cms_render_block('metatitle-collection') }} | {{ parent() }}{% endblock %}
  10. {% block metatags %}
  11.     {{ parent() }}
  12.     <meta name="description" content="{{ bitbag_cms_render_block('metadesc-collection')|striptags|raw|replace({"\n": "", "\r": "", "\t": ""}) }}" />  
  13. {% endblock %}
  14. {% block container_css_classes %}
  15. {% apply spaceless %}
  16.     bitbag_sylius_cms_plugin_shop_page_show
  17. {% endapply %}
  18. {% endblock %}
  19. {% block content %}
  20. <div class="page-content typecms6" style="background-image: url('/webapic-theme/images/asupprimer/page-bg-content-full.png')">
  21.     {# Fil d'ariane #}
  22.     {{ wo_render_breadcrumbs() }}
  23.     <div class="page-content-ctn">
  24.         <div class="page-content-left">
  25.             <img src="/webapic-theme/images/asupprimer/page-bg-content-left2.svg" class="ui image">
  26.         </div>
  27.         <div class="page-content-middle">
  28.             <h1 class="bitbag-page-name">{{ 'app.front.collections.indextitle'|trans }} PPMC</h1>
  29.             <div class="bitbag-page-content">
  30.                 <p>{{ 'app.front.collections.indexdesc'|trans }}</p>
  31.             </div>
  32.         </div>
  33.         {#
  34.         <div class="page-content-right">
  35.             <div id="circle">
  36.                 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewbox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
  37.                     <defs>
  38.                         <path id="circlePath" d=" M 150, 150 m -60, 0 a 60,60 0 0,1 120,0 a 60,60 0 0,1 -120,0 "></path>
  39.                     </defs>
  40.                     <circle cx="150" cy="100" r="75" fill="none"></circle>
  41.                     <g>
  42.                         <use xlink:href="#circlePath" fill="none"></use>
  43.                         <text fill="#fff" textLength="550px">
  44.                             <textPath xlink:href="#circlePath" textLength="550px">
  45.                                 Les collections PPMC
  46.                             </textPath>
  47.                         </text>
  48.                     </g>
  49.                 </svg>
  50.             </div>
  51.         </div>
  52.         #}
  53.     </div>
  54. </div>
  55. <div class="bitbag-block">
  56.     <div class="block-type21 block-type15">
  57.         <h2>{{ 'app.front.collections.indexlast1'|trans }} <a href="{{ path('app_collection_category', {'slugCategory': linkscat.temporary}) }}"><strong>collections</strong> <span>{{ 'app.front.collections.cat1'|trans }}</span></a></h2>
  58.         <a class="link-all" href="{{ path('app_collection_category', {'slugCategory': linkscat.temporary}) }}">{{ 'app.front.collections.indexlast2'|trans }}</a>
  59.         <div class="block-type15-ctn">
  60.             {% for collection in collectionsTemporary %}
  61.             <div class="categorie">
  62.                 <a href="{{ path('app_collection_show', {'slugCategory': linkscat.temporary, 'slug': collection.slug}) }}" class="top">
  63.                     <div class="img-ctn">
  64.                         {% if collection.imagesByType('image_collection_main_left')|length > 0 %}
  65.                         <img class="ui image" src="{{ collection.imagesByType('image_collection_main_left').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
  66.                         {% else %}
  67.                         <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
  68.                         {% endif %}
  69.                     </div>
  70.                     <h3>{{ collection.title }}</h3>
  71.                 </a>
  72.             </div>
  73.             {% endfor %}
  74.         </div>
  75.     </div>
  76.     <div class="block-type21 block-type15">
  77.         <h2>{{ 'app.front.collections.indexlast1'|trans }} <a href="{{ path('app_collection_category', {'slugCategory': linkscat.temporary}) }}"><strong>collections</strong> <span>{{ 'app.front.collections.cat2'|trans }}</span></a></h2>
  78.          <a class="link-all" href="{{ path('app_collection_category', {'slugCategory': linkscat.classic}) }}">{{ 'app.front.collections.indexlast2'|trans }}</a>
  79.         <div class="block-type15-ctn">
  80.             {% for collection in collectionsClassic %}
  81.             <div class="categorie">
  82.                 <a href="{{ path('app_collection_show', {'slugCategory': linkscat.classic, 'slug': collection.slug}) }}" class="top">
  83.                     <div class="img-ctn">
  84.                         {% if collection.imagesByType('image_collection_main_left')|length > 0 %}
  85.                         <img class="ui image" src="{{ collection.imagesByType('image_collection_main_left').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
  86.                         {% else %}
  87.                         <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
  88.                         {% endif %}
  89.                     </div>
  90.                     <h3>{{ collection.title }}</h3>
  91.                 </a>
  92.             </div>
  93.             {% endfor %}
  94.         </div>
  95.     </div>
  96.     <div class="block-type21 block-type15">
  97.         <h2>{{ 'app.front.collections.indexlast1'|trans }} <a href="{{ path('app_collection_category', {'slugCategory': linkscat.temporary}) }}"><strong>collections</strong> <span>{{ 'app.front.collections.cat3'|trans }}</span></a></h2>
  98.         <a class="link-all" href="{{ path('app_collection_category', {'slugCategory': linkscat.children}) }}">{{ 'app.front.collections.indexlast2'|trans }}</a>
  99.         <div class="block-type15-ctn">
  100.             {% for collection in collectionsChildren %}
  101.             <div class="categorie">
  102.                 <a href="{{ path('app_collection_show', {'slugCategory': linkscat.children, 'slug': collection.slug}) }}" class="top">
  103.                     <div class="img-ctn">
  104.                         {% if collection.imagesByType('image_collection_main_left')|length > 0 %}
  105.                         <img class="ui image" src="{{ collection.imagesByType('image_collection_main_left').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
  106.                         {% else %}
  107.                         <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
  108.                         {% endif %}
  109.                     </div>
  110.                     <h3>{{ collection.title }}</h3>
  111.                 </a>
  112.             </div>
  113.             {% endfor %}
  114.         </div>
  115.     </div>
  116.     {# <div class="block-type21 block-type15">
  117.         <h2>Les <strong>dernières</strong> collections</h2>
  118.         <div class="block-type15-ctn">
  119.             {% for collection in lastestCollections %}
  120.             <div class="categorie">
  121.                 <a href="{{ path('app_collection_show', {'slug': collection.slug}) }}" class="top">
  122.                     <div class="img-ctn">
  123.                         {% if collection.imagesByType('image_collection_main_left')|length > 0 %}
  124.                         <img class="ui image" src="{{ collection.imagesByType('image_collection_main_left').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
  125.                         {% else %}
  126.                         <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
  127.                         {% endif %}
  128.                     </div>
  129.                     <h2>{{ collection.title }}</h2>
  130.                 </a>
  131.             </div>
  132.             {% endfor %}
  133.         </div>
  134.     </div> #}
  135.     {# <div class="block-type21 block-type15">
  136.         <h2>Toutes les collections</h2>
  137.         <div class="block-type15-ctn">
  138.         {% for collection in collections %}
  139.             <div class="categorie">
  140.                 <a href="{{ path('app_collection_show', {'slug': collection.slug}) }}" class="top">
  141.                     <div class="img-ctn">
  142.                         {% if collection.imagesByType('image_collection_main_left')|length > 0 %}
  143.                         <img class="ui image" src="{{ collection.imagesByType('image_collection_main_left').first.path|imagine_filter('app_taxon_image_taxon_main') }}" />
  144.                         {% else %}
  145.                         <img class="ui image" src="{{ asset('webapic-theme/images/placeholder-category-image.png') }}" />
  146.                         {% endif %}
  147.                     </div>
  148.                     <h2>{{ collection.title }}</h2>
  149.                 </a>
  150.             </div>
  151.         {% endfor %}
  152.         </div>
  153.     </div> #}
  154. </div>
  155. {% endblock %}