b2evolution PHP Cross Reference Blogging Systems

Source: /skins/touch/index.main.php - 98 lines - 3886 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 clean1

  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_header.inc.php file into the current skin folder.

  37  // ------------------------------- END OF HEADER --------------------------------

  38  ?>
  39  
  40  
  41  <div id="content" class="narrowcolumn">
  42  
  43      <?php
  44          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

  45          messages( array(
  46              'block_start' => '<div class="action_messages">',
  47              'block_end'   => '</div>',
  48          ) );
  49          // --------------------------------- END OF MESSAGES ---------------------------------

  50      ?>
  51  
  52      <?php
  53          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

  54          request_title( array(
  55                  'title_before'=> '<h2>',
  56                  'title_after' => '</h2>',
  57                  'title_none'  => '',
  58                  'glue'        => ' - ',
  59                  'title_single_disp' => true,
  60                  'format'      => 'htmlbody',
  61              ) );
  62          // ------------------------------ END OF REQUEST TITLE -----------------------------

  63      ?>
  64  
  65      <?php
  66          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------

  67          skin_include( '$disp$', array(
  68                  'author_link_text' => 'preferredname',
  69              ) );
  70          // Note: you can customize any of the sub templates included here by

  71          // copying the matching php file into your skin directory.

  72          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------

  73      ?>
  74  
  75  </div>
  76  
  77  
  78  <?php
  79  // ------------------------- MOBILE FOOTER INCLUDED HERE --------------------------

  80  skin_include( '_mobile_footer.inc.php' );
  81  // Note: You can customize the default MOBILE FOOTER footer by copying the

  82  // _mobile_footer.inc.php file into the current skin folder.

  83  // ----------------------------- END OF MOBILE FOOTER -----------------------------

  84  
  85  
  86  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

  87  skin_include( '_body_footer.inc.php' );
  88  // Note: You can customize the default BODY footer by copying the

  89  // _body_footer.inc.php file into the current skin folder.

  90  // ------------------------------- END OF FOOTER --------------------------------

  91  
  92  
  93  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

  94  skin_include( '_html_footer.inc.php' );
  95  // Note: You can customize the default HTML footer by copying the

  96  // _html_footer.inc.php file into the current skin folder.

  97  // ------------------------------- END OF FOOTER --------------------------------

  98  ?>

title

Description

title

Description

title

Description

title

title

Body