b2evolution PHP Cross Reference Blogging Systems

Source: /skins/colourise/page.main.php - 124 lines - 4387 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 evopress
  13   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  if( version_compare( $app_version, '4.0.0-dev' ) < 0 )
  17  { // 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.
  18      die( 'This skin is designed for b2evolution 4.0.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  19  }
  20  
  21  // This is the main template; it may be used to display very different things.
  22  // Do inits depending on current $disp:
  23  skin_init( $disp );
  24  
  25  
  26  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  27  skin_include( '_html_header.inc.php' );
  28  // Note: You can customize the default HTML header by copying the generic
  29  // /skins/_html_header.inc.php file into the current skin folder.
  30  // -------------------------------- END OF HEADER --------------------------------
  31  ?>
  32  
  33  
  34  <?php
  35  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  36  skin_include( '_body_header.inc.php' );
  37  // Note: You can customize the default BODY header by copying the generic
  38  // /skins/_body_footer.inc.php file into the current skin folder.
  39  // ------------------------------- END OF HEADER --------------------------------
  40  ?>
  41  
  42  
  43  <div id="content-wrap">
  44  <div id="main">
  45  <?php
  46      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  47      messages( array(
  48              'block_start' => '<div class="action_messages">',
  49              'block_end'   => '</div>',
  50          ) );
  51      // --------------------------------- END OF MESSAGES ---------------------------------
  52  ?>
  53  
  54  <?php
  55  // Go Grab the featured post:
  56  if( $Item = & get_featured_Item() )
  57  {    // We have a featured/intro post to display:
  58      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  59      skin_include( '_item_block.inc.php', array(
  60              'feature_block' => true,
  61              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  62              'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
  63              'item_class'   => 'featured_post',
  64              'image_size'     =>    'fit-400x320',
  65          ) );
  66      // ----------------------------END ITEM BLOCK  ----------------------------
  67  }
  68  ?>
  69  
  70  <?php
  71  // Display message if no post:
  72  display_if_empty();
  73  
  74  while( $Item = & mainlist_get_item() )
  75  {    // For each blog post:
  76      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  77      skin_include( '_item_block.inc.php', array(
  78              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  79              'image_size'     =>    'fit-400x320',
  80          ) );
  81      // ----------------------------END ITEM BLOCK  ----------------------------
  82  }
  83  ?>
  84  
  85  <?php
  86      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
  87      mainlist_page_links( array(
  88              'block_start' => '<div class="navigation">',
  89              'block_end' => '</div>',
  90              'prev_text' => '&lt;&lt;',
  91              'next_text' => '&gt;&gt;',
  92          ) );
  93      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
  94  ?>
  95  
  96  </div>
  97  
  98  
  99  <?php
 100  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 101  skin_include( '_sidebar.inc.php' );
 102  // Note: You can customize the default BODY footer by copying the
 103  // _body_footer.inc.php file into the current skin folder.
 104  // ----------------------------- END OF SIDEBAR -----------------------------
 105  ?>
 106  
 107  </div>
 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