Created
July 21, 2019 16:50
-
-
Save devdarren7/9745bf10acfa068fe362dd5b95fd3242 to your computer and use it in GitHub Desktop.
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
| {% assign tabStuff = tabStuff | split :"," %} | |
| {% if product.tags contains 'tabs_1'%} | |
| {% assign tabs = "Tasting Notes, Food Complements, Vinification" | split :"," %} | |
| {% elsif product.tags contains "tabs_2" %} | |
| {% assign tabs = "Tasting Notes, Food Complements, Vintage, Vinification, Awards" | split :"," %} | |
| {% else product.tags contains "tabs_3" %} | |
| {% assign tabs = "General, Tasting Notes, Food Complements, Awards" | split :"," %} | |
| {% endif %} | |
| {% capture tabStuff %} | |
| {{product.metafields.product.tab_1 }} | |
| {{product.metafields.product.tab_2 }}, | |
| {{product.metafields.product.tab_3 }}, | |
| {{product.metafields.product.tab_4 }}, | |
| {{product.metafields.product.tab_5 }} | |
| {% endcapture %} | |
| <div class="description user-content {% if settings.lightbox_imgs %}lightboximages{% endif %} padded-row"> <div class="product-tabs"> | |
| <ul class="tabs"> | |
| {% for tab in tabs %} | |
| <li><a href="javascript:void(0); return false;" rel="#tabcontent{{forloop.index}}" class="tab {{forloop.first}} {%if forloop.first == true %}active{% endif %}"> {{ tab }}</a></li> | |
| {% endfor %} | |
| </ul> | |
| <div class="tab_content_container"> | |
| {% for tabz in tabStuff %} | |
| <div class="tab_content {%if forloop.first == true %}tab_content_active{%endif %}" id="tabcontent{{forloop.index}}"> {{ tabz }} </div> | |
| {% endfor %} | |
| </div> | |
| </div></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment