b2evolution PHP Cross Reference Blogging Systems

Source: /skins/evocamp/single.main.php - 221 lines - 7093 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: single.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          echo '<div id="styled_content_block">';
  73          while( $Item = & mainlist_get_item() )
  74          {    // For each blog post, do everything below up to the closing curly brace "}"
  75          ?>
  76          <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  77  
  78              <?php
  79                  if( $Item->status != 'published' )
  80                  {
  81                      $Item->status( array( 'format' => 'styled' ) );
  82                  }
  83                  $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  84              ?>
  85  
  86              <h2><?php
  87                  $Item->title( array(
  88                      'link_type' => 'permalink'
  89                  ) );
  90              ?></h2>
  91  
  92              <p class="postinfo">
  93              <?php
  94              $Item->author( array(
  95                      'profile_tab' => 'user',
  96                      'before'      => T_('By').' ',
  97                      'after'       => ' ',
  98                      'link_text'   => 'preferredname',
  99                  ) );
 100              ?>
 101              <?php
 102                  $Item->issue_time( array(
 103                          'before'      => /* TRANS: date */ T_('on '),
 104                          'after'       => '',
 105                          'time_format' => 'M j, Y',
 106                      ) );
 107              ?>
 108              <?php
 109                  $Item->categories( array(
 110                          'before'          => ' | '.T_('In '),
 111                          'after'           => ' ',
 112                          'include_main'    => true,
 113                          'include_other'   => true,
 114                          'include_external'=> true,
 115                          'link_categories' => true,
 116                      ) );
 117              ?>
 118              <?php
 119                  // Link to comments, trackbacks, etc.:
 120                  $Item->feedback_link( array(
 121                          'type' => 'feedbacks',
 122                          'link_before' => ' | ',
 123                          'link_after' => '',
 124                          'link_text_zero' => '#',
 125                          'link_text_one' => '#',
 126                          'link_text_more' => '#',
 127                          'link_title' => '#',
 128                          'use_popup' => false,
 129                      ) );
 130              ?>
 131              <?php
 132                  $Item->edit_link( array( // Link to backoffice for editing
 133                          'before'    => ' | ',
 134                          'after'     => '',
 135                      ) );
 136              ?>
 137              </p>
 138              <?php
 139                  // ---------------------- POST CONTENT INCLUDED HERE ----------------------
 140                  skin_include( '_item_content.inc.php', array(
 141                          'image_size'    =>    'fit-400x320',
 142                      ) );
 143                  // Note: You can customize the default item feedback by copying the generic
 144                  // /skins/_item_feedback.inc.php file into the current skin folder.
 145                  // -------------------------- END OF POST CONTENT -------------------------
 146              ?>
 147  
 148              <?php
 149                  // List all tags attached to this post:
 150                  $Item->tags( array(
 151                          'before' =>         '<div class="posttags">'.T_('Tags').': ',
 152                          'after' =>          '</div>',
 153                          'separator' =>      ', ',
 154                      ) );
 155              ?>
 156  
 157          </div>
 158  
 159          <?php
 160              // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 161              skin_include( '_item_feedback.inc.php', array(
 162                      'before_section_title' => '<h3 class="feedback_section">',
 163                      'after_section_title'  => '</h3>',
 164                      'form_title_start'     => '<h3 class="comment_form_title">',
 165                      'form_title_end'       => '</h3>',
 166                      'author_link_text'     => 'preferredname',
 167                  ) );
 168              // Note: You can customize the default item feedback by copying the generic
 169              // /skins/_item_feedback.inc.php file into the current skin folder.
 170              // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 171          ?>
 172  
 173          <?php
 174              locale_restore_previous();    // Restore previous locale (Blog locale)
 175          }
 176          echo '</div>';
 177      ?>
 178  
 179      <?php
 180          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 181          item_prevnext_links( array(
 182                  'block_start' => '<table class="prevnext_post"><tr>',
 183                  'prev_start'  => '<td>',
 184                  'prev_end'    => '</td>',
 185                  'next_start'  => '<td class="right">',
 186                  'next_end'    => '</td>',
 187                  'block_end'   => '</tr></table>',
 188              ) );
 189          // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
 190      ?>
 191  
 192      </div>
 193  
 194  </div>
 195  
 196  <?php
 197  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 198  skin_include( '_sidebar_right.inc.php' );
 199  // Note: You can customize the default BODY footer by copying the
 200  // _body_footer.inc.php file into the current skin folder.
 201  // ----------------------------- END OF SIDEBAR -----------------------------
 202  ?>
 203  
 204  </div>
 205  
 206  <?php
 207  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 208  skin_include( '_body_footer.inc.php' );
 209  // Note: You can customize the default BODY footer by copying the
 210  // _body_footer.inc.php file into the current skin folder.
 211  // ------------------------------- END OF FOOTER --------------------------------
 212  ?>
 213  
 214  
 215  <?php
 216  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 217  skin_include( '_html_footer.inc.php' );
 218  // Note: You can customize the default HTML footer by copying the
 219  // _html_footer.inc.php file into the current skin folder.
 220  // ------------------------------- END OF FOOTER --------------------------------
 221  ?>

title

Description

title

Description

title

Description

title

title

Body