b2evolution PHP Cross Reference Blogging Systems

Source: /skins/natural_pink/_item_block.inc.php - 138 lines - 3844 bytes - Text - Print

Description: This is the template that displays the item block

   1  <?php
   2  /**
   3   * This is the template that displays the item block
   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   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  global $Item;
  17  
  18  // Default params:
  19  $params = array_merge( array(
  20          'feature_block'   => false,
  21          'content_mode'    => 'auto',        // 'auto' will auto select depending on $disp-detail
  22          'item_class'      => 'bPost',
  23          'item_status_class' => 'bPost',
  24          'image_size'        => 'fit-400x320',
  25      ), $params );
  26  
  27  ?>
  28  
  29  <div id="<?php $Item->anchor_id() ?>" class="<?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">
  30  
  31      <?php
  32          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  33      ?>
  34  
  35      <div class="bSmallHead">
  36      <?php
  37          if( $Item->status != 'published' )
  38          {
  39              $Item->status( array( 'format' => 'styled' ) );
  40          }
  41          $Item->permanent_link( array(
  42                  'text' => '#icon#',
  43              ) );
  44  
  45          $Item->issue_time( array(
  46                  'before'    => ' ',
  47                  'after'     => '',
  48              ) );
  49  
  50          $Item->author( array(
  51                  'before'    => ' '.T_('by').' ',
  52                  'after'     => '',
  53                  'link_text' => 'preferredname',
  54              ) );
  55  
  56          $Item->categories( array(
  57              'before'          => ', '.T_('Categories').': ',
  58              'after'           => ' ',
  59              'include_main'    => true,
  60              'include_other'   => true,
  61              'include_external'=> true,
  62              'link_categories' => true,
  63          ) );
  64  
  65          // List all tags attached to this post:
  66          $Item->tags( array(
  67                  'before' =>         ', '.T_('Tags').': ',
  68                  'after' =>          ' ',
  69                  'separator' =>      ', ',
  70              ) );
  71      ?>
  72      </div>
  73  
  74      <h3 class="bTitle linked"><?php
  75          $Item->title( array(
  76              'link_type' => 'permalink'
  77              ) );
  78      ?></h3>
  79  
  80      <?php
  81          // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  82          skin_include( '_item_content.inc.php', $params );
  83          // Note: You can customize the default item feedback by copying the generic
  84          // /skins/_item_content.inc.php file into the current skin folder.
  85          // -------------------------- END OF POST CONTENT -------------------------
  86      ?>
  87  
  88      <div class="bSmallPrint">
  89          <?php
  90              $Item->permanent_link();
  91  
  92              // Link to comments, trackbacks, etc.:
  93              $Item->feedback_link( array(
  94                              'type' => 'comments',
  95                              'link_before' => ' &bull; ',
  96                              'link_after' => '',
  97                              'link_text_zero' => '#',
  98                              'link_text_one' => '#',
  99                              'link_text_more' => '#',
 100                              'link_title' => '#',
 101                              'use_popup' => false,
 102                          ) );
 103  
 104              // Link to comments, trackbacks, etc.:
 105              $Item->feedback_link( array(
 106                              'type' => 'trackbacks',
 107                              'link_before' => ' &bull; ',
 108                              'link_after' => '',
 109                              'link_text_zero' => '#',
 110                              'link_text_one' => '#',
 111                              'link_text_more' => '#',
 112                              'link_title' => '#',
 113                              'use_popup' => false,
 114                          ) );
 115  
 116              $Item->edit_link( array( // Link to backoffice for editing
 117                      'before'    => ' &bull; ',
 118                      'after'     => '',
 119                  ) );
 120          ?>
 121      </div>
 122  
 123      <?php
 124          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 125          skin_include( '_item_feedback.inc.php', array(
 126                  'before_section_title' => '<h4>',
 127                  'after_section_title'  => '</h4>',
 128                  'author_link_text'     => 'preferredname',
 129              ) );
 130          // Note: You can customize the default item feedback by copying the generic
 131          // /skins/_item_feedback.inc.php file into the current skin folder.
 132          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 133      ?>
 134  
 135      <?php
 136          locale_restore_previous();    // Restore previous locale (Blog locale)
 137      ?>
 138  </div>

title

Description

title

Description

title

Description

title

title

Body