b2evolution PHP Cross Reference Blogging Systems

Source: /skins/terrafirma/_item_block.inc.php - 145 lines - 3865 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          'image_size'        => 'fit-400x320',
  24      ), $params );
  25  
  26  ?>
  27  
  28  <div id="<?php $Item->anchor_id() ?>" class="<?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">
  29  
  30      <?php
  31          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  32      ?>
  33  
  34      <div class="bSmallHead">
  35      <div class="date">
  36      <?php
  37          $Item->author( array(
  38                  'before'    => '<em class="user">',
  39                  'after'     => '</em><br />',
  40                  'link_text' => 'preferredname',
  41              ) );
  42  
  43          $Item->issue_date( array(
  44                  'before'    => '<em class="bPostdate">',
  45                  'after'     => '</em>',
  46              ) );
  47      ?>
  48      </div>
  49      <h2 class="bTitle"><?php
  50          $Item->title( array(
  51              'link_type' => 'permalink'
  52              ) );
  53      ?></h2>
  54      </div>
  55      <?php
  56      if( $Item->status != 'published' )
  57      {
  58          $Item->status( array( 'format' => 'styled' ) );
  59      }
  60      ?>
  61  
  62      <?php
  63          // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  64          skin_include( '_item_content.inc.php', $params );
  65          // Note: You can customize the default item feedback by copying the generic
  66          // /skins/_item_feedback.inc.php file into the current skin folder.
  67          // -------------------------- END OF POST CONTENT -------------------------
  68      ?>
  69  
  70      <?php
  71          // List all tags attached to this post:
  72          $Item->tags( array(
  73                  'before' =>         '<div class="post-tags">'.T_('Tags').': ',
  74                  'after' =>          '</div>',
  75                  'separator' =>      ', ',
  76              ) );
  77      ?>
  78  
  79      <div class="bSmallPrint">
  80          <ul>
  81          <?php
  82          $Item->edit_link( array( // Link to backoffice for editing
  83              'before'    => '<li>',
  84              'after'     => '</li>',
  85          ) ); ?>
  86  
  87          <li class="readmore">
  88          <?php
  89          $Item->categories( array(
  90              'before'          => '',
  91              'after'           => '',
  92              'include_main'    => true,
  93              'include_other'   => true,
  94              'include_external'=> true,
  95              'link_categories' => true,
  96          ) );
  97           ?>
  98          </li>
  99          <li class="comments">
 100          <?php
 101          // Link to comments, trackbacks, etc.:
 102          $Item->feedback_link( array(
 103                          'type' => 'comments',
 104                          'link_before' => '',
 105                          'link_after' => '',
 106                          'link_text_zero' => '#',
 107                          'link_text_one' => '#',
 108                          'link_text_more' => '#',
 109                          'link_title' => '#',
 110                          'use_popup' => false,
 111                      ) );
 112  
 113          // Link to comments, trackbacks, etc.:
 114          $Item->feedback_link( array(
 115                          'type' => 'trackbacks',
 116                          'link_before' => ' &bull; ',
 117                          'link_after' => '',
 118                          'link_text_zero' => '#',
 119                          'link_text_one' => '#',
 120                          'link_text_more' => '#',
 121                          'link_title' => '#',
 122                          'use_popup' => false,
 123                      ) );
 124          ?>
 125          </li>
 126          </ul>
 127          </div>
 128  
 129      <?php
 130          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 131          skin_include( '_item_feedback.inc.php', array(
 132                  'before_section_title' => '<h3>',
 133                  'after_section_title'  => '</h3>',
 134                  'author_link_text'     => 'preferredname',
 135              ) );
 136          // Note: You can customize the default item feedback by copying the generic
 137          // /skins/_item_feedback.inc.php file into the current skin folder.
 138          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 139      ?>
 140  
 141      <?php
 142          locale_restore_previous();    // Restore previous locale (Blog locale)
 143      ?>
 144  
 145  </div>

title

Description

title

Description

title

Description

title

title

Body