{html_head} {literal} {/literal} {/html_head} {assign var=derivative value=$pwg->derivative($stripped.imageSize, $current.src_image)} {assign var='size' value=$derivative->get_size()} {literal} {/literal}
 
{assign var='display_description_tab' value=false} {if (!($stripped.showDescriptionInsteadOfTitle) && isset($COMMENT_IMG))} {assign var='display_description_tab' value=true} {/if} {assign var='showTitle' value=false} {if isset($COMMENT_IMG) and $stripped.imageCaption == 'description'} {assign var='showTitle' value=true} {/if} {if isset($current.TITLE) and $stripped.imageCaption == 'title'} {assign var='showTitle' value=true} {/if}
{if (isset($previous) && $stripped.navArrows) }   {/if}
{$ELEMENT_CONTENT}
{if (isset($next) && $stripped.navArrows)}   {/if}
{if $showTitle }
{if ($stripped.imageCaption == 'description' )} {$COMMENT_IMG|strip_tags:false} {/if} {if ($stripped.imageCaption == 'title' )} {$current.TITLE} {/if}
{/if}