b2evolution PHP Cross Reference Blogging Systems

Source: /skins/manual/_cat_list.inc.php - 49 lines - 1458 bytes - Text - Print

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

   1  <?php
   2  /**

   3   * This is the template that displays the chapter 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          'Chapter'        => NULL,
  20          'before_title'   => '<h3>',
  21          'after_title'    => '</h3>',
  22          'before_content' => '<div>',
  23          'after_content'  => '</div>',
  24      ), $params );
  25  
  26  $Chapter = & $params['Chapter'];
  27  
  28  if( !empty( $Chapter ) )
  29  {    // Display chapter
  30  ?>
  31  <li class="chapter"><?php
  32  
  33      echo $params['before_title'];
  34  
  35      ?><a href="<?php echo $Chapter->get_permanent_url(); ?>" class="link"><?php echo $Chapter->dget( 'name' ); ?></a><?php
  36  
  37      //echo ' <span class="red">'.( $Chapter->get( 'order' )> 0? $Chapter->get( 'order' ) : 'NULL').'</span>'.$params['after_title'];

  38      echo $params['after_title'];
  39  
  40      if( $Chapter->dget( 'description' ) != '' )
  41      {    // Display chapter description
  42          echo $params['before_content']
  43              .$Chapter->dget( 'description' )
  44              .$params['after_content'];
  45      }
  46  ?></li>
  47  <?php
  48  }
  49  ?>

title

Description

title

Description

title

Description

title

title

Body