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.     {% if page.translation.metaRobotIndex == true %}
  11.         {% set metaRobotIndex = 'index, follow' %}
  12.     {% elseif page.translation.metaRobotIndex == false %}
  13.         {% set metaRobotIndex = 'noindex, nofollow' %}
  14.     {% endif %}
  15.     <meta name="robots" content="{{ metaRobotIndex }}"/>
  16. {% endblock %}
  17. {% block content %}
  18.     {% if page.image %}
  19.     <div class="image-instit-top pt-0 object-fit-img">
  20.         {% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %}
  21.             <img class="" src="{{ path }}" alt="">
  22.         </div>
  23.     {% endif %}
  24.     <div class="max-container-3 px-2 px-xl-4">
  25.         <nav>
  26.             <ol class="breadcrumb ariane-box m-0  bg-transparent">
  27.                 <li class="breadcrumb-item"><a href="{{ path('sylius_shop_homepage') }}">{{ 'sylius.ui.home'|trans }}</a></li>
  28.                 <li class="breadcrumb-item">{{ page.name }}</li>
  29.             </ol>
  30.         </nav>
  31.         <div class="page-instit-img mt-md-3 mt-2 pb-md-4 pb-3">
  32.             <div class="text-center pb-2"><h1 class="title-medium color-pink-s">{{ page.name }}</h1></div>
  33.             <div class="py-3 py-md-5 px-md-4 px-3 fontsize-normal fontsize-mobile-text py-3 text-regular content-instit page-instit-shadow">
  34.             {{ bitbag_cms_render_content(page) }}
  35.                 {% if page.code =="pick_up_on_site" %}
  36.                     <a href="https://fr.mappy.com/poi/60c9784522e6f13abc204b04" target="_blank" class="font-seize text-underline font-pro-bold color-pink-s"><i class="icon-location"></i> {{'app.homepage.our_shop'|trans}}</a>
  37.                     <div class="pt-3">
  38.                         <a href="https://fr.mappy.com/poi/60c9784522e6f13abc204b04" target="_blank" class="">
  39.                             <img src="{{asset('images/map.png')}}" alt="{{ 'app.common.shop_map'|trans }}">
  40.                         </a>
  41.                     </div>
  42.                 {% endif %}
  43.             </div>
  44.         </div>
  45.     </div>
  46.     {% if page.products|length > 0 %}
  47.         <h2 class="title-medium text-center">
  48.             {{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}
  49.         </h2>
  50.         <div class="bitbag-page-products d-none">
  51.             {% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
  52.         </div>
  53.     {% endif %}
  54. {% endblock %}