b2evolution PHP Cross Reference Blogging Systems

Source: /skins/touch/page.main.php - 132 lines - 4663 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  
  44  <div id="content" class="widecolumn">
  45  
  46  
  47  <?php
  48      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

  49      messages( array(
  50              'block_start' => '<div class="action_messages">',
  51              'block_end'   => '</div>',
  52          ) );
  53      // --------------------------------- END OF MESSAGES ---------------------------------

  54  ?>
  55  
  56  
  57  <?php
  58  // Display message if no post:

  59  display_if_empty();
  60  
  61  while( $Item = & mainlist_get_item() )
  62  {    // For each blog post, do everything below up to the closing curly brace "}"
  63      ?>
  64  
  65      <?php
  66          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)

  67      ?>
  68  
  69      <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  70  
  71          <h2><?php $Item->title(); ?></h2>
  72  
  73          <?php
  74              // ---------------------- POST CONTENT INCLUDED HERE ----------------------

  75              skin_include( '_item_content.inc.php', array(
  76                      'image_size' => 'fit-400x320',
  77                  ) );
  78              // Note: You can customize the default item content by copying the generic

  79              // /skins/_item_content.inc.php file into the current skin folder.

  80              // -------------------------- END OF POST CONTENT -------------------------

  81          ?>
  82  
  83          <?php
  84              $Item->edit_link( array( // Link to backoffice for editing
  85                      'before'    => '<p>',
  86                      'after'     => '</p>',
  87                  ) );
  88          ?>
  89  
  90      </div>
  91  
  92      <?php
  93          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------

  94          skin_include( '_item_feedback.inc.php', array(
  95                  'author_link_text' => 'preferredname',
  96              ) );
  97          // Note: You can customize the default item feedback by copying the generic

  98          // /skins/_item_feedback.inc.php file into the current skin folder.

  99          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------

 100      ?>
 101  
 102      <?php
 103      locale_restore_previous();    // Restore previous locale (Blog locale)

 104  }
 105  ?>
 106  
 107  </div>
 108  
 109  
 110  <?php
 111  // ------------------------- MOBILE FOOTER INCLUDED HERE --------------------------

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

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

 115  // ----------------------------- END OF MOBILE FOOTER -----------------------------

 116  
 117  
 118  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

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

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

 122  // ------------------------------- END OF FOOTER --------------------------------

 123  ?>
 124  
 125  
 126  <?php
 127  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

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

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

 131  // ------------------------------- END OF FOOTER --------------------------------

 132  ?>

title

Description

title

Description

title

Description

title

title

Body