Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <section id="text-and-image-side-by-side-{{ section.id }}" class="text-and-image-side-by-side index-section" data-section-id="{{ section.id }}" data-section-type="image-section">
  2. <div class="row">
  3. <div class="desktop-6 tablet-2 mobile-2">
  4. <h2>{{section.settings.heading}}</h2>
  5. <div class="h2-border"></div>
  6. <p>{{section.settings.content}}</p>
  7. <div class="cta">
  8. <a href="{{section.settings.button_url_link}}">{{section.settings.button_text}}</a>
  9. </div>
  10. </div>
  11. <div class="desktop-6 tablet-2 mobile-2">
  12. {%- if section.settings.image -%}
  13. <img src="{{ section.settings.image | img_url: 'master' }}" />
  14. {%- else -%}
  15. {{ 'image' | placeholder_svg_tag: 'placeholder-svg' }}
  16. {%- endif -%}
  17. </div>
  18. </div>
  19.  
  20. </section>
  21.  
  22. {% schema %}
  23. {
  24. "name": "Image / Text side by side",
  25. "settings": [
  26. {
  27. "type": "text",
  28. "id": "heading",
  29. "label": "Heading",
  30. "default": "Heading here"
  31. },
  32. {
  33. "type": "textarea",
  34. "id": "content",
  35. "label": "Content here",
  36. "default": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here,"
  37. },
  38. {
  39. "type": "text",
  40. "id": "button_text",
  41. "label": "Button text here",
  42. "default": "Shop now"
  43. },
  44. {
  45. "type": "url",
  46. "id": "button_url_link",
  47. "label": "Link for button"
  48. },
  49. {
  50. "type": "image_picker",
  51. "id": "image",
  52. "label": "Image on the side"
  53. }
  54.  
  55. ],
  56. "presets": [
  57. {
  58. "name": "Image / Text side by side",
  59. "category": "Image"
  60. }
  61. ]
  62. }
  63. {% endschema %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement