Advertisement
Guest User

Untitled

a guest
May 30th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <hr>
  2. <div id="section-cta">
  3. <div class="section-header text-center">
  4. <h3> {{ section.settings.text-box }} </h3>
  5. </div>
  6.  
  7. {% for block in section.blocks %}
  8. <div class="btn" id="call-to-action">
  9. <a href="{{ block.settings.link }}" class="btn">{{ block.settings.linktext }}</a>
  10.  
  11. </div>
  12. {% endfor %}
  13.  
  14.  
  15. </div>
  16. <hr>
  17. {% schema %}
  18. {
  19. "name": "CTA Blocks",
  20. "max_blocks": 3,
  21. "settings": [
  22. {
  23. "id": "text-box",
  24. "type": "text",
  25. "label": "Heading",
  26. "default": "Title"
  27. }
  28. ],
  29. "blocks": [
  30. {
  31. "type": "select",
  32. "name": "Add Button",
  33. "settings": [
  34. {
  35. "id": "link",
  36. "type": "url",
  37. "label": "Button link"
  38. },
  39. {
  40. "id": "linktext",
  41. "type": "text",
  42. "label": "Button text",
  43. "default": "Click here"
  44. }
  45. ]
  46. }
  47.  
  48. ],
  49. "presets": [
  50. {
  51. "name": "Call to Action Blocks",
  52. "category": "CTA button",
  53. "blocks": [
  54. {
  55. "type": "select"
  56. },
  57. {
  58. "type": "select"
  59. }
  60. ]
  61. }
  62. ]
  63. }
  64. {% endschema %}
  65.  
  66. {% stylesheet %}
  67.  
  68. {% endstylesheet %}
  69.  
  70. {% javascript %}
  71. {% endjavascript %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement