b2evolution PHP Cross Reference Blogging Systems

Source: /skins/asevo/_item_block.inc.php - 152 lines - 4142 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'       => 'evo_post',
  23          'image_size'         => 'fit-400x320',
  24          'author_link_text' => 'preferredname',
  25      ), $params );
  26  
  27  echo '<div id="styled_content_block">'; // Beginning of post display
  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      <?php
  36          $Item->edit_link( array( // Link to backoffice for editing
  37                  'before'    => ' ',
  38                  'after'     => ' ',
  39                  'class'     => 'floatright small'
  40              ) );
  41      ?>
  42  
  43      <h1 class="evo_post_title"><?php
  44          $Item->title( array(
  45                  'link_type' => 'permalink'
  46              ) );
  47      ?></h1>
  48  
  49      <div class="evo_post_head">
  50      <?php
  51          if( $Item->status != 'published' )
  52          {
  53              $Item->status( array( 'format' => 'styled' ) );
  54          }
  55          $Item->permanent_link( array(
  56                  'text' => '#icon#',
  57              ) );
  58  
  59          $Item->issue_date( array(
  60                  'before'      => ' ',
  61                  'after'       => ' ',
  62                  'date_format' => '#',
  63              ) );
  64  
  65          $Item->issue_time( array(
  66                  'after'       => '',
  67                  'time_format' => 'H:i',
  68              ) );
  69  
  70          $Item->author( array(
  71                  'before'    => ', '.T_('by').' ',
  72                  'after'     => '',
  73                  'link_text' => $params['author_link_text'],
  74              ) );
  75  
  76          $Item->categories( array(
  77              'before'          => ', '.T_('Categories').': ',
  78              'after'           => ' ',
  79              'include_main'    => true,
  80              'include_other'   => true,
  81              'include_external'=> true,
  82              'link_categories' => true,
  83          ) );
  84  
  85          // List all tags attached to this post:
  86          $Item->tags( array(
  87                  'before' =>         ', '.T_('Tags').': ',
  88                  'after' =>          ' ',
  89                  'separator' =>      ', ',
  90              ) );
  91      ?>
  92      </div>
  93  
  94      <?php
  95          // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  96          skin_include( '_item_content.inc.php', $params );
  97          // Note: You can customize the default item feedback by copying the generic
  98          // /skins/_item_content.inc.php file into the current skin folder.
  99          // -------------------------- END OF POST CONTENT -------------------------
 100      ?>
 101  
 102      <div class="evo_post_foot">
 103          <?php
 104              // Link to comments, trackbacks, etc.:
 105              $Item->feedback_link( array(
 106                              'type' => 'comments',
 107                              'link_before' => '',
 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          <?php
 117              // Link to comments, trackbacks, etc.:
 118              $Item->feedback_link( array(
 119                              'type' => 'trackbacks',
 120                              'link_before' => ' &bull; ',
 121                              'link_after' => '',
 122                              'link_text_zero' => '#',
 123                              'link_text_one' => '#',
 124                              'link_text_more' => '#',
 125                              'link_title' => '#',
 126                              'use_popup' => false,
 127                          ) );
 128           ?>
 129      </div>
 130  
 131      <?php
 132          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 133          skin_include( '_item_feedback.inc.php', array(
 134                  'before_section_title' => '<h4>',
 135                  'after_section_title'  => '</h4>',
 136                  'author_link_text' => $params['author_link_text'],
 137              ) );
 138          // Note: You can customize the default item feedback by copying the generic
 139          // /skins/_item_feedback.inc.php file into the current skin folder.
 140          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 141      ?>
 142  
 143      <?php
 144          locale_restore_previous();    // Restore previous locale (Blog locale)
 145      ?>
 146  </div>
 147  
 148  <?php
 149  
 150  echo '</div>'; // End of post display 
 151  
 152  ?>

title

Description

title

Description

title

Description

title

title

Body