Skip to content

Instantly share code, notes, and snippets.

@boriskaiser
Created November 26, 2012 13:33
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 boriskaiser/4148220 to your computer and use it in GitHub Desktop.
Save boriskaiser/4148220 to your computer and use it in GitHub Desktop.
<a class='ab-image' href='{$link}' title='{$title}'>
{if isset($sArticle.image.src)}
{if $sTemplate == 'listing-1col'}
<span style='background-image: url({$sArticle.image.src.2})'></span>
{else}
<span style='background-image: url({$sArticle.image.src.3})'></span>
{/if}
{else}
<span class='ab-no-image'>
<b>{s name='NoPicture' namespace='frontend/index/index'}Leider kein Bild verf&uuml;gbar{/s}</b>
</span>
{/if}
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment