b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body