Created
March 21, 2012 12:15
-
-
Save eheiser/2146555 to your computer and use it in GitHub Desktop.
NSM transplant
This file contains 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
{exp:nsm_transplant:body} {!-- allows to replace {image-1} with actual image code --} | |
{exp:channel:entries channel="topics" disable="member_data|pagination" entry_id="{embed:the_id}"} | |
<div id="info"> | |
<h3 class="png">Info / facts over {title}</h3> | |
<div> | |
<div class="def">{topic_intro}</div> | |
{topic_text} | |
{!-- looping through the matrix, caching the output --} | |
{topic_images} | |
{exp:nsm_transplant:content id="image-{row_count}"} | |
<figure class="{orientation}"> | |
{exp:ce_img:size src="{image}" max_width="{size}"} | |
<img src="{sized}" alt="{alt}" width="{width}" height="{height}" /> | |
{/exp:ce_img:size} | |
{if caption} | |
<figcaption>{caption}</figcaption> | |
{/if} | |
</figure> | |
{/exp:nsm_transplant:content} | |
{/topic_images} | |
</div> | |
</div> | |
{/exp:channel:entries} | |
{/exp:nsm_transplant:body} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment