themes/BootstrapTheme/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/show.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% block title %}{% if page.title is not empty %}{{ page.title|trim }}{% else %}{{ parent() }}{% endif %}{% endblock %}
  3. {% block metatags %}
  4.     {% if page.metaKeywords is not empty %}
  5.         <meta name="keywords" content="{{ page.metaKeywords }}"/>
  6.     {% endif %}
  7.     {% if page.metaDescription is not empty %}
  8.         <meta name="description" content="{{ page.metaDescription }}"/>
  9.     {% endif %}
  10. {% endblock %} 
  11. {% block content %}
  12.     
  13.     {% if page.image %}
  14.     {% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %}
  15.     <div class="instit-top-image instit-has-bgimg text-center pt-0 d-flex justify-content-center align-items-center" style="background-image: url({{ path }})" >
  16.         <h1 class="title-medium color-white text-uppercase">{{ page.name }}</h1>
  17.     </div>
  18.     {% else %}
  19.         <div class="instit-top-image text-center pt-0 d-flex justify-content-center bg-gradient-orange  align-items-center">
  20.             <h1 class="title-medium color-white text-uppercase">{{ page.name }}</h1>
  21.         </div>
  22.     {% endif %}
  23.     <div class="max-container-5 px-2 px-xl-4">
  24.         <nav>
  25.             <ol class="breadcrumb ariane-box m-0  bg-transparent">
  26.                 <li class="breadcrumb-item"><a href="{{ path('sylius_shop_homepage') }}">{{ 'sylius.ui.home'|trans }}</a></li>
  27.                 <li class="breadcrumb-item">{{ page.name }}</li>
  28.             </ol>
  29.         </nav>
  30.         <div class="page-instit-img mt-md-3 mt-2">
  31.             <div class="py-3 py-md-4 fontsize-mobile-text py-3 text-regular">{{ bitbag_cms_render_content(page) }}</div>
  32.             {#<div class="bitbag-page-sections d-none">
  33.                 {% include '@BitBagSyliusCmsPlugin/Shop/Page/Show/_sections.html.twig' %}
  34.             </div>#}
  35.         </div>
  36.     </div>
  37.     {#{% if page.products|length > 0 %}
  38.         <h2>
  39.             {{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}
  40.         </h2>
  41.         <div class="bitbag-page-products d-none">
  42.             {% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
  43.         </div>
  44.     {% endif %}#}
  45.     
  46. {% endblock %}