templates/ZZ_front_end/shop/shop_comune.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'carrello' %}
  3. {% do impostazioni.caricaCacheImpostazioniDaNomi(['PaginaRicerca', 'PaginaHomepage', 'AbilitaDebugPagineGenericheVisibiliATutti', 'AbilitaDebugUtentiAmministrativi'])  %}
  4. {% set idLayout = '' %}
  5. {% if deviazioneSuPaginaRicerca == 1 %}
  6.     {% if forzaIdLayout is defined and forzaIdLayout != '' %}
  7.         {% set idLayout = forzaIdLayout %}
  8.     {% else %}
  9.         {% set idLayout = impostazioni.ritornaImpostazioneDaNome('PaginaRicerca')|default('') %}
  10.     {% endif %}
  11. {% else %}
  12.     {% if forzaIdLayout is defined and forzaIdLayout != '' %}
  13.         {% set idLayout = forzaIdLayout %}
  14.     {% else %}
  15.         {% set idLayout = impostazioni.ritornaImpostazioneDaNome('PaginaHomepage')|default('') %}
  16.     {% endif %}
  17. {% endif %}
  18. {% if idLayout != '' %}
  19.     {% set arrayHtmlCss = servizi.renderizzaPaginaOComponente(idLayout, null, _context, app.request.locale, '', false, true, app) %}
  20. {% endif %}
  21. {% block body %}
  22.     {% set abilitaDebugAmministrativoPubb = impostazioni.ritornaImpostazioneDaNome("AbilitaDebugPagineGenericheVisibiliATutti") %}
  23.     {% set abilitaDebug = impostazioni.ritornaImpostazioneDaNome('AbilitaDebugUtentiAmministrativi') %}
  24.     {% if (abilitaDebugAmministrativoPubb == '1' or abilitaDebug == '1')  and app.environment == 'dev'%}
  25.         {% include('ZZ_front_end/pagina_errore/dump.html.twig') %}
  26.     {% endif %}
  27.     {% if idLayout != '' %}
  28.         {% if arrayHtmlCss is defined %}
  29.             {{ arrayHtmlCss.html|raw }}
  30.         {% endif %}
  31.     {% else %}
  32.         {{ include('ZZ_front_end/shop/shop_comune_dflt.html.twig', _context) }}
  33.     {% endif %}
  34. {% endblock %}
  35. {% block stylesheet %}
  36.     <link href="{{ asset('java_lib/hc-offcanvas-nav-master/dist/hc-offcanvas-nav.css') }}" rel="stylesheet" type="text/css">
  37.     <style type="text/css">
  38.     {% if idLayout == '' %}
  39.         .nav-side-menu {
  40.             overflow: auto;
  41.             font-family: verdana;
  42.             font-size: 12px;
  43.             font-weight: 200;
  44.             background-color: #2e353d;
  45.             position: fixed;
  46.             top: 0px;
  47.             width: 300px;
  48.             height: 100%;
  49.             color: #e1ffff;
  50.         }
  51.         .nav-side-menu .brand {
  52.             background-color: #23282e;
  53.             line-height: 50px;
  54.             display: block;
  55.             text-align: center;
  56.             font-size: 14px;
  57.         }
  58.         .nav-side-menu .toggle-btn {
  59.             display: none;
  60.         }
  61.         .nav-side-menu ul,
  62.         .nav-side-menu li {
  63.             list-style: none;
  64.             padding: 0px;
  65.             margin: 0px;
  66.             line-height: 35px;
  67.             cursor: pointer;
  68.             /*
  69.               .collapsed{
  70.                  .arrow:before{
  71.                            font-family: FontAwesome;
  72.                            content: "\f053";
  73.                            display: inline-block;
  74.                            padding-left:10px;
  75.                            padding-right: 10px;
  76.                            vertical-align: middle;
  77.                            float:right;
  78.                       }
  79.                }
  80.           */
  81.         }
  82.         .nav-side-menu ul :not(collapsed) .arrow:before,
  83.         .nav-side-menu li :not(collapsed) .arrow:before {
  84.             font-family: FontAwesome;
  85.             content: "\f078";
  86.             display: inline-block;
  87.             padding-left: 10px;
  88.             padding-right: 10px;
  89.             vertical-align: middle;
  90.             float: right;
  91.         }
  92.         .nav-side-menu ul .active,
  93.         .nav-side-menu li .active {
  94.             border-left: 3px solid #d19b3d;
  95.             background-color: #4f5b69;
  96.         }
  97.         .nav-side-menu ul .sub-menu li.active,
  98.         .nav-side-menu li .sub-menu li.active {
  99.             color: #d19b3d;
  100.         }
  101.         .nav-side-menu ul .sub-menu li.active a,
  102.         .nav-side-menu li .sub-menu li.active a {
  103.             color: #d19b3d;
  104.         }
  105.         .nav-side-menu ul .sub-menu li,
  106.         .nav-side-menu li .sub-menu li {
  107.             background-color: #181c20;
  108.             border: none;
  109.             line-height: 28px;
  110.             border-bottom: 1px solid #23282e;
  111.             margin-left: 0px;
  112.         }
  113.         .nav-side-menu ul .sub-menu li:hover,
  114.         .nav-side-menu li .sub-menu li:hover {
  115.             background-color: #020203;
  116.         }
  117.         .nav-side-menu ul .sub-menu li:before,
  118.         .nav-side-menu li .sub-menu li:before {
  119.             font-family: FontAwesome;
  120.             content: "\f105";
  121.             display: inline-block;
  122.             padding-left: 10px;
  123.             padding-right: 10px;
  124.             vertical-align: middle;
  125.         }
  126.         .nav-side-menu li {
  127.             padding-left: 0px;
  128.             border-left: 3px solid #2e353d;
  129.             border-bottom: 1px solid #23282e;
  130.         }
  131.         .nav-side-menu li a {
  132.             text-decoration: none;
  133.             color: #e1ffff;
  134.         }
  135.         .nav-side-menu li a i {
  136.             padding-left: 10px;
  137.             width: 20px;
  138.             padding-right: 20px;
  139.         }
  140.         .nav-side-menu li:hover {
  141.             border-left: 3px solid #d19b3d;
  142.             background-color: #4f5b69;
  143.             -webkit-transition: all 1s ease;
  144.             -moz-transition: all 1s ease;
  145.             -o-transition: all 1s ease;
  146.             -ms-transition: all 1s ease;
  147.             transition: all 1s ease;
  148.         }
  149.         @media (max-width: 767px) {
  150.             .nav-side-menu {
  151.                 position: relative;
  152.                 width: 100%;
  153.                 margin-bottom: 10px;
  154.             }
  155.             .nav-side-menu .toggle-btn {
  156.                 display: block;
  157.                 cursor: pointer;
  158.                 position: absolute;
  159.                 right: 10px;
  160.                 top: 10px;
  161.                 z-index: 10 !important;
  162.                 padding: 3px;
  163.                 background-color: #ffffff;
  164.                 color: #000;
  165.                 width: 40px;
  166.                 text-align: center;
  167.             }
  168.             .brand {
  169.                 text-align: left !important;
  170.                 font-size: 22px;
  171.                 padding-left: 20px;
  172.                 line-height: 50px !important;
  173.             }
  174.         }
  175.         @media (min-width: 767px) {
  176.             .nav-side-menu .menu-list .menu-content {
  177.                 display: block;
  178.             }
  179.             #main {
  180.                 width:calc(100% - 300px);
  181.                 float: right;
  182.             }
  183.         }
  184.     {% else %}
  185.             .nav-side-menu {
  186.                 overflow: auto;
  187.                 /*position: fixed;
  188.                 top: 0px;*/
  189.                 /*width: 300px;*/
  190.                 /*height: 100%;*/
  191.                 /*color: #e1ffff;*/
  192.             }
  193.             .nav-side-menu .brand {
  194.                 /*background-color: #23282e;*/
  195.                 /*line-height: 50px;*/
  196.                 display: block;
  197.                 /*text-align: center;
  198.                 font-size: 14px;*/
  199.             }
  200.             .nav-side-menu .toggle-btn {
  201.                 display: none;
  202.             }
  203.             .nav-side-menu ul,
  204.             .nav-side-menu li {
  205.                 list-style: none;
  206.                 padding: 0px;
  207.                 margin: 0px;
  208.                 line-height: 35px;
  209.                 cursor: pointer;
  210.                 /*
  211.                   .collapsed{
  212.                      .arrow:before{
  213.                                font-family: FontAwesome;
  214.                                content: "\f053";
  215.                                display: inline-block;
  216.                                padding-left:10px;
  217.                                padding-right: 10px;
  218.                                vertical-align: middle;
  219.                                float:right;
  220.                           }
  221.                    }
  222.               */
  223.             }
  224.             .nav-side-menu ul :not(collapsed) .arrow:before,
  225.             .nav-side-menu li :not(collapsed) .arrow:before {
  226.                 /*font-family: FontAwesome;*/
  227.                 /*content: "\f078";*/
  228.                 display: inline-block;
  229.                /* padding-left: 10px;
  230.                 padding-right: 10px;*/
  231.                 vertical-align: middle;
  232.                 float: right;
  233.             }
  234.             .nav-side-menu ul .active,
  235.             .nav-side-menu li .active {
  236.                 /*border-left: 3px solid #d19b3d;
  237.                 background-color: #4f5b69;*/
  238.             }
  239.             .nav-side-menu ul .sub-menu li.active,
  240.             .nav-side-menu li .sub-menu li.active {
  241.                 /*color: #d19b3d;*/
  242.             }
  243.             .nav-side-menu ul .sub-menu li.active a,
  244.             .nav-side-menu li .sub-menu li.active a {
  245.                 /*color: #d19b3d;*/
  246.             }
  247.             .nav-side-menu ul .sub-menu li,
  248.             .nav-side-menu li .sub-menu li {
  249.                 /*background-color: #181c20;*/
  250.                 /*border: none;
  251.                 line-height: 28px;*/
  252.                 /*border-bottom: 1px solid #23282e;*/
  253.                 margin-left: 0px;
  254.             }
  255.             .nav-side-menu ul .sub-menu li:hover,
  256.             .nav-side-menu li .sub-menu li:hover {
  257.                 /*background-color: #020203;*/
  258.             }
  259.             .nav-side-menu ul .sub-menu li:before,
  260.             .nav-side-menu li .sub-menu li:before {
  261.                 /*font-family: FontAwesome;*/
  262.                /* content: "\f105";*/
  263.                 display: inline-block;
  264.                 /*padding-left: 10px;
  265.                 padding-right: 10px;
  266.                 vertical-align: middle;*/
  267.             }
  268.             .nav-side-menu li {
  269.                /* padding-left: 0px;
  270.                 border-left: 3px solid #2e353d;
  271.                 border-bottom: 1px solid #23282e;*/
  272.             }
  273.             .nav-side-menu li a {
  274.                 text-decoration: none;
  275.                 /*color: #e1ffff;*/
  276.             }
  277.             .nav-side-menu li a i {
  278.                 /*padding-left: 10px;
  279.                 width: 20px;
  280.                 padding-right: 20px;*/
  281.             }
  282.             .nav-side-menu li:hover {
  283.                /* border-left: 3px solid #d19b3d;
  284.                 background-color: #4f5b69;*/
  285.                 /*-webkit-transition: all 1s ease;
  286.                 -moz-transition: all 1s ease;
  287.                 -o-transition: all 1s ease;
  288.                 -ms-transition: all 1s ease;
  289.                 transition: all 1s ease;*/
  290.             }
  291.             @media (max-width: 767px) {
  292.                 .nav-side-menu {
  293.                     position: relative;
  294.                     width: 100%;
  295.                     margin-bottom: 10px;
  296.                 }
  297.                 .nav-side-menu .toggle-btn {
  298.                     display: block;
  299.                     cursor: pointer;
  300.                     position: absolute;
  301.                     right: 10px;
  302.                     top: 10px;
  303.                     z-index: 10 !important;
  304.                     /*padding: 3px;
  305.                     background-color: #ffffff;
  306.                     color: #000;
  307.                     width: 40px;*/
  308.                     /*text-align: center;*/
  309.                 }
  310.                 .brand {
  311.                    /* text-align: left !important;
  312.                     font-size: 22px;
  313.                     padding-left: 20px;*/
  314.                     line-height: 50px !important;
  315.                 }
  316.             }
  317.             @media (min-width: 767px) {
  318.                 .nav-side-menu .menu-list .menu-content {
  319.                     display: block;
  320.                 }
  321.                 #main {
  322.                     width:calc(100% - 300px);
  323.                     float: right;
  324.                 }
  325.             }
  326.     {% endif %}
  327.         body {
  328.             margin: 0px;
  329.             padding: 0px;
  330.         }
  331.     </style>
  332.     <style type="text/css">
  333.         .container-prodotti a:hover{
  334.             text-decoration: none;
  335.         }
  336.         .container-prodotti h3{
  337.             height: 2em;
  338.             font-size: 2vh;
  339.             overflow: hidden;
  340.         }
  341.         .container-prodotti p{
  342.             height: 1em;
  343.         }
  344.         .immagine-prodotto{
  345.             height: 15vh !important;
  346.             width: auto;
  347.             text-align: center;
  348.         }
  349.     </style>
  350.     {% if arrayHtmlCss is defined %}
  351.         <style type="text/css">
  352.         {{ arrayHtmlCss.css|raw }}
  353.         </style>
  354.     {% endif %}
  355. {% endblock %}
  356. {% block javascript %}
  357.     <script type="text/javascript">
  358.         $(document).ready(function () {
  359.         });
  360.     </script>
  361. {% endblock %}