[ Index ] |
|
Code source de LifeType 1.2.4 |
1 {assign var="OnMainPage" value=1} 2 {include file="$blogtemplate/header.template"} 3 4 {if $category}<h2>{$locale->tr("category")}: {$category->getName()}</h2>{/if} 5 6 {foreach from=$posts item=post} 7 {if $showAll | 1 && $category} 8 <!-- showing only the topic of the post, in case we have too many! --> 9 <h3><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h3> 10 <div> 11 {$post->getText()|strip_tags|truncate:300:"...":false} 12 </div> 13 14 <p class="footer"> 15 {foreach name=categories from=$post->getCategories() item=postCategory} 16 <a href="{$url->categoryLink($postCategory)}">{$postCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if} 17 {/foreach} 18 </p> 19 {else} 20 <!-- show the whole post, as we would normally do --> 21 {include file="$blogtemplate/post.template"} 22 {/if} 23 {/foreach} 24 25 {include file="$blogtemplate/footer.template"}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |