b2evolution PHP Cross Reference Blogging Systems

Source: /skins/nifty_corners/index.main.php - 281 lines - 9703 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 nifty_corners
  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  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  27  // Initializations:
  28  add_headline( '<!--[if IE]><link rel="stylesheet" type="text/css" href="ie.css" /><![endif]-->' );
  29  
  30  // Include the HTML HEAD:
  31  skin_include( '_html_header.inc.php' );
  32  // Note: You can customize the default HTML header by copying the
  33  // _html_header.inc.php file into the current skin folder.
  34  // -------------------------------- END OF HEADER --------------------------------
  35  ?>
  36  
  37  
  38  <div class="wrapper">
  39  <div class="wrapper2">
  40  
  41  <div class="outerwrap">
  42  <div class="innerwrap">
  43  
  44      <div class="PageTop">
  45          <?php
  46              // ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
  47              // Display container and contents:
  48              skin_container( NT_('Page Top'), array(
  49                      // The following params will be used as defaults for widgets included in this container:
  50                      'block_start' => '<div class="$wi_class$">',
  51                      'block_end' => '</div>',
  52                      'block_display_title' => false,
  53                      'list_start' => '<ul>',
  54                      'list_end' => '</ul>',
  55                      'item_start' => '<li>',
  56                      'item_end' => '</li>',
  57                  ) );
  58              // ----------------------------- END OF "Page Top" CONTAINER -----------------------------
  59          ?>
  60      </div>
  61  
  62      <div class="pageHeader">
  63          <?php
  64              // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
  65              // Display container and contents:
  66              skin_container( NT_('Header'), array(
  67                      // The following params will be used as defaults for widgets included in this container:
  68                      'block_start' => '<div class="$wi_class$">',
  69                      'block_end' => '</div>',
  70                      'block_title_start' => '<h1>',
  71                      'block_title_end' => '</h1>',
  72                  ) );
  73              // ----------------------------- END OF "Header" CONTAINER -----------------------------
  74          ?>
  75      </div>
  76  
  77  </div>
  78  </div>
  79  
  80  <div class="posts">
  81  <div class="innerwrap">
  82  
  83  <!-- =================================== START OF MAIN AREA =================================== -->
  84  
  85  <div class="top_menu">
  86      <ul>
  87      <?php
  88          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  89          // Display container and contents:
  90          skin_container( NT_('Menu'), array(
  91                  // The following params will be used as defaults for widgets included in this container:
  92                  'block_start' => '',
  93                  'block_end' => '',
  94                  'block_display_title' => false,
  95                  'list_start' => '',
  96                  'list_end' => '',
  97                  'item_start' => '<li>',
  98                  'item_end' => '</li>',
  99              ) );
 100          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
 101      ?>
 102      </ul>
 103      <div class="clear"></div>
 104  </div>
 105  
 106  <?php
 107      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 108      messages( array(
 109              'block_start' => '<div class="action_messages">',
 110              'block_end'   => '</div>',
 111          ) );
 112      // --------------------------------- END OF MESSAGES ---------------------------------
 113  ?>
 114  
 115  <?php
 116      // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 117      item_prevnext_links( array(
 118              'block_start' => '<table class="prevnext_post"><tr>',
 119              'prev_start'  => '<td>',
 120              'prev_end'    => '</td>',
 121              'next_start'  => '<td class="right">',
 122              'next_end'    => '</td>',
 123              'block_end'   => '</tr></table>',
 124          ) );
 125      // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
 126  ?>
 127  
 128  <?php
 129      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
 130      request_title( array(
 131              'title_before'=> '<h2>',
 132              'title_after' => '</h2>',
 133              'title_none'  => '',
 134              'glue'        => ' - ',
 135              'title_single_disp' => true,
 136              'format'      => 'htmlbody',
 137          ) );
 138      // ------------------------------ END OF REQUEST TITLE -----------------------------
 139  ?>
 140  
 141  <?php
 142  // Go Grab the featured post:
 143  if( $Item = & get_featured_Item() )
 144  {    // We have a featured/intro post to display:
 145      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 146      skin_include( '_item_block.inc.php', array(
 147              'feature_block' => true,
 148              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 149              'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 150              'item_class'   => 'featured_post',
 151              'image_size'     =>    'fit-400x320',
 152          ) );
 153      // ----------------------------END ITEM BLOCK  ----------------------------
 154  }
 155  ?>
 156  
 157  <?php
 158      // ------------------------------------ START OF POSTS ----------------------------------------
 159      // Display message if no post:
 160      display_if_empty();
 161  
 162      echo '<div id="styled_content_block">'; // Beginning of posts display
 163      while( $Item = & mainlist_get_item() )
 164      {    // For each blog post, do everything below up to the closing curly brace "}"
 165      ?>
 166  
 167      <?php
 168      // ------------------------------ DATE SEPARATOR ------------------------------
 169      $MainList->date_if_changed( array(
 170              'before'      => '<h2>',
 171              'after'       => '</h2>',
 172              'date_format' => '#',
 173          ) );
 174  
 175      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 176      skin_include( '_item_block.inc.php', array(
 177              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 178              'image_size'     =>    'fit-400x320',
 179          ) );
 180      // ----------------------------END ITEM BLOCK  ----------------------------
 181  
 182      } // ---------------------------------- END OF POSTS ------------------------------------
 183      echo '</div>'; // End of posts display
 184      ?>
 185  
 186      <?php
 187          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 188          mainlist_page_links( array(
 189                  'block_start' => '<p class="center"><strong>',
 190                  'block_end' => '</strong></p>',
 191                  'links_format' => '$prev$ :: $next$',
 192                 'prev_text' => '&lt;&lt; '.T_('Previous'),
 193                 'next_text' => T_('Next').' &gt;&gt;',
 194              ) );
 195          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 196      ?>
 197  
 198  
 199      <?php
 200          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 201          skin_include( '$disp$', array(
 202                  'disp_posts'  => '',        // We already handled this case above
 203                  'disp_single' => '',        // We already handled this case above
 204                  'disp_page'   => '',        // We already handled this case above
 205                  'author_link_text' => 'preferredname',
 206              ) );
 207          // Note: you can customize any of the sub templates included here by
 208          // copying the matching php file into your skin directory.
 209          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 210      ?>
 211  
 212  
 213  </div>
 214  </div>
 215  
 216  
 217  <!-- =================================== START OF SIDEBAR =================================== -->
 218  <div class="bSideBar">
 219  <div class="innerwrap">
 220  
 221      <?php
 222          // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
 223          skin_container( NT_('Sidebar'), array(
 224                  // The following (optional) params will be used as defaults for widgets included in this container:
 225                  // This will enclose each widget in a block:
 226                  'block_start' => '<div class="bSideItem $wi_class$">',
 227                  'block_end' => '</div>',
 228                  // This will enclose the title of each widget:
 229                  'block_title_start' => '<h3>',
 230                  'block_title_end' => '</h3>',
 231                  // If a widget displays a list, this will enclose that list:
 232                  'list_start' => '<ul>',
 233                  'list_end' => '</ul>',
 234                  // This will enclose each item in a list:
 235                  'item_start' => '<li>',
 236                  'item_end' => '</li>',
 237                  // This will enclose sub-lists in a list:
 238                  'group_start' => '<ul>',
 239                  'group_end' => '</ul>',
 240                  // This will enclose (foot)notes:
 241                  'notes_start' => '<div class="notes">',
 242                  'notes_end' => '</div>',
 243              ) );
 244          // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
 245      ?>
 246  
 247      <?php
 248          // Please help us promote b2evolution and leave this logo on your blog:
 249          powered_by( array(
 250                  'block_start' => '<div class="powered_by">',
 251                  'block_end'   => '</div>',
 252                  // Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
 253                  'img_url'     => '$rsc$img/powered-by-b2evolution-120t.gif',
 254                  'img_width'   => 120,
 255                  'img_height'  => 32,
 256              ) );
 257      ?>
 258  
 259  </div>
 260  </div>
 261  
 262  <div class="clear"><?php echo get_icon( 'pixel' ); ?></div>
 263  
 264  <?php
 265  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 266  skin_include( '_body_footer.inc.php' );
 267  // Note: You can customize the default BODY footer by copying the
 268  // _body_footer.inc.php file into the current skin folder.
 269  // ------------------------------- END OF FOOTER --------------------------------
 270  ?>
 271  
 272  </div>
 273  </div>
 274  
 275  <?php
 276  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 277  skin_include( '_html_footer.inc.php' );
 278  // Note: You can customize the default HTML footer by copying the
 279  // _html_footer.inc.php file into the current skin folder.
 280  // ------------------------------- END OF FOOTER --------------------------------
 281  ?>

title

Description

title

Description

title

Description

title

title

Body