b2evolution PHP Cross Reference Blogging Systems

Source: /skins/glossyblue/_item_block.inc.php - 114 lines - 3237 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'      => 'post',
  23          'image_size'        => 'fit-400x320',
  24          'content_start_excerpt' => '<div class="content_excerpt entry">',
  25          'content_end_excerpt'   => '</div>',
  26          'content_start_full'    => '<div class="content_full">',
  27          'content_end_full'      => '</div>',
  28      ), $params );
  29  
  30  ?>
  31  
  32  <div id="<?php $Item->anchor_id() ?>" class="<?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">
  33  
  34      <?php
  35          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  36  
  37      if( ! $Item->is_intro() )
  38      {
  39          ?>
  40          <div class="post-date">
  41              <span class="post-month"><?php $Item->issue_time( array(
  42                          'before'    => '',
  43                          'after'     => '',
  44                          'date_format' => 'M',
  45                      )); ?></span>
  46              <span class="post-day"><?php $Item->issue_time( array(
  47                          'before'    => '',
  48                          'after'     => '',
  49                          'date_format' => 'd',
  50                      )); ?></span>
  51          </div>
  52          <?php
  53      }
  54      ?>
  55  
  56      <div class="post-title">
  57          <?php
  58          if( $Item->status != 'published' )
  59          {
  60              $Item->status( array( 'format' => 'styled' ) );
  61          }
  62          ?>
  63          <h2><?php $Item->title(); ?></h2>
  64      <span class="post-cat"><?php
  65              $Item->categories( array(
  66                  'before'          => '',
  67                  'after'           => ' ',
  68                  'include_main'    => true,
  69                  'include_other'   => true,
  70                  'include_external'=> true,
  71                  'link_categories' => true,
  72              ) );
  73          ?></span> <span class="post-comments"><?php // Link to comments, trackbacks, etc.:
  74                  $Item->feedback_link( array(
  75                                  'link_before' => '',
  76                                  'link_after' => '',
  77                                  'link_text_zero' => '#',
  78                                  'link_text_one' => '#',
  79                                  'link_text_more' => '#',
  80                                  'link_title' => '#',
  81                                  'use_popup' => false,
  82                              ) ); ?></span>
  83      </div>
  84      <?php
  85          // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  86          skin_include( '_item_content.inc.php', $params );
  87          // Note: You can customize the default item feedback by copying the generic
  88          // /skins/_item_content.inc.php file into the current skin folder.
  89          // -------------------------- END OF POST CONTENT -------------------------
  90      ?>
  91  
  92      <p class="postmetadata alt small">
  93          <?php
  94              // List all tags attached to this post:
  95              $Item->tags( array(
  96                      'before' =>         T_('Tags').': ',
  97                      'after' =>          ' ',
  98                      'separator' =>      ', ',
  99                  ) );
 100          ?>
 101  
 102          <?php
 103              $Item->edit_link( array( // Link to backoffice for editing
 104                      'before'    => '',
 105                      'after'     => '',
 106  
 107                  ) );
 108          ?>
 109      </p>
 110  
 111      <?php
 112          locale_restore_previous();    // Restore previous locale (Blog locale)
 113      ?>
 114  </div>

title

Description

title

Description

title

Description

title

title

Body