b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body