b2evolution PHP Cross Reference Blogging Systems

Source: /skins/intense/single.main.php - 197 lines - 6530 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  
  42      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  43      messages( array(
  44              'block_start' => '<div class="action_messages">',
  45              'block_end'   => '</div>',
  46          ) );
  47      // --------------------------------- END OF MESSAGES ---------------------------------
  48  
  49      // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
  50      item_prevnext_links( array(
  51              'block_start' => '<table class="prevnext_post"><tr>',
  52              'prev_start'  => '<td>',
  53              'prev_end'    => '</td>',
  54              'next_start'  => '<td class="right">',
  55              'next_end'    => '</td>',
  56              'block_end'   => '</tr></table>',
  57          ) );
  58      // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
  59  ?>
  60  
  61  <?php
  62  // Display message if no post:
  63  display_if_empty();
  64  
  65  echo '<div id="styled_content_block">'; // Beginning of posts display
  66  while( $Item = & mainlist_get_item() )
  67  {    // For each blog post, do everything below up to the closing curly brace "}"
  68      ?>
  69  
  70      <?php
  71          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  72      ?>
  73  
  74      <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  75  
  76          <?php
  77          if( $Item->status != 'published' )
  78          {
  79              $Item->status( array( 'format' => 'styled' ) );
  80          }
  81          ?>
  82          <h2 class="linked"><?php
  83              $Item->title( array(
  84                  'link_type' => 'permalink'
  85                  ) );
  86          ?></h2>
  87  
  88          <?php
  89  
  90              // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  91              skin_include( '_item_content.inc.php', array(
  92                      'image_size'    =>    'fit-400x320',
  93                  ) );
  94              // Note: You can customize the default item feedback by copying the generic
  95              // /skins/_item_feedback.inc.php file into the current skin folder.
  96              // -------------------------- END OF POST CONTENT -------------------------
  97          ?>
  98  
  99          <p class="postmetadata alt">
 100              <small>
 101                  <?php
 102                      $Item->author( array(
 103                              'link_text'    => 'only_avatar',
 104                              'link_rel'     => 'nofollow',
 105                              'thumb_size'   => 'crop-32x32',
 106                              'thumb_class'  => 'leftmargin',
 107                          ) );
 108                  ?>
 109                  <?php
 110                      $Item->issue_time( array(
 111                              'before'      => /* TRANS: date */ T_('This entry was posted on '),
 112                              'time_format' => 'F jS, Y',
 113                          ) );
 114                  ?>
 115                  <?php
 116                      $Item->issue_time( array(
 117                              'before'      => /* TRANS: time */ T_('at '),
 118                          ) );
 119                  ?>
 120                  <?php
 121                      $Item->author( array(
 122                              'before'    => T_('by '),
 123                              'link_text' => 'preferredname',
 124                          ) );
 125                  ?>
 126                  <?php
 127                      $Item->categories( array(
 128                          'before'          => ' '.T_('and is filed under').' ',
 129                          'after'           => '.',
 130                          'include_main'    => true,
 131                          'include_other'   => true,
 132                          'include_external'=> true,
 133                          'link_categories' => true,
 134                      ) );
 135                  ?>
 136  
 137                  <?php
 138                      // List all tags attached to this post:
 139                      $Item->tags( array(
 140                              'before'      => ' '.T_('Tags').': ',
 141                              'after'       => ' ',
 142                              'separator'   => ', ',
 143                          ) );
 144                  ?>
 145  
 146                  <!-- You can follow any responses to this entry through the RSS feed. -->
 147                  <?php
 148                      $Item->edit_link( array( // Link to backoffice for editing
 149                              'before'      => '',
 150                              'after'       => '',
 151                          ) );
 152                  ?>
 153              </small>
 154          </p>
 155  
 156      </div>
 157  
 158  
 159      <?php
 160          // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 161          skin_include( '_item_feedback.inc.php', array(
 162                  'before_section_title' => '<h3>',
 163                  'after_section_title'  => '</h3>',
 164                  'author_link_text'     => 'preferredname',
 165              ) );
 166          // Note: You can customize the default item feedback by copying the generic
 167          // /skins/_item_feedback.inc.php file into the current skin folder.
 168          // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 169      ?>
 170  
 171      <?php
 172      locale_restore_previous();    // Restore previous locale (Blog locale)
 173  }
 174  echo '</div>'; // End of posts display
 175  ?>
 176  
 177  </div>
 178  
 179  <?php
 180      // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 181      skin_include( '_sidebar.inc.php' );
 182      // Note: You can customize the default BODY footer by copying the
 183      // _body_footer.inc.php file into the current skin folder.
 184      // ----------------------------- END OF SIDEBAR -----------------------------
 185  
 186      // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 187      skin_include( '_body_footer.inc.php' );
 188      // Note: You can customize the default BODY footer by copying the
 189      // _body_footer.inc.php file into the current skin folder.
 190      // ------------------------------- END OF FOOTER --------------------------------
 191  
 192      // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 193      skin_include( '_html_footer.inc.php' );
 194      // Note: You can customize the default HTML footer by copying the
 195      // _html_footer.inc.php file into the current skin folder.
 196      // ------------------------------- END OF FOOTER --------------------------------
 197  ?>

title

Description

title

Description

title

Description

title

title

Body