b2evolution PHP Cross Reference Blogging Systems

Source: /skins/_posts.disp.php - 34 lines - 1326 bytes - Text - Print

Description: This is the template that displays the posts for a blog

   1  <?php
   2  /**
   3   * This is the template that displays the posts for a blog
   4   *
   5   * This file is not meant to be called directly.
   6   * It is meant to be called by an include in the main.page.php template.
   7   * To display the archive directory, you should call a stub AND pass the right parameters
   8   * For example: /blogs/index.php?disp=posts
   9   *
  10   * b2evolution - {@link http://b2evolution.net/}
  11   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  12   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
  13   *
  14   * @package evoskins
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  // --------------------------------- START OF POSTS -------------------------------------
  19  // Display message if no post:
  20  display_if_empty();
  21  
  22  while( mainlist_get_item() )
  23  {    // For each blog post, do everything below up to the closing curly brace "}"
  24  
  25      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  26      skin_include( '_item_block.inc.php', array(
  27              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  28              'image_size'     =>    'fit-400x320',
  29          ) );
  30      // ----------------------------END ITEM BLOCK  ----------------------------
  31  
  32  } // ---------------------------------- END OF POSTS ------------------------------------
  33  
  34  ?>

title

Description

title

Description

title

Description

title

title

Body