custom/plugins/DmitsInfoFlag/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
  2. {% block layout_footer_navigation %}
  3.     {{ parent() }}
  4.     {% block layout_footer_dmits_infoflag %}
  5.     {% set dmitsInfoFlag=page.footer.extensions.dmitsInfoFlag %}
  6.         {% if dmitsInfoFlag.active %}
  7.             {% if dmitsInfoFlag.closetextcolor %} <style>.infoflag-close svg{color:{{dmitsInfoFlag.closetextcolor}};}</style>{% endif %}
  8.             {% if dmitsInfoFlag.closebgcolor %} <style>.infoflag-close svg{background-color:{{dmitsInfoFlag.closebgcolor}};}</style>{% endif %}
  9.             {% if dmitsInfoFlag.closeborderradius %} <style>.infoflag-close svg{border-radius:{{dmitsInfoFlag.closeborderradius}}px;}</style>{% endif %}
  10.             
  11.             
  12.                     <div style="{% if dmitsInfoFlag.textcolor %} color:{{dmitsInfoFlag.textcolor}};{% endif %}
  13.                     {% if dmitsInfoFlag.bgcolor %} background-color:{{dmitsInfoFlag.bgcolor}};{% endif %}
  14.                     {% if dmitsInfoFlag.width %} width:{{dmitsInfoFlag.width}}px;{% endif %}
  15.                     {% if dmitsInfoFlag.height %} min-height:{{dmitsInfoFlag.height}}px;{% endif %}
  16.                     {% if dmitsInfoFlag.contentpadding %} padding:{{dmitsInfoFlag.contentpadding}}px;{% endif %}      
  17.                     " class="infoflag {{ "infoflag-#{dmitsInfoFlag.position}" }}{% if dmitsInfoFlag.close==false %} infoflag-noclose{% endif %}
  18.                     {% if dmitsInfoFlag.mobile %} infoflag-mobile{% endif %} 
  19.                     {% if dmitsInfoFlag.mobileland %} infoflag-mobileland{% endif %} 
  20.                     {% if dmitsInfoFlag.tablet %} infoflag-tablet{% endif %} 
  21.                     {% if dmitsInfoFlag.tabletland %} infoflag-tabletland{% endif %} 
  22.                     {% if dmitsInfoFlag.desktop %} infoflag-desktop{% endif %} 
  23.                     {% if dmitsInfoFlag.border %} infoflag-border{% endif %}">
  24.                         {% if dmitsInfoFlag.close %}
  25.                         <div class="infoflag-close">
  26.                             {% sw_include '@Storefront/storefront/utilities/icon.html.twig' with {
  27.                      'name': 'x'
  28.                     } %}
  29.                         </div>
  30.                         {% endif %}
  31.                         <div class="infoflag-content">{{ dmitsInfoFlag.content|raw }}</div>
  32.                     </div>
  33.         
  34.             {% if dmitsInfoFlag.close %}
  35.                 <script>
  36.                 var dmitsclosetime=0;
  37.                 {% if dmitsInfoFlag.closetime %}
  38.                     dmitsclosetime={{dmitsInfoFlag.closetime}}*60*1000; 
  39.                 {% endif %}
  40.         
  41.                 </script>
  42.             {% endif %}
  43.         {% endif %}
  44. {% endblock %}
  45. {% endblock %}