Last active
November 19, 2017 20:01
-
-
Save celsowhite/9d84510ea5897a2c16b6f4cdb0d4ed5f to your computer and use it in GitHub Desktop.
Shopify section code for creating Otto app slideshows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Otto Slideshow Section | |
--- | |
Flexslider composed of Otto automated images. | |
Flexslider - https://woocommerce.com/flexslider/ | |
{% endcomment %} | |
<div class="flexslider"> | |
<ul class="slides"> | |
{% for block in section.blocks %} | |
{% capture location_name %}{{ block.settings.location_name }}{% endcapture %} | |
<li>{% include 'otto', location: location_name %}</li> | |
{% endfor %} | |
</ul> | |
</div> | |
{% schema %} | |
{ | |
"name": "Otto Slideshow", | |
"settings": [ | |
{ | |
"type": "paragraph", | |
"content": "Otto app slideshow of automated images. The images, link and alt information are set and editted through the Otto app in your dashboard. For each location name add the slugified location name we provide in the Otto app." | |
} | |
], | |
"blocks" : [ | |
{ | |
"type": "location", | |
"name": "Location", | |
"settings": [ | |
{ | |
"type": "text", | |
"id": "location_name", | |
"label": "Location Name" | |
} | |
] | |
} | |
], | |
"presets": [ | |
{ | |
"name": "Otto Slideshow", | |
"category": "Image" | |
} | |
] | |
} | |
{% endschema %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment