b2evolution PHP Cross Reference Blogging Systems

Source: /skins/evocamp/page.main.php - 157 lines - 5357 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 evocamp
  13   *
  14   * @version $Id: page.main.php 4275 2013-07-17 10:52:24Z yura $
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  if( version_compare( $app_version, '2.4.1' ) < 0 )
  19  { // 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.
  20      die( 'This skin is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  21  }
  22  
  23  // This is the main template; it may be used to display very different things.
  24  // Do inits depending on current $disp:
  25  skin_init( $disp );
  26  
  27  
  28  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  29  skin_include( '_html_header.inc.php' );
  30  // Note: You can customize the default HTML header by copying the generic
  31  // /skins/_html_header.inc.php file into the current skin folder.
  32  // -------------------------------- END OF HEADER --------------------------------
  33  ?>
  34  
  35  
  36  <?php
  37  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  38  skin_include( '_body_header.inc.php' );
  39  // Note: You can customize the default BODY header by copying the generic
  40  // /skins/_body_footer.inc.php file into the current skin folder.
  41  // ------------------------------- END OF FOOTER --------------------------------
  42  ?>
  43  
  44  <div id="page">
  45  
  46      <div id="contentleft">
  47  
  48      <?php
  49      // ------------------------- SIDEBAR INCLUDED HERE --------------------------
  50      skin_include( '_sidebar_left.inc.php' );
  51      // Note: You can customize the default BODY footer by copying the
  52      // _body_footer.inc.php file into the current skin folder.
  53      // ----------------------------- END OF SIDEBAR -----------------------------
  54      ?>
  55  
  56      <div id="content">
  57  
  58      <?php
  59          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  60          messages( array(
  61              'block_start' => '<div class="action_messages">',
  62              'block_end'   => '</div>',
  63          ) );
  64          // --------------------------------- END OF MESSAGES ---------------------------------
  65      ?>
  66  
  67  
  68      <?php
  69          // Display message if no post:
  70          display_if_empty();
  71  
  72          while( $Item = & mainlist_get_item() )
  73          {    // For each blog post, do everything below up to the closing curly brace "}"
  74          ?>
  75  
  76              <div id="<?php $Item->anchor_id() ?>" lang="<?php $Item->lang() ?>">
  77  
  78              <?php
  79                  $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  80              ?>
  81  
  82              <h2 class="sectionhead" lang="<?php $Item->lang() ?>">
  83                  <?php
  84                      $Item->edit_link( array( // Link to backoffice for editing
  85                              'before'    => '',
  86                              'after'     => '',
  87                              'class'     => 'floatright',
  88                          ) );
  89                  ?>
  90                  <?php $Item->title(); ?>
  91              </h2>
  92  
  93              <div class="post post<?php $Item->status_raw() ?>">
  94  
  95              <?php
  96                  // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  97                  skin_include( '_item_content.inc.php', array(
  98                          'image_size'    =>    'fit-400x320',
  99                      ) );
 100                  // Note: You can customize the default item feedback by copying the generic
 101                  // /skins/_item_feedback.inc.php file into the current skin folder.
 102                  // -------------------------- END OF POST CONTENT -------------------------
 103              ?>
 104  
 105              </div>
 106  
 107              <?php
 108                  // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 109                  skin_include( '_item_feedback.inc.php', array(
 110                          'before_section_title' => '<h3 class="feedback_section">',
 111                          'after_section_title'  => '</h3>',
 112                          'form_title_start'     => '<h3 class="comment_form_title">',
 113                          'form_title_end'       => '</h3>',
 114                          'author_link_text'     => 'preferredname',
 115                      ) );
 116                  // Note: You can customize the default item feedback by copying the generic
 117                  // /skins/_item_feedback.inc.php file into the current skin folder.
 118                  // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 119              ?>
 120  
 121              </div>
 122  
 123              <?php
 124              locale_restore_previous();    // Restore previous locale (Blog locale)
 125          }
 126      ?>
 127  
 128      </div>
 129  
 130  </div>
 131  
 132  <?php
 133  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 134  skin_include( '_sidebar_right.inc.php' );
 135  // Note: You can customize the default BODY footer by copying the
 136  // _body_footer.inc.php file into the current skin folder.
 137  // ----------------------------- END OF SIDEBAR -----------------------------
 138  ?>
 139  
 140  </div>
 141  
 142  <?php
 143  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 144  skin_include( '_body_footer.inc.php' );
 145  // Note: You can customize the default BODY footer by copying the
 146  // _body_footer.inc.php file into the current skin folder.
 147  // ------------------------------- END OF FOOTER --------------------------------
 148  ?>
 149  
 150  
 151  <?php
 152  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 153  skin_include( '_html_footer.inc.php' );
 154  // Note: You can customize the default HTML footer by copying the
 155  // _html_footer.inc.php file into the current skin folder.
 156  // ------------------------------- END OF FOOTER --------------------------------
 157  ?>

title

Description

title

Description

title

Description

title

title

Body