b2evolution PHP Cross Reference Blogging Systems

Source: /skins/pluralism/posts.main.php - 119 lines - 4884 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 pluralism
  13   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  if( version_compare( $app_version, '2.4.1' ) < 0 )
  17  { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  18      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>.' );
  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      // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  26      skin_include( '_html_header.inc.php' );
  27      // Note: You can customize the default HTML header by copying the generic
  28      // /skins/_html_header.inc.php file into the current skin folder.
  29      // -------------------------------- END OF HEADER --------------------------------
  30  
  31      // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  32      skin_include( '_body_header.inc.php' );
  33      // Note: You can customize the default BODY header by copying the generic
  34      // /skins/_body_footer.inc.php file into the current skin folder.
  35      // ------------------------------- END OF HEADER --------------------------------
  36  ?>
  37  
  38  <div id="content">
  39  
  40  <?php
  41  
  42      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  43      messages( array(
  44              'block_start' => '<div class="action_messages">',
  45              'block_end'   => '</div>',
  46          ) );
  47      // --------------------------------- END OF MESSAGES ---------------------------------
  48  
  49      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  50      request_title( array(
  51              'title_before'=> '<h2 id="spectitle">',
  52              'title_after' => '</h2>',
  53              'title_none'  => '',
  54              'glue'        => ' - ',
  55              'title_single_disp' => true,
  56              'format'      => 'htmlbody',
  57          ) );
  58      // ------------------------------ END OF REQUEST TITLE -----------------------------
  59  
  60      // Go Grab the featured post:
  61      if( $Item = & get_featured_Item() )
  62      {    // We have a featured/intro post to display:
  63          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  64          skin_include( '_item_block.inc.php', array(
  65                  'feature_block' => true,
  66                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  67                  'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
  68                  'item_class'   => 'featured_post',
  69                  'image_size'     =>    'fit-400x320',
  70              ) );
  71          // ----------------------------END ITEM BLOCK  ----------------------------
  72      }
  73  
  74      // Display message if no post:
  75      display_if_empty();
  76  
  77      echo '<div id="styled_content_block">'; // Beginning of posts display
  78      while( $Item = & mainlist_get_item() )
  79      {    // For each blog post:
  80          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  81          skin_include( '_item_block.inc.php', array(
  82                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  83                  'image_size'     =>    'fit-400x320',
  84              ) );
  85          // ----------------------------END ITEM BLOCK  ----------------------------
  86      }
  87      echo '</div>'; // End of posts display
  88  
  89      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
  90      mainlist_page_links( array(
  91              'block_start' => '<div class="navigation">',
  92              'block_end'   => '</div>',
  93                 'prev_text'   => '&lt;&lt;',
  94                 'next_text'   => '&gt;&gt;',
  95          ) );
  96      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
  97  ?>
  98  
  99  </div>
 100  
 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      // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 109      skin_include( '_body_footer.inc.php' );
 110      // Note: You can customize the default BODY footer by copying the
 111      // _body_footer.inc.php file into the current skin folder.
 112      // ------------------------------- END OF FOOTER --------------------------------
 113  
 114      // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 115      skin_include( '_html_footer.inc.php' );
 116      // Note: You can customize the default HTML footer by copying the
 117      // _html_footer.inc.php file into the current skin folder.
 118      // ------------------------------- END OF FOOTER --------------------------------
 119  ?>

title

Description

title

Description

title

Description

title

title

Body