b2evolution PHP Cross Reference Blogging Systems

Source: /skins/evopress/index.main.php - 119 lines - 4437 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  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  34  skin_include( '_body_header.inc.php' );
  35  // Note: You can customize the default BODY header by copying the generic
  36  // /skins/_body_footer.inc.php file into the current skin folder.
  37  // ------------------------------- END OF HEADER --------------------------------
  38  ?>
  39  
  40  
  41  
  42  <div class="top_menu top_menu_narrow top_menu_<?php echo $Skin->get_setting( 'sidebar_position' ); ?>">
  43      <ul>
  44      <?php
  45          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  46          // Display container and contents:
  47          skin_container( NT_('Menu'), array(
  48                  // The following params will be used as defaults for widgets included in this container:
  49                  'block_start' => '',
  50                  'block_end' => '',
  51                  'block_display_title' => false,
  52                  'list_start' => '',
  53                  'list_end' => '',
  54                  'item_start' => '<li>',
  55                  'item_end' => '</li>',
  56              ) );
  57          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  58      ?>
  59      </ul>
  60  </div>
  61  
  62  <div id="content" class="narrowcolumn">
  63  
  64      <?php
  65          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  66          messages( array(
  67              'block_start' => '<div class="action_messages">',
  68              'block_end'   => '</div>',
  69          ) );
  70          // --------------------------------- END OF MESSAGES ---------------------------------
  71      ?>
  72  
  73      <?php
  74          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  75          request_title( array(
  76                  'title_before'=> '<h2>',
  77                  'title_after' => '</h2>',
  78                  'title_none'  => '',
  79                  'glue'        => ' - ',
  80                  'title_single_disp' => true,
  81                  'format'      => 'htmlbody',
  82              ) );
  83          // ------------------------------ END OF REQUEST TITLE -----------------------------
  84      ?>
  85  
  86      <?php
  87          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
  88          skin_include( '$disp$', array(
  89                  'author_link_text' => 'preferredname'
  90              ) );
  91          // Note: you can customize any of the sub templates included here by
  92          // copying the matching php file into your skin directory.
  93          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
  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  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 108  skin_include( '_body_footer.inc.php' );
 109  // Note: You can customize the default BODY footer by copying the
 110  // _body_footer.inc.php file into the current skin folder.
 111  // ------------------------------- END OF FOOTER --------------------------------
 112  
 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