custom/plugins/SolidInstagramElements/src/Resources/views/storefront/layout/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_stylesheet %}
  3.     {{ parent() }}
  4.     {% block solid_instagram_elements_style %}
  5.         {% if page.cmsPage %}
  6.             {% for section in page.cmsPage.sections %}
  7.                 {% for block in section.blocks %}
  8.                     {% for element in block.slots.elements %}
  9.                         {% if element.type == 'solid-ie-feed' %}
  10.                             {% block solid_ie_feed_style_config %}
  11.                                 {% set config = element.translated.config %}
  12.                                 {% block solid_ie_feed_style_tag %}
  13.                                     <style>
  14.                                         {% block solid_ie_feed_style_gutter %}
  15.                                             {% if config.gutter.value == 'custom' and config.gutterWidthValue.value != '' %}
  16.                                                 .solid-ie-feed.solid-ie-feed-{{ element.id }} .feed-row {
  17.                                                     {% if config.gutterWidthValue.value != '0' %}
  18.                                                         {% if config.theme.value != 'instagram' %}
  19.                                                             margin-top: -{{ config.gutterWidthValue.value ~ config.gutterWidthUnit.value }};
  20.                                                         {% endif %}
  21.                                                         margin-right: -{{ config.gutterWidthValue.value / 2 ~ config.gutterWidthUnit.value }};
  22.                                                         margin-left: -{{ config.gutterWidthValue.value / 2 ~ config.gutterWidthUnit.value }};
  23.                                                     {% else %}
  24.                                                         {% if config.theme.value != 'instagram' %}
  25.                                                             margin-top: {{ config.gutterWidthValue.value ~ config.gutterWidthUnit.value }};
  26.                                                         {% endif %}
  27.                                                         margin-right: {{ config.gutterWidthValue.value / 2 ~ config.gutterWidthUnit.value }};
  28.                                                         margin-left: {{ config.gutterWidthValue.value / 2 ~ config.gutterWidthUnit.value }};
  29.                                                     {% endif %}
  30.                                                 }
  31.                                                 .solid-ie-feed.solid-ie-feed-{{ element.id }} .feed-col {
  32.                                                     {% if config.theme.value != 'instagram' %}
  33.                                                         margin-top: {{ config.gutterWidthValue.value ~ config.gutterWidthUnit.value }};
  34.                                                     {% endif %}
  35.                                                     padding-right: {{ config.gutterWidthValue.value / 2 ~ config.gutterWidthUnit.value }};
  36.                                                     padding-left: {{ config.gutterWidthValue.value / 2 ~ config.gutterWidthUnit.value }};
  37.                                                 }
  38.                                             {% endif %}
  39.                                         {% endblock %}
  40.                                     </style>
  41.                                 {% endblock %}
  42.                             {% endblock %}
  43.                         {% endif %}
  44.                     {% endfor %}
  45.                 {% endfor %}
  46.             {% endfor %}
  47.         {% endif %}
  48.     {% endblock %}
  49. {% endblock %}