b2evolution PHP Cross Reference Blogging Systems

Source: /skins/intense/page.main.php - 122 lines - 4562 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 intense
  13   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  if( version_compare( $app_version, '3.3.1' ) < 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 3.3.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      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  42      messages( array(
  43              'block_start' => '<div class="action_messages">',
  44              'block_end'   => '</div>',
  45          ) );
  46      // --------------------------------- END OF MESSAGES ---------------------------------
  47  ?>
  48  
  49  <?php
  50  
  51  // Display message if no post:
  52  display_if_empty();
  53  
  54  while( $Item = & mainlist_get_item() )
  55  {    // For each blog post, do everything below up to the closing curly brace "}"
  56      ?>
  57  
  58      <?php
  59          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  60      ?>
  61  
  62      <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  63  
  64          <h2><?php $Item->title(); ?></h2>
  65  
  66          <?php
  67              // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  68              skin_include( '_item_content.inc.php', array(
  69                      'image_size'    =>    'fit-400x320',
  70                  ) );
  71              // Note: You can customize the default item feedback by copying the generic
  72              // /skins/_item_feedback.inc.php file into the current skin folder.
  73              // -------------------------- END OF POST CONTENT -------------------------
  74          ?>
  75  
  76          <?php
  77              $Item->edit_link( array( // Link to backoffice for editing
  78                      'before'    => '<p>',
  79                      'after'     => '</p>',
  80                  ) );
  81          ?>
  82  
  83      </div>
  84  
  85      <?php
  86          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
  87          skin_include( '_item_feedback.inc.php', array(
  88                  'before_section_title' => '<h3>',
  89                  'after_section_title'  => '</h3>',
  90                  'author_link_text'     => 'preferredname',
  91              ) );
  92          // Note: You can customize the default item feedback by copying the generic
  93          // /skins/_item_feedback.inc.php file into the current skin folder.
  94          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
  95      ?>
  96  
  97      <?php
  98      locale_restore_previous();    // Restore previous locale (Blog locale)
  99  }
 100  ?>
 101  
 102  </div>
 103  
 104  <?php
 105      // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 106      skin_include( '_sidebar.inc.php' );
 107      // Note: You can customize the default BODY footer by copying the
 108      // _body_footer.inc.php file into the current skin folder.
 109      // ----------------------------- END OF SIDEBAR -----------------------------
 110  
 111      // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 112      skin_include( '_body_footer.inc.php' );
 113      // Note: You can customize the default BODY footer by copying the
 114      // _body_footer.inc.php file into the current skin folder.
 115      // ------------------------------- END OF FOOTER --------------------------------
 116  
 117      // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 118      skin_include( '_html_footer.inc.php' );
 119      // Note: You can customize the default HTML footer by copying the
 120      // _html_footer.inc.php file into the current skin folder.
 121      // ------------------------------- END OF FOOTER --------------------------------
 122  ?>

title

Description

title

Description

title

Description

title

title

Body