Guest User

Untitled

a guest
Feb 2nd, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {block content}
  2. <div class="article" n:foreach="$articles as $article">
  3.     <h3>{$article->title}</h3>
  4.  
  5.     Category:
  6.     {if $article->category}
  7.         {$article->category->name}
  8.     {else}
  9.         <i>no category</i>
  10.     {/if}
  11.  
  12.     {!$article->content_html}
  13.  
  14.     Tags:
  15.     {foreach $article->tags as $tag}
  16.         {$tag->name}{sep}, {/sep}
  17.     {/foreach}
  18.     <i n:if="!count($article->tags)">no tags</i>
  19. </div>
  20. {/block}
Advertisement
Add Comment
Please, Sign In to add comment