b2evolution PHP Cross Reference Blogging Systems

Source: /skins/asevo/index.main.php - 252 lines - 8585 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   * It is used to display the blog when no specific page template is available to handle the request.
   9   *
  10   * @package evoskins
  11   * @subpackage asevo
  12   *
  13   * @version $Id: index.main.php 4275 2013-07-17 10:52:24Z yura $
  14   */
  15  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  16  
  17  if( version_compare( $app_version, '3.0' ) < 0 )
  18  { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  19      die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  20  }
  21  
  22  // This is the main template; it may be used to display very different things.
  23  // Do inits depending on current $disp:
  24  skin_init( $disp );
  25  
  26  
  27  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  28  skin_include( '_html_header.inc.php' );
  29  // Note: You can customize the default HTML header by copying the
  30  // _html_header.inc.php file into the current skin folder.
  31  // -------------------------------- END OF HEADER --------------------------------
  32  ?>
  33  
  34  <div class="head_zone">
  35  <div class="inner_wrapper">
  36  <div class="PageTop">
  37      <?php
  38          // Display container and contents:
  39          skin_container( NT_('Page Top'), array(
  40                  // The following params will be used as defaults for widgets included in this container:
  41                  'block_start' => '<div class="$wi_class$">',
  42                  'block_end' => '</div>',
  43                  'block_display_title' => false,
  44                  'list_start' => '<ul>',
  45                  'list_end' => '</ul>',
  46                  'item_start' => '<li>',
  47                  'item_end' => '</li>',
  48              ) );
  49      ?>
  50      &nbsp;
  51  </div>
  52  </div>
  53  </div>
  54  
  55  
  56  <div class="nav_zone">
  57  <div class="inner_wrapper">
  58  <div class="top_menu">
  59      <ul>
  60      <?php
  61          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  62          // Display container and contents:
  63          // Note: this container is designed to be a single <ul> list
  64          skin_container( NT_('Menu'), array(
  65                  // The following params will be used as defaults for widgets included in this container:
  66                  'block_start' => '',
  67                  'block_end' => '',
  68                  'block_display_title' => false,
  69                  'list_start' => '',
  70                  'list_end' => '',
  71                  'item_start' => '<li>',
  72                  'item_end' => '</li>',
  73              ) );
  74          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  75      ?>
  76      </ul>
  77      &nbsp;
  78  </div>
  79  </div>
  80  </div>
  81  
  82  
  83  <div class="main_zone">
  84  <div class="inner_wrapper">
  85  
  86  <div class="evo_title_area">
  87      <?php
  88          // Display container and contents:
  89          skin_container( NT_('Header'), array(
  90                  // The following params will be used as defaults for widgets included in this container:
  91                  'block_start' => '<div class="$wi_class$">',
  92                  'block_end' => '</div>',
  93                  'block_title_start' => '<h2>',
  94                  'block_title_end' => '</h2>',
  95              ) );
  96      ?>
  97  </div>
  98  
  99  
 100  <div class="evo_main_area">
 101      <?php
 102          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 103          messages( array(
 104              'block_start' => '<div class="action_messages">',
 105              'block_end'   => '</div>',
 106          ) );
 107          // --------------------------------- END OF MESSAGES ---------------------------------
 108      ?>
 109  
 110      <?php
 111          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 112          item_prevnext_links( array(
 113                  'block_start' => '<table class="prevnext_post"><tr>',
 114                  'prev_start'  => '<td>',
 115                  'prev_end'    => '</td>',
 116                  'next_start'  => '<td class="right">',
 117                  'next_end'    => '</td>',
 118                  'block_end'   => '</tr></table>',
 119              ) );
 120          // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
 121      ?>
 122  
 123      <?php
 124          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
 125          request_title( array(
 126                  'title_before'=> '<h2 class="evo_req_title">',
 127                  'title_after' => '</h2>',
 128                  'title_none'  => '',
 129                  'glue'        => ' - ',
 130                  'title_single_disp' => false,
 131                  'format'      => 'htmlbody',
 132              ) );
 133          // ------------------------------ END OF REQUEST TITLE -----------------------------
 134      ?>
 135  
 136      <!-- =================================== START OF MAIN AREA =================================== -->
 137  
 138      <?php // ------------------------------------ START OF POSTS ----------------------------------------
 139          // Go Grab the featured post:
 140          if( $Item = & get_featured_Item() )
 141          {    // We have a featured/intro post to display:
 142              // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 143              skin_include( '_item_block.inc.php', array(
 144                      'feature_block' => true,
 145                      'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 146                      'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 147                      'item_class'   => 'featured_post',
 148                      'image_size'   => 'fit-400x320',
 149                  ) );
 150              // ----------------------------END ITEM BLOCK  ----------------------------
 151          }
 152  
 153          // Display message if no post:
 154          display_if_empty();
 155  
 156          while( $Item = & mainlist_get_item() )
 157          {    // For each blog post:
 158              // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 159              skin_include( '_item_block.inc.php', array(
 160                      'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 161                      'image_size'     =>    'fit-400x320',
 162                  ) );
 163              // ----------------------------END ITEM BLOCK  ----------------------------
 164          }
 165      ?>
 166  
 167      <?php
 168          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 169          mainlist_page_links( array(
 170                  'block_start' => '<p class="center"><strong>',
 171                  'block_end' => '</strong></p>',
 172                  'links_format' => '$prev$ :: $next$',
 173                 'prev_text' => '&lt;&lt; '.T_('Previous'),
 174                 'next_text' => T_('Next').' &gt;&gt;',
 175              ) );
 176          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 177      ?>
 178  
 179      <?php
 180          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 181          skin_include( '$disp$', array(
 182                  'disp_posts'  => '',        // We already handled this case above
 183                  'disp_single' => '',        // We already handled this case above
 184                  'disp_page'   => '',        // We already handled this case above
 185                  'author_link_text' => 'preferredname',
 186              ) );
 187          // Note: you can customize any of the sub templates included here by
 188          // copying the matching php file into your skin directory.
 189          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 190      ?>
 191  
 192  </div>
 193  <!-- =================================== START OF SIDEBAR =================================== -->
 194  
 195  <div class="evo_sidebar">
 196  
 197      <?php
 198          // Display container contents:
 199          skin_container( NT_('Sidebar'), array(
 200                  // The following (optional) params will be used as defaults for widgets included in this container:
 201                  // This will enclose each widget in a block:
 202                  'block_start' => '<div class="evo_side_item $wi_class$">',
 203                  'block_end' => '</div>',
 204                  // This will enclose the title of each widget:
 205                  'block_title_start' => '<h3>',
 206                  'block_title_end' => '</h3>',
 207                  // If a widget displays a list, this will enclose that list:
 208                  'list_start' => '<ul>',
 209                  'list_end' => '</ul>',
 210                  // This will enclose each item in a list:
 211                  'item_start' => '<li>',
 212                  'item_end' => '</li>',
 213                  // This will enclose sub-lists in a list:
 214                  'group_start' => '<ul>',
 215                  'group_end' => '</ul>',
 216              ) );
 217      ?>
 218  
 219      <?php
 220          // Please help us promote b2evolution and leave this logo on your blog:
 221          powered_by( array(
 222                  'block_start' => '<div class="powered_by">',
 223                  'block_end'   => '</div>',
 224                  // Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
 225                  'img_url'     => '$rsc$img/powered-by-b2evolution-120t.gif',
 226                  'img_width'   => 120,
 227                  'img_height'  => 32,
 228              ) );
 229      ?>
 230  
 231  </div>
 232  
 233  <div class="clear"><?php echo get_icon( 'pixel' ); ?></div>
 234  
 235  </div>
 236  </div>
 237  
 238  <?php
 239  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 240  skin_include( '_body_footer.inc.php' );
 241  // Note: You can customize the default BODY footer by copying the
 242  // _body_footer.inc.php file into the current skin folder.
 243  // ------------------------------- END OF FOOTER --------------------------------
 244  ?>
 245  
 246  <?php
 247  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 248  skin_include( '_html_footer.inc.php' );
 249  // Note: You can customize the default HTML footer by copying the
 250  // _html_footer.inc.php file into the current skin folder.
 251  // ------------------------------- END OF FOOTER --------------------------------
 252  ?>

title

Description

title

Description

title

Description

title

title

Body