b2evolution PHP Cross Reference Blogging Systems

Source: /skins/manual/_item_list.inc.php - 44 lines - 1607 bytes - Text - Print

Description: This is the template that displays the item block in list

   1  <?php
   2  /**

   3   * This is the template that displays the item block in list

   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 (or other templates)

   7   *

   8   * b2evolution - {@link http://b2evolution.net/}

   9   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

  10   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}

  11   *

  12   * @package evoskins

  13   * @subpackage manual

  14   */
  15  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  16  
  17  // Default params:

  18  $params = array_merge( array(
  19          'post_navigation' => 'same_category', // Always navigate through category in this skin
  20          'before_title'    => '<h3>',
  21          'after_title'     => '</h3>',
  22          'before_content'  => '<div class="excerpt">',
  23          'after_content'   => '</div>',
  24      ), $params );
  25  
  26  global $Item;
  27  
  28  ?>
  29  <li><?php
  30          $item_edit_link = $Item->get_edit_link( array(
  31                  'class' => 'roundbutton roundbutton_text',
  32              ) );
  33          $Item->title( array(
  34                  'before'          => $params['before_title'],
  35                  'after'           => $params['after_title'].$item_edit_link.'<div class="clear"></div>',
  36                  //'after'      => ' <span class="red">'.( $Item->get('order') > 0 ? $Item->get('order') : 'NULL').'</span>'.$params['after_title'].$item_edit_link.'<div class="clear"></div>',

  37                  'post_navigation' => $params['post_navigation'],
  38                  'link_class'      => 'link',
  39              ) );
  40          $Item->excerpt( array(
  41                  'before' => $params['before_content'],
  42                  'after'  => $params['after_content'],
  43              ) );
  44  ?></li>

title

Description

title

Description

title

Description

title

title

Body