Skip to content

Instantly share code, notes, and snippets.

@ChristopherDosin
Last active April 7, 2016 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChristopherDosin/c9e751ed5973def9302e to your computer and use it in GitHub Desktop.
Save ChristopherDosin/c9e751ed5973def9302e to your computer and use it in GitHub Desktop.
{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 namespace="frontend/detail" name='NewTabsDescription'}{/s}" href="#">{s namespace="frontend/detail" name='NewTabsDescription'}{/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 namespace="frontend/detail" name='NewTabsDescription'}{/s}" href="#">{s namespace="frontend/detail" name='NewTabsDescription'}{/s}</a></div>
<div class="tab--preview">{$sArticle.attr4|strip_tags|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}
{/block}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment