b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body