b2evolution PHP Cross Reference Blogging Systems

Source: /skins/glossyblue/single.main.php - 206 lines - 6713 bytes - Text - Print

Description: This is the main/default page template.

   1  <?php
   2  /**
   3   * This is the main/default page template.
   4   *
   5   * For a quick explanation of b2evo 2.0 skins, please start here:
   6   * {@link http://b2evolution.net/man/skin-structure}
   7   *
   8   * The main page template is used to display the blog when no specific page template is available
   9   * to handle the request (based on $disp).
  10   *
  11   * @package evoskins
  12   * @subpackage glossyblue
  13   *
  14   * @version $Id: single.main.php 4275 2013-07-17 10:52:24Z yura $
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  if( version_compare( $app_version, '2.4.1' ) < 0 )
  19  { // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
  20      die( 'This skin is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  21  }
  22  
  23  // This is the main template; it may be used to display very different things.
  24  // Do inits depending on current $disp:
  25  skin_init( $disp );
  26  
  27  
  28  skin_include( '_html_header.inc.php' );
  29  // Note: You can customize the default HTML header by copying the generic
  30  // /skins/_html_header.inc.php file into the current skin folder.
  31  // -------------------------------- END OF HEADER --------------------------------
  32  ?>
  33  
  34  
  35  <?php
  36  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  37  skin_include( '_body_header.inc.php' );
  38  // Note: You can customize the default BODY heder by copying the generic
  39  // /skins/_body_footer.inc.php file into the current skin folder.
  40  // ------------------------------- END OF FOOTER --------------------------------
  41  ?>
  42  
  43  
  44  <div id="content" >
  45  
  46  
  47  <?php
  48      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  49      messages( array(
  50              'block_start' => '<div class="action_messages">',
  51              'block_end'   => '</div>',
  52          ) );
  53      // --------------------------------- END OF MESSAGES ---------------------------------
  54  ?>
  55  
  56  
  57  <?php
  58      // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
  59      item_prevnext_links( array(
  60              'block_start' => '<table class="prevnext_post"><tr>',
  61              'prev_start'  => '<td>',
  62              'prev_end'    => '</td>',
  63              'next_start'  => '<td class="right">',
  64              'next_end'    => '</td>',
  65              'block_end'   => '</tr></table>',
  66          ) );
  67      // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
  68  ?>
  69  
  70  
  71  <?php
  72  // Display message if no post:
  73  display_if_empty();
  74  
  75  echo '<div id="styled_content_block">'; // Beginning of posts display
  76  while( $Item = & mainlist_get_item() )
  77  {    // For each blog post, do everything below up to the closing curly brace "}"
  78      ?>
  79  
  80      <?php
  81          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  82          $Item->anchor(); // Anchor for permalinks to refer to.
  83      ?>
  84  
  85      <div id="post-<?php $Item->ID() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  86          <div class="post-date">
  87              <span class="post-month"><?php $Item->issue_time( array(
  88                          'before'    => '',
  89                          'after'     => '',
  90                          'date_format' => 'M',
  91                      )); ?></span>
  92              <span class="post-day"><?php $Item->issue_time( array(
  93                          'before'    => '',
  94                          'after'     => '',
  95                          'date_format' => 'd',
  96                      )); ?></span>
  97          </div>
  98          <div class="post-title">
  99              <?php
 100              if( $Item->status != 'published' )
 101              {
 102                  $Item->status( array( 'format' => 'styled' ) );
 103              }
 104              ?>
 105              <h2><?php
 106                  $Item->title( array(
 107                      'link_type' => 'permalink'
 108                      ) );
 109              ?></h2>
 110          <?php
 111                  $Item->categories( array(
 112                      'before'          => '<span class="post-cat">',
 113                      'after'           => '</span>',
 114                      'include_main'    => true,
 115                      'include_other'   => true,
 116                      'include_external'=> true,
 117                      'link_categories' => true,
 118                  ) );
 119              // Link to comments, trackbacks, etc.:
 120                  $Item->feedback_link( array(
 121                      'link_before' => '<span class="mini-add-comment">',
 122                      'link_after' => '</span>',
 123                      'link_text_zero' => T_('Add comments'),
 124                      'link_text_one' => T_('Add comments'),
 125                      'link_text_more' => T_('Add comments'),
 126                      'link_title' => '#',
 127                      'use_popup' => false,
 128                      'show_in_single_mode' => true
 129                  ) ); ?>
 130          </div>
 131  
 132          <?php
 133              // ---------------------- POST CONTENT INCLUDED HERE ----------------------
 134              skin_include( '_item_content.inc.php', array(
 135                      'image_size'    =>    'fit-400x320',
 136                  ) );
 137              // Note: You can customize the default item feedback by copying the generic
 138              // /skins/_item_feedback.inc.php file into the current skin folder.
 139              // -------------------------- END OF POST CONTENT -------------------------
 140          ?>
 141  
 142          <p class="postmetadata alt small">
 143                  <?php
 144                      // List all tags attached to this post:
 145                      $Item->tags( array(
 146                              'before' =>         ' '.T_('Tags').': ',
 147                              'after' =>          ' ',
 148                              'separator' =>      ', ',
 149                          ) );
 150                  ?>
 151                  <!-- You can follow any responses to this entry through the RSS feed. -->
 152                  <?php
 153                      $Item->edit_link( array( // Link to backoffice for editing
 154                              'before'    => '',
 155                              'after'     => '',
 156  
 157                          ) );
 158                  ?>
 159          </p>
 160  
 161      </div>
 162  
 163  
 164      <?php
 165          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 166          skin_include( '_item_feedback.inc.php', array(
 167                  'before_section_title' => '<h3>',
 168                  'after_section_title'  => '</h3>',
 169                  'author_link_text'     => 'preferredname',
 170              ) );
 171          // Note: You can customize the default item feedback by copying the generic
 172          // /skins/_item_feedback.inc.php file into the current skin folder.
 173          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 174      ?>
 175  
 176      <?php
 177      locale_restore_previous();    // Restore previous locale (Blog locale)
 178  }
 179  echo '</div>'; // End of posts display
 180  ?>
 181  
 182  </div>
 183  <?php
 184  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 185  skin_include( '_sidebar.inc.php' );
 186  // Note: You can customize the default BODY footer by copying the
 187  // _body_footer.inc.php file into the current skin folder.
 188  // ----------------------------- END OF SIDEBAR -----------------------------
 189  ?>
 190  
 191  <?php
 192  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 193  skin_include( '_body_footer.inc.php' );
 194  // Note: You can customize the default BODY footer by copying the
 195  // _body_footer.inc.php file into the current skin folder.
 196  // ------------------------------- END OF FOOTER --------------------------------
 197  ?>
 198  
 199  
 200  <?php
 201  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 202  skin_include( '_html_footer.inc.php' );
 203  // Note: You can customize the default HTML footer by copying the
 204  // _html_footer.inc.php file into the current skin folder.
 205  // ------------------------------- END OF FOOTER --------------------------------
 206  ?>

title

Description

title

Description

title

Description

title

title

Body