Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{extends file="parent:frontend/detail/tabs.tpl"}
{* New tab *}
{block name="frontend_detail_tabs_description" append}
{if $sArticle.attr4}
<a class="tab--link" title="{s name='NewTabsDescription'}{/s}" href="#">{s name='NewTabsDescription'}{/s}</a>
{/if}
{if $sArticle.attr5}
<a class="tab--link" title="{s name='Tab2TabsDescription'}{/s}" href="#">{s name='Tab2TabsDescription'}{/s}</a>
{/if}
{/block}
{* New Tab container *}
{block name="frontend_detail_tabs_content_description" append}
{if $sArticle.attr4}
<div class="tab--container">
<div class="tab--header"><a class="tab--title" title="{s name='NewTabsDescription'}{/s}" href="#">{s name='NewTabsDescription'}{/s}</a></div>
<div class="tab--preview">{$sArticle.attr4|truncate:100:'...'}<a href="#" class="tab--link" title="{s name="PreviewTextMore"}{/s}">{s name="PreviewTextMore"}{/s}</a></div>
<div class="tab--content">{include file="frontend/detail/tabs/new.tpl"}</div>
</div>
{/if}
{if $sArticle.attr5}
<div class="tab--container">
<div class="tab--header"><a class="tab--title" title="{s name='Tab2TabsDescription'}{/s}" href="#">{s name='Tab2TabsDescription'}{/s}</a></div>
<div class="tab--preview">{$sArticle.attr5|truncate:100:'...'}<a href="#" class="tab--link" title="{s name="PreviewTextMore"}{/s}">{s name="PreviewTextMore"}{/s}</a></div>
<div class="tab--content">{include file="frontend/detail/tabs/tab2.tpl"}</div>
</div>
{/if}
{/block}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.