[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/template/smarty/plugins/ -> function.posts.php (source)

   1  <?php
   2  	function smarty_function_posts($params, &$smarty)
   3      {
   4          // we can do this since we loaded this value from within
   5          // the action
   6          $articles = $smarty->get_template_vars("articles");
   7  
   8          // go through all the posts
   9          foreach( $articles as $article ) {
  10              $smarty->assign( "post", $article );
  11              $smarty->display( "default/post.template" );
  12          }
  13      }
  14  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics