b2evolution PHP Cross Reference Blogging Systems

Source: /skins/touch/posts.main.php - 126 lines - 4713 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 touch

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

  39  // ------------------------------- END OF HEADER --------------------------------

  40  ?>
  41  
  42  
  43  <div id="content" class="narrowcolumn">
  44  
  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      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

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

  65  ?>
  66  
  67  <?php
  68  // Go Grab the featured post:

  69  if( $Item = & get_featured_Item() )
  70  {    // We have a featured/intro post to display:
  71      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------

  72      skin_include( '_item_block.inc.php', array(
  73              'feature_block' => true,
  74              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  75              'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
  76              'item_class'   => 'featured_post',
  77              'image_size'     =>    'fit-400x320',
  78          ) );
  79      // ----------------------------END ITEM BLOCK  ----------------------------

  80  }
  81  ?>
  82  
  83  <?php
  84  // Display message if no post:

  85  display_if_empty();
  86  
  87  // ---------------------- ITEM BLOCK + PREV/NEXT PAGE LINKS(POST LIST MODE) INCLUDED HERE ------------------------

  88  items_list_block_by_page( array(
  89          'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
  90          'image_size'   => 'fit-400x320',
  91          'block_start'  => '<div class="navigation ajax">',
  92          'block_end'    => '</div>',
  93          'links_format' => '$next$',
  94          'next_text'    => T_('Load more entries').'&hellip;',
  95      ) );
  96  // ---------------------------- END ITEM BLOCK + PREV/NEXT PAGE LINKS ----------------------------

  97  
  98  ?>
  99  
 100  </div>
 101  
 102  <?php
 103  // ------------------------- MOBILE FOOTER INCLUDED HERE --------------------------

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

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

 107  // ----------------------------- END OF MOBILE FOOTER -----------------------------

 108  ?>
 109  
 110  
 111  <?php
 112  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

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

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

 116  // ------------------------------- END OF FOOTER --------------------------------

 117  ?>
 118  
 119  
 120  <?php
 121  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

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

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

 125  // ------------------------------- END OF FOOTER --------------------------------

 126  ?>

title

Description

title

Description

title

Description

title

title

Body