b2evolution PHP Cross Reference Blogging Systems

Source: /skins/evopress/page.main.php - 153 lines - 5004 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 evopress
  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  add_headline( <<<HEREDOC
  28  <style type="text/css" media="screen">
  29      #page.page-left, #page.page-right{background-image:none}
  30  </style>
  31  HEREDOC
  32  );
  33  skin_include( '_html_header.inc.php' );
  34  // Note: You can customize the default HTML header by copying the generic
  35  // /skins/_html_header.inc.php file into the current skin folder.
  36  // -------------------------------- END OF HEADER --------------------------------
  37  ?>
  38  
  39  
  40  <?php
  41  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  42  skin_include( '_body_header.inc.php' );
  43  // Note: You can customize the default BODY header by copying the generic
  44  // /skins/_body_footer.inc.php file into the current skin folder.
  45  // ------------------------------- END OF HEADER --------------------------------
  46  ?>
  47  
  48  
  49  <div class="top_menu">
  50      <ul>
  51      <?php
  52          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  53          // Display container and contents:
  54          skin_container( NT_('Menu'), array(
  55                  // The following params will be used as defaults for widgets included in this container:
  56                  'block_start' => '',
  57                  'block_end' => '',
  58                  'block_display_title' => false,
  59                  'list_start' => '',
  60                  'list_end' => '',
  61                  'item_start' => '<li>',
  62                  'item_end' => '</li>',
  63              ) );
  64          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  65      ?>
  66      </ul>
  67  </div>
  68  
  69  
  70  <div id="content" class="widecolumn">
  71  
  72  
  73  <?php
  74      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  75      messages( array(
  76              'block_start' => '<div class="action_messages">',
  77              'block_end'   => '</div>',
  78          ) );
  79      // --------------------------------- END OF MESSAGES ---------------------------------
  80  ?>
  81  
  82  
  83  <?php
  84  // Display message if no post:
  85  display_if_empty();
  86  
  87  while( $Item = & mainlist_get_item() )
  88  {    // For each blog post, do everything below up to the closing curly brace "}"
  89      ?>
  90  
  91      <?php
  92          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  93      ?>
  94  
  95      <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  96  
  97          <h2><?php $Item->title(); ?></h2>
  98  
  99          <?php
 100              // ---------------------- POST CONTENT INCLUDED HERE ----------------------
 101              skin_include( '_item_content.inc.php', array(
 102                      'image_size'    =>    'fit-400x320',
 103                  ) );
 104              // Note: You can customize the default item feedback by copying the generic
 105              // /skins/_item_feedback.inc.php file into the current skin folder.
 106              // -------------------------- END OF POST CONTENT -------------------------
 107          ?>
 108  
 109          <?php
 110              $Item->edit_link( array( // Link to backoffice for editing
 111                      'before'    => '<p>',
 112                      'after'     => '</p>',
 113                  ) );
 114          ?>
 115  
 116      </div>
 117  
 118      <?php
 119          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 120          skin_include( '_item_feedback.inc.php', array(
 121                  'before_section_title' => '<h3>',
 122                  'after_section_title'  => '</h3>',
 123                  'author_link_text'     => 'preferredname'
 124              ) );
 125          // Note: You can customize the default item feedback by copying the generic
 126          // /skins/_item_feedback.inc.php file into the current skin folder.
 127          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 128      ?>
 129  
 130      <?php
 131      locale_restore_previous();    // Restore previous locale (Blog locale)
 132  }
 133  ?>
 134  
 135  </div>
 136  
 137  
 138  <?php
 139  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 140  skin_include( '_body_footer.inc.php' );
 141  // Note: You can customize the default BODY footer by copying the
 142  // _body_footer.inc.php file into the current skin folder.
 143  // ------------------------------- END OF FOOTER --------------------------------
 144  ?>
 145  
 146  
 147  <?php
 148  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 149  skin_include( '_html_footer.inc.php' );
 150  // Note: You can customize the default HTML footer by copying the
 151  // _html_footer.inc.php file into the current skin folder.
 152  // ------------------------------- END OF FOOTER --------------------------------
 153  ?>

title

Description

title

Description

title

Description

title

title

Body