[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/skins/evopress/ -> page.main.php (source)

   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://manual.b2evolution.net/Skins_2.0}

   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 kubrick

  13   *

  14   * @version $Id: page.main.php,v 1.5 2007/11/03 23:54:38 fplanque Exp $

  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  // This is the main template; it may be used to display very different things.

  19  // Do inits depending on current $disp:

  20  skin_init( $disp );
  21  
  22  
  23  // -------------------------- HTML HEADER INCLUDED HERE --------------------------

  24  add_headline( <<<HEREDOC
  25  <style type="text/css" media="screen">
  26      #page { background: url("img/kubrickbgwide.jpg") repeat-y top; }

  27  </style>
  28  HEREDOC
  29  );
  30  skin_include( '_html_header.inc.php' );
  31  // Note: You can customize the default HTML header by copying the generic

  32  // /skins/_html_header.inc.php file into the current skin folder.

  33  // -------------------------------- END OF HEADER --------------------------------

  34  ?>
  35  
  36  
  37  <?php
  38  // ------------------------- BODY HEADER INCLUDED HERE --------------------------

  39  skin_include( '_body_header.inc.php' );
  40  // Note: You can customize the default BODY heder by copying the generic

  41  // /skins/_body_footer.inc.php file into the current skin folder.

  42  // ------------------------------- END OF FOOTER --------------------------------

  43  ?>
  44  
  45  
  46  <div id="content" class="widecolumn">
  47  
  48  
  49  <?php
  50      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

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

  56  ?>
  57  
  58  
  59  <?php
  60  // Display message if no post:

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

  69          $Item->anchor(); // Anchor for permalinks to refer to.

  70      ?>
  71  
  72      <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  73  
  74          <h2><?php $Item->title(); ?></h2>
  75  
  76          <?php
  77              // ---------------------- POST CONTENT INCLUDED HERE ----------------------

  78              skin_include( '_item_content.inc.php', array(
  79                      'image_size'    =>    'fit-400x320',
  80                  ) );
  81              // Note: You can customize the default item feedback by copying the generic

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

  83              // -------------------------- END OF POST CONTENT -------------------------

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

  97          skin_include( '_item_feedback.inc.php', array(
  98                  'before_section_title' => '<h3>',
  99                  'after_section_title'  => '</h3>',
 100              ) );
 101          // Note: You can customize the default item feedback by copying the generic

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

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

 104      ?>
 105  
 106      <?php
 107      locale_restore_previous();    // Restore previous locale (Blog locale)

 108  }
 109  ?>
 110  
 111  </div>
 112  
 113  
 114  <?php
 115  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

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

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

 119  // ------------------------------- END OF FOOTER --------------------------------

 120  ?>
 121  
 122  
 123  <?php
 124  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

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

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

 128  // ------------------------------- END OF FOOTER --------------------------------

 129  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics