b2evolution PHP Cross Reference Blogging Systems

Source: /skins/touch/_item_block.inc.php - 120 lines - 3762 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   * @subpackage touch

  14   */
  15  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  16  
  17  global $Item;
  18  
  19  // Default params:

  20  $params = array_merge( array(
  21          'feature_block'   => false,
  22          'content_mode'    => 'auto',        // 'auto' will auto select depending on $disp-detail
  23          'item_class'      => 'post',
  24          'image_size'        => 'fit-400x320',
  25      ), $params );
  26  
  27  ?>
  28  <div class="post" id="<?php $Item->anchor_id() ?>" lang="<?php $Item->lang() ?>">
  29  
  30      <?php if( $Item->is_intro() ) { ?>
  31      <div class="sticky-icon"></div>
  32      <?php } ?>
  33  
  34      <?php
  35          if( ! $Item->is_intro() )
  36          {    // Link to comments, trackbacks, etc.:
  37              $Item->feedback_link( array(
  38                      'type' => 'feedbacks',
  39                      'link_before' => '<div class="comment-bubble">',
  40                      'link_after' => '</div>',
  41                      'link_text_zero' => '',
  42                      'link_text_one' => '1',
  43                      'link_text_more' => '%d',
  44                      'link_title' => '',
  45                      'use_popup' => false,
  46                  ) );
  47          }
  48      ?>
  49  
  50      <a class="post-arrow" id="arrow-<?php echo $Item->ID; ?>" href="javascript:"></a>
  51  
  52      <div class="calendar">
  53          <div class="cal-month month-<?php $Item->issue_time( array( 'time_format' => 'm', 'before' => '', 'after' => '' ) ); ?>"><?php $Item->issue_time( array( 'time_format' => 'M', 'before' => '', 'after' => '' ) ); ?></div>
  54          <div class="cal-date"><?php $Item->issue_time( array( 'time_format' => 'j', 'before' => '', 'after' => '' ) ); ?></div>
  55      </div>
  56  
  57      <?php
  58          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)

  59      ?>
  60  
  61      <?php
  62          if( ! $Item->is_intro() )
  63          {    // Display only if we're not displaying an intro post:
  64              $Item->edit_link( array( // Link to backoffice for editing
  65                      'before' => '<div class="post-actions">',
  66                      'after'  => '</div>',
  67                  ) );
  68          }
  69      ?>
  70      <?php
  71          $Item->title( array(
  72                  'before'     => '<h2 class="post-title">',
  73                  'after'      => '</h2>',
  74              ) );
  75      ?>
  76  
  77      <div class="post-author">
  78          <span class="lead">By</span> <?php $Item->author( array( 'link_text' => 'preferredname' ) ) ?><br />
  79  
  80      <?php
  81          if( ! $Item->is_intro() )
  82          {    // Display only if we're not displaying an intro post:
  83              $Item->categories( array(
  84                  'before'          => '<span class="lead">'.T_('Categories').'</span> ',
  85                  'after'           => '<br />',
  86                  'include_main'    => true,
  87                  'include_other'   => true,
  88                  'include_external'=> true,
  89                  'link_categories' => true,
  90              ) );
  91          }
  92      ?>
  93  
  94      <?php
  95          // List all tags attached to this post:

  96          $Item->tags( array(
  97                  'before' =>         '<span class="lead">'.T_('Tags').':</span>',
  98                  'after' =>          '',
  99                  'separator' =>      ', ',
 100              ) );
 101      ?>
 102      </div>
 103  
 104  <div class="clearer"></div>
 105  
 106  <div id="entry-<?php echo $Item->ID ?>" style="display:none" class="mainentry left-justified">
 107      <?php
 108          // ---------------------- POST CONTENT INCLUDED HERE ----------------------

 109          skin_include( '_item_content.inc.php', $params );
 110          // Note: You can customize the default item content by copying the generic

 111          // /skins/_item_content.inc.php file into the current skin folder.

 112          // -------------------------- END OF POST CONTENT -------------------------

 113      ?>
 114  </div>
 115      <div class="clearer"></div>
 116  </div>
 117  
 118  <?php
 119  locale_restore_previous();    // Restore previous locale (Blog locale)

 120  ?>

title

Description

title

Description

title

Description

title

title

Body