b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body