b2evolution PHP Cross Reference Blogging Systems

Source: /skins/glossyblue/page.main.php - 124 lines - 4069 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: page.main.php 3157 2013-03-06 04:34:44Z fplanque $
  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  // Display message if no post:
  59  display_if_empty();
  60  
  61  while( $Item = & mainlist_get_item() )
  62  {    // For each blog post, do everything below up to the closing curly brace "}"
  63      ?>
  64  
  65      <?php
  66          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  67          $Item->anchor(); // Anchor for permalinks to refer to.
  68      ?>
  69  
  70      <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  71  
  72          <h2><?php $Item->title(); ?></h2>
  73  
  74          <?php
  75              // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  76              skin_include( '_item_content.inc.php', array(
  77                      'image_size'    =>    'fit-400x320',
  78                  ) );
  79              // Note: You can customize the default item feedback by copying the generic
  80              // /skins/_item_feedback.inc.php file into the current skin folder.
  81              // -------------------------- END OF POST CONTENT -------------------------
  82          ?>
  83  
  84          <?php
  85              $Item->edit_link( array( // Link to backoffice for editing
  86                      'before'    => '<p>',
  87                      'after'     => '</p>',
  88                  ) );
  89          ?>
  90  
  91      </div>
  92  
  93  
  94  
  95      <?php
  96      locale_restore_previous();    // Restore previous locale (Blog locale)
  97  }
  98  ?>
  99  
 100  </div>
 101  <?php
 102  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 103  skin_include( '_sidebar.inc.php' );
 104  // Note: You can customize the default BODY footer by copying the
 105  // _body_footer.inc.php file into the current skin folder.
 106  // ----------------------------- END OF SIDEBAR -----------------------------
 107  ?>
 108  
 109  <?php
 110  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 111  skin_include( '_body_footer.inc.php' );
 112  // Note: You can customize the default BODY footer by copying the
 113  // _body_footer.inc.php file into the current skin folder.
 114  // ------------------------------- END OF FOOTER --------------------------------
 115  ?>
 116  
 117  
 118  <?php
 119  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 120  skin_include( '_html_footer.inc.php' );
 121  // Note: You can customize the default HTML footer by copying the
 122  // _html_footer.inc.php file into the current skin folder.
 123  // ------------------------------- END OF FOOTER --------------------------------
 124  ?>

title

Description

title

Description

title

Description

title

title

Body