b2evolution PHP Cross Reference Blogging Systems

Source: /skins/evocamp/posts.main.php - 157 lines - 5578 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 evocamp
  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 header by copying the generic
  40  // /skins/_body_footer.inc.php file into the current skin folder.
  41  // ------------------------------- END OF FOOTER --------------------------------
  42  ?>
  43  
  44  <div id="page">
  45  
  46      <div id="contentleft">
  47  
  48      <?php
  49      // Go Grab the featured post:
  50      if( $Item = & get_featured_Item() )
  51      {    // We have a featured/intro post to display:
  52          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  53          skin_include( '_item_block.inc.php', array(
  54                  'feature_block' => true,
  55                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  56                  'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
  57                  'item_class'   => 'featurepost',
  58                  'image_size'     =>    'fit-400x320',
  59              ) );
  60          // ----------------------------END ITEM BLOCK  ----------------------------
  61      }
  62      ?>
  63  
  64      <?php
  65      // ------------------------- SIDEBAR INCLUDED HERE --------------------------
  66      skin_include( '_sidebar_left.inc.php' );
  67      // Note: You can customize the default BODY footer by copying the
  68      // _body_footer.inc.php file into the current skin folder.
  69      // ----------------------------- END OF SIDEBAR -----------------------------
  70      ?>
  71  
  72      <div id="content">
  73  
  74      <?php
  75          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  76          request_title( array(
  77                  'title_before'=> '<h2 class="sectionhead">',
  78                  'title_after' => '</h2>',
  79                  'title_none'  => '',
  80                  'glue'        => ' - ',
  81                  'title_single_disp' => true,
  82                  'format'      => 'htmlbody',
  83              ) );
  84          // ------------------------------ END OF REQUEST TITLE -----------------------------
  85      ?>
  86  
  87  
  88      <?php
  89          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  90          messages( array(
  91              'block_start' => '<div class="action_messages">',
  92              'block_end'   => '</div>',
  93          ) );
  94          // --------------------------------- END OF MESSAGES ---------------------------------
  95      ?>
  96  
  97  
  98      <?php
  99          // Display message if no post:
 100          display_if_empty();
 101  
 102          echo '<div id="styled_content_block">'; // Beginning of posts display
 103          while( $Item = & mainlist_get_item() )
 104          {    // For each blog post:
 105              // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 106              skin_include( '_item_block.inc.php', array(
 107                      'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 108                      'image_size'     =>    'fit-400x320',
 109                  ) );
 110              // Note: You can customize the default item feedback by copying the generic
 111              // /skins/_item_feedback.inc.php file into the current skin folder.
 112              // ----------------------------END ITEM BLOCK  ----------------------------
 113          }
 114          echo '</div>'; // End of posts display
 115      ?>
 116  
 117      <?php
 118          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 119          mainlist_page_links( array(
 120                  'block_start' => '<div class="navigation">',
 121                  'block_end' => '</div>',
 122                 'prev_text' => '&lt;&lt;',
 123                 'next_text' => '&gt;&gt;',
 124              ) );
 125          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 126      ?>
 127  
 128      </div>
 129  
 130  </div>
 131  
 132  <?php
 133  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 134  skin_include( '_sidebar_right.inc.php' );
 135  // Note: You can customize the default BODY footer by copying the
 136  // _body_footer.inc.php file into the current skin folder.
 137  // ----------------------------- END OF SIDEBAR -----------------------------
 138  ?>
 139  
 140  </div>
 141  
 142  <?php
 143  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 144  skin_include( '_body_footer.inc.php' );
 145  // Note: You can customize the default BODY footer by copying the
 146  // _body_footer.inc.php file into the current skin folder.
 147  // ------------------------------- END OF FOOTER --------------------------------
 148  ?>
 149  
 150  
 151  <?php
 152  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 153  skin_include( '_html_footer.inc.php' );
 154  // Note: You can customize the default HTML footer by copying the
 155  // _html_footer.inc.php file into the current skin folder.
 156  // ------------------------------- END OF FOOTER --------------------------------
 157  ?>

title

Description

title

Description

title

Description

title

title

Body