b2evolution PHP Cross Reference Blogging Systems

Source: /skins/pixelgreen/_item_block.inc.php - 155 lines - 4245 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'      => 'post',
  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      <h3 class="bTitle linked"><?php
  36          $Item->title( array(
  37              'link_type' => 'permalink'
  38              ) );
  39          if( $Item->status != 'published' )
  40          {
  41              $Item->status( array( 'format' => 'styled' ) );
  42          }
  43      ?></h3>
  44      <p><?php
  45          $Item->author( array(
  46                  'before'    => T_('by').' <strong>',
  47                  'after'     => '</strong>',
  48                  'link_text' => 'preferredname',
  49              ) );
  50          $Item->msgform_link();
  51      ?></p>
  52      <?php
  53          // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  54          skin_include( '_item_content.inc.php', $params );
  55          // Note: You can customize the default item feedback by copying the generic
  56          // /skins/_item_feedback.inc.php file into the current skin folder.
  57          // -------------------------- END OF POST CONTENT -------------------------
  58      ?>
  59  
  60      <div class="post-footer">
  61      <div class="bSmallHead">
  62      <?php
  63          $Item->categories( array(
  64              'before'          => T_('Categories').': ',
  65              'after'           => ' ',
  66              'include_main'    => true,
  67              'include_other'   => true,
  68              'include_external'=> true,
  69              'link_categories' => true,
  70          ) );
  71          // List all tags attached to this post:
  72          $Item->tags( array(
  73                  'before' =>         T_('Tags').': ',
  74                  'after' =>          '',
  75                  'separator' =>      ', ',
  76              ) );
  77          ?>
  78          <br />
  79          <?php
  80          // Permalink:
  81          $Item->permanent_link( array(
  82                  'class' => 'permalink_right',
  83                  'text' => '#icon#'
  84              ) );
  85  
  86          // Permalink:
  87          $Item->issue_date( array(
  88                  'before'    => '<span class="date">',
  89                  'after'     => ' ',
  90              ));
  91          $Item->issue_time( array(
  92                  'before'    => ' ',
  93                  'after'     => ',</span> ',
  94              ));
  95  
  96          /*$Item->wordcount();
  97          echo ' '.T_('words');*/
  98          // echo ', ';
  99          // $Item->views();
 100  
 101          /*$Item->locale_flag( array(
 102                  'before'    => ' &nbsp; ',
 103                  'after'     => '',
 104              ) );*/
 105  
 106  
 107          // Link to comments, trackbacks, etc.:
 108          $Item->feedback_link( array(
 109                          'type' => 'comments',
 110                          'link_before' => '<span class="comments">',
 111                          'link_after' => '</span>',
 112                          'link_text_zero' => '#',
 113                          'link_text_one' => '#',
 114                          'link_text_more' => '#',
 115                          'link_title' => '#',
 116                          'use_popup' => false,
 117                          'class' => 'comments'
 118                      ) );
 119  
 120          // Link to comments, trackbacks, etc.:
 121          $Item->feedback_link( array(
 122                          'type' => 'trackbacks',
 123                          'link_before' => ' &bull; ',
 124                          'link_after' => '',
 125                          'link_text_zero' => '#',
 126                          'link_text_one' => '#',
 127                          'link_text_more' => '#',
 128                          'link_title' => '#',
 129                          'use_popup' => false,
 130                      ) );
 131  
 132          $Item->edit_link( array( // Link to backoffice for editing
 133                  'before'    => ' &bull; ',
 134                  'after'     => '',
 135              ) );
 136          ?>
 137      </div>
 138      </div>
 139      <?php
 140          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 141          skin_include( '_item_feedback.inc.php', array(
 142                  'before_section_title' => '<h4>',
 143                  'after_section_title'  => '</h4>',
 144                  'author_link_text' => 'preferredname',
 145              ) );
 146          // Note: You can customize the default item feedback by copying the generic
 147          // /skins/_item_feedback.inc.php file into the current skin folder.
 148          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 149      ?>
 150  
 151      <?php
 152          locale_restore_previous();    // Restore previous locale (Blog locale)
 153      ?>
 154  
 155  </div>

title

Description

title

Description

title

Description

title

title

Body