Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. <div class="{{ section.settings.display }}" data-section-id="{{ section.id }}" data-section-type="banner-section">
  2. <div class="grid-container">
  3. <div class="box border-none index-banner-grid-container">
  4. {%- if section.settings.title != blank or section.settings.sub_title != blank -%}
  5. <div class="box-divider grid-x">
  6. {%- if section.settings.title != blank -%}
  7. <h2 class="box-title width-100">{{ section.settings.title }}</h2>
  8. {%- endif -%}
  9. {%- if section.settings.sub_title != blank -%}
  10. <p class="sub-title width-100">{{ section.settings.sub_title }}</p>
  11. {%- endif -%}
  12. </div>
  13. {%- endif -%}
  14. <div class="box-content">
  15. {%- if section.blocks.size > 0 -%}
  16. <div class="index-banner-grid-list grid-x grid-margin-x align-center">
  17. {%- for block in section.blocks -%}
  18. <div class="cell small-{{ block.settings.column_small }} medium-{{ block.settings.column_medium }} large-{{ block.settings.column_large }} xlarge-{{ block.settings.column_xlarge }} xxlarge-{{ block.settings.column_xxlarge }} xxxlarge-{{ block.settings.column_xxxlarge }} text-center">
  19. <div class="index-banner-grid-item effect effect-scope">
  20. {%- unless block.settings.image == blank -%}
  21. <a href="{{ block.settings.link }}" class="index-banner-grid-image display-block">
  22. <img src="{{ 'icon-loader-clock.svg' | asset_url }}" data-src="{{ block.settings.image | img_url: image_size }}" class="width-100 lazyload" alt="{{ block.settings.image.alt }}" style="border-radius: 50%;border: 1.5px;border-color: orange;border-style: solid;padding: 1.5px;"/>
  23. </a>
  24. {% else %}
  25. <a href="{{ block.settings.link }}" class="index-banner-grid-image display-block" >
  26. {% if section.blocks.size == 1 %}
  27. <img src="{{ 'icon-loader-clock.svg' | asset_url }}" data-src="{{ '1470x200.png' | asset_url }}" class="width-100 lazyload" alt="{{ block.settings.image.alt }}" />
  28. {% elsif section.blocks.size == 2 %}
  29. <img src="{{ 'icon-loader-clock.svg' | asset_url }}" data-src="{{ '720x200.png' | asset_url }}" class="width-100 lazyload" alt="{{ block.settings.image.alt }}" />
  30. {% else %}
  31. <img src="{{ 'icon-loader-clock.svg' | asset_url }}" data-src="{{ '270x270.png' | asset_url }}" class="width-100 lazyload" alt="{{ block.settings.image.alt }}" />
  32. {% endif %}
  33. </a>
  34. {%- endunless -%}
  35. {%- if block.settings.action_text != blank -%}
  36. <a href="{{ block.settings.link }}" class="button index-banner-grid-button">{{ block.settings.action_text }}</a>
  37. {%- endif -%}
  38. {%- if block.settings.collection_name != blank -%}
  39. <p style="margin-top: 10%;font-size: 10px;line-height: 1;text-rendering: optimizeLegibility;overflow-wrap: break-word;"> {{ block.settings.collection_name }}</p>
  40. {%- endif -%}
  41. </div>
  42. </div>
  43. {%- endfor -%}
  44. </div>
  45. {%- endif -%}
  46. </div>
  47. </div>
  48. </div>
  49. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement