b2evolution PHP Cross Reference Blogging Systems

Source: /skins/glossyblue/posts.main.php - 141 lines - 4936 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: posts.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, '3.0' ) < 0 )
  19  { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  20      die( 'This skin is designed for b2evolution 3.0 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  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  29  skin_include( '_html_header.inc.php' );
  30  // Note: You can customize the default HTML header by copying the generic
  31  // /skins/_html_header.inc.php file into the current skin folder.
  32  // -------------------------------- END OF HEADER --------------------------------
  33  ?>
  34  
  35  
  36  <?php
  37  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  38  skin_include( '_body_header.inc.php' );
  39  // Note: You can customize the default BODY heder by copying the generic
  40  // /skins/_body_footer.inc.php file into the current skin folder.
  41  // ------------------------------- END OF FOOTER --------------------------------
  42  ?>
  43  
  44  
  45  <div id="content" >
  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  <?php
  57      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  58      request_title( array(
  59              'title_before'=> '<h2>',
  60              'title_after' => '</h2>',
  61              'title_none'  => '',
  62              'glue'        => ' - ',
  63              'title_single_disp' => true,
  64              'format'      => 'htmlbody',
  65          ) );
  66      // ------------------------------ END OF REQUEST TITLE -----------------------------
  67  ?>
  68  
  69  <?php
  70  // Go Grab the featured post:
  71  if( $Item = & get_featured_Item() )
  72  {    // We have a featured/intro post to display:
  73      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  74      skin_include( '_item_block.inc.php', array(
  75              'feature_block' => true,
  76              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  77              'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
  78              'item_class'   => 'featured_post',
  79              'image_size'     =>    'fit-400x320',
  80          ) );
  81      // ----------------------------END ITEM BLOCK  ----------------------------
  82  }
  83  ?>
  84  
  85  <?php
  86  // Display message if no post:
  87  display_if_empty();
  88  
  89  echo '<div id="styled_content_block">'; // Beginning of posts display
  90  while( $Item = & mainlist_get_item() )
  91  {    // For each blog post:
  92      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  93      skin_include( '_item_block.inc.php', array(
  94              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  95              'image_size'     =>    'fit-400x320',
  96          ) );
  97      // ----------------------------END ITEM BLOCK  ----------------------------
  98  }
  99  echo '</div>'; // End of posts display
 100  ?>
 101  
 102  <?php
 103      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 104      mainlist_page_links( array(
 105              'block_start' => '<div class="navigation">',
 106              'block_end' => '</div>',
 107              'prev_text' => '&lt;&lt;',
 108              'next_text' => '&gt;&gt;',
 109          ) );
 110      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 111  ?>
 112  
 113  
 114  </div>
 115  
 116  
 117  <?php
 118  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 119  skin_include( '_sidebar.inc.php' );
 120  // Note: You can customize the default BODY footer by copying the
 121  // _body_footer.inc.php file into the current skin folder.
 122  // ----------------------------- END OF SIDEBAR -----------------------------
 123  ?>
 124  
 125  
 126  <?php
 127  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 128  skin_include( '_body_footer.inc.php' );
 129  // Note: You can customize the default BODY footer by copying the
 130  // _body_footer.inc.php file into the current skin folder.
 131  // ------------------------------- END OF FOOTER --------------------------------
 132  ?>
 133  
 134  
 135  <?php
 136  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 137  skin_include( '_html_footer.inc.php' );
 138  // Note: You can customize the default HTML footer by copying the
 139  // _html_footer.inc.php file into the current skin folder.
 140  // ------------------------------- END OF FOOTER --------------------------------
 141  ?>

title

Description

title

Description

title

Description

title

title

Body