Skip to content

Instantly share code, notes, and snippets.

@samarpanda
Created November 18, 2012 10:20
Show Gist options
  • Save samarpanda/4104469 to your computer and use it in GitHub Desktop.
Save samarpanda/4104469 to your computer and use it in GitHub Desktop.
Updated & Previous file
<icons>
{% for icon in icons %}
{% set iconObj = icon['iconObj'] %}
<icon id="{{iconObj.Slug}}{{loop.index}}" title="{{iconObj.DisplayName}}">
<title><![CDATA[{{icon['big_title']}}]]></title>
<subtitle><![CDATA[{{icon['small_title']}}]]></subtitle>
<greencopy><![CDATA[{{icon['green_desc']|raw}}]]></greencopy>
<copy1><![CDATA[{{icon['long_desc']|raw}}]]></copy1>
{% set gallery = icon['imgGallery'] %}
{% if gallery and gallery.images|length > 0 %}
<gallery>
{% for image in gallery.images %}
<img id="gallery{{iconObj.Slug}}{{loop.index0}}" />
{% endfor %}
</gallery>
{% else %}
<gallery />
{% endif %}
</icon>
{% endfor %}
</icons>
<viewframe>{{viewframe}}</viewframe>
<videoframe>{{videoframe}}</videoframe>
{% for icon in icons %}
{% set iconObj = icon['iconObj'] %}
{% if iconObj.IconSwf %}
<asset id="iconSwf{{iconObj.Slug}}{{loop.index}}" src="{{iconObj.IconSwf}}"/>
{% endif %}
{% if icon['large_img'] %}
<asset id="bOverImg{{iconObj.Slug}}{{loop.index}}" src="{{icon['large_img']}}"/>
{% endif %}
{% if icon['big_swf'] %}
<asset id="bOverSwf{{iconObj.Slug}}{{loop.index}}" src="{{icon['big_swf']}}" />
{% endif %}
{% set gallery = icon['imgGallery'] %}
{% if gallery and gallery.images|length > 0 %}
{% for image in gallery.images %}
<asset id="gallery{{iconObj.Slug}}{{loop.index0}}" src="{{image.Source}}" />
{% endfor %}
{% endif %}
{% endfor %}
<icons>
{% for icon in icons %}
{% set iconObj = icon['iconObj'] %}
<icon id="{{iconObj.Slug}}{{loop.index}}" title="{{iconObj.DisplayName}}">
<title><![CDATA[{{icon['big_title']}}]]></title>
<subtitle><![CDATA[{{icon['small_title']}}]]></subtitle>
<greencopy><![CDATA[{{icon['green_desc']|raw}}]]></greencopy>
<copy1><![CDATA[{{icon['long_desc']|raw}}]]></copy1>
{% set gallery = icon['imgGallery'] %}
{% if gallery and gallery.images|length > 0 %}
<gallery>
{% for image in gallery.images %}
<img id="gallery{{iconObj.Slug}}{{loop.index0}}" />
{% endfor %}
</gallery>
{% else %}
<gallery />
{% endif %}
</icon>
{% endfor %}
</icons>
<viewframe>{{viewframe}}</viewframe>
<videoframe>{{videoframe}}</videoframe>
{% for icon in icons %}
{% set iconObj = icon['iconObj'] %}
{% if iconObj.IconSwf %}
<asset id="iconSwf{{iconObj.Slug}}{{loop.index}}" src="{{iconObj.IconSwf}}"/>
{% endif %}
{% if icon['large_img'] %}
<asset id="bOverImg{{iconObj.Slug}}{{loop.index}}" src="{{icon['large_img']}}"/>
{% endif %}
{% if icon['big_swf'] %}
<asset id="bOverSwf{{iconObj.Slug}}{{loop.index}}" src="{{icon['big_swf']}}" />
{% endif %}
{% set gallery = icon['imgGallery'] %}
{% set iconGalleryId = loop.index %}
{% if gallery and gallery.images|length > 0 %}
{% for image in gallery.images %}
<asset id="gallery{{iconObj.Slug}}{{iconGalleryId}}{{loop.index0}}" src="{{image.Source}}" />
{% endfor %}
{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment