[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/skins/ -> _item_content.inc.php (source)

   1  <?php
   2  /**

   3   * This is the template that displays the contents for a post

   4   * (images, teaser, more link, body, etc...)

   5   *

   6   * This file is not meant to be called directly.

   7   * It is meant to be called by an include in the main.page.php template (or other templates)

   8   *

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

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

  11   * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}

  12   *

  13   * @package evoskins

  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          'image_size'         => 'fit-400x320',
  20          'before_more_link' => '<p class="bMore">',
  21          'after_more_link'  => '</p>',
  22          'more_link_text'   => '#',
  23      ), $params );
  24  
  25  
  26  if( !empty($params['image_size']) )
  27  {
  28      // Display images that are linked to this post:

  29      $Item->images( array(
  30              'before' =>              '<div class="bImages">',
  31              'before_image' =>        '<div class="image_block">',
  32              'before_image_legend' => '<div class="image_legend">',
  33              'after_image_legend' =>  '</div>',
  34              'after_image' =>         '</div>',
  35              'after' =>               '</div>',
  36              'image_size' =>                     $params['image_size'],
  37          ) );
  38  }
  39  ?>
  40  
  41  <div class="bText">
  42      <?php
  43          // Increment view count of first post on page:

  44          $Item->count_view( array(
  45                  'allow_multiple_counts_per_page' => false,
  46              ) );
  47  
  48          // Display CONTENT:

  49          $Item->content_teaser( array(
  50                  'before'      => '',
  51                  'after'       => '',
  52              ) );
  53          $Item->more_link( array(
  54                  'before'    => $params['before_more_link'],
  55                  'after'     => $params['after_more_link'],
  56                  'link_text' => $params['more_link_text'],
  57              ) );
  58          $Item->content_extension( array(
  59                  'before'      => '',
  60                  'after'       => '',
  61              ) );
  62  
  63          // Links to post pages (for multipage posts):

  64          $Item->page_links( '<p class="right">'.T_('Pages:').' ', '</p>', ' &middot; ' );
  65      ?>
  66  </div>
  67  
  68  <?php
  69  /*

  70   * $Log: _item_content.inc.php,v $

  71   * Revision 1.4  2007/11/04 01:10:57  fplanque

  72   * skin cleanup continued

  73   *

  74   * Revision 1.3  2007/09/28 02:18:10  fplanque

  75   * minor

  76   *

  77   * Revision 1.2  2007/06/24 01:05:31  fplanque

  78   * skin_include() now does all the template magic for skins 2.0.

  79   * .disp.php templates still need to be cleaned up.

  80   *

  81   * Revision 1.1  2007/06/23 22:09:29  fplanque

  82   * feedback and item content templates.

  83   * Interim check-in before massive changes ahead.

  84   *

  85   */
  86  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics