b2evolution PHP Cross Reference Blogging Systems

Source: /skins/vastitude/index.main.php - 310 lines - 11295 bytes - Text - Print

Description: This is the main/default template for the "Smoothe" series of skins. b2evo 2.4.1 Skin: Vastitude / design by Andrew Hreschak, www.thedarksighed.com

   1  <?php
   2  /**
   3   * This is the main/default template for the "Smoothe" series of skins.
   4   * b2evo 2.4.1 Skin: Vastitude / design by Andrew Hreschak, www.thedarksighed.com
   5   *
   6   * This skin only uses one single template which includes most of its features.
   7   * It will also rely on default includes for specific dispays (like the comment form).
   8   *
   9   * For a quick explanation of b2evo 2.0 skins, please start here:
  10   * {@link http://b2evolution.net/man/skin-structure}
  11   *
  12   * The main page template is used to display the blog when no specific page template is available
  13   * to handle the request (based on $disp).
  14   *
  15   * @package evoskins
  16   * @subpackage smoothe
  17   *
  18   * @version $Id: index.main.php 4275 2013-07-17 10:52:24Z yura $
  19   */
  20  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  21  
  22  if( version_compare( $app_version, '3.0' ) < 0 )
  23  { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  24      die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  25  }
  26  
  27  // This is the main template; it may be used to display very different things.
  28  // Do inits depending on current $disp:
  29  skin_init( $disp );
  30  
  31  
  32  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  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  <div id="prewrap">
  41      <?php
  42          // ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
  43          // Display container and contents:
  44          skin_container( NT_('Page Top'), array(
  45                  // The following params will be used as defaults for widgets included in this container:
  46                  'block_start'         => '<div class="$wi_class$">',
  47                  'block_end'           => '</div>',
  48                  'block_display_title'    =>    false,
  49                  'list_start'        =>    '<ul>',
  50                  'list_end'        =>    '</ul>',
  51                  'item_start'        =>    '<li>',
  52                  'item_end'        =>    ' &nbsp; / &nbsp; </li>',
  53                  'item_selected_start'    =>    '<li class="selected">',
  54                  'item_selected_end'    =>    ' &nbsp; / &nbsp; </li>',
  55                  'link_selected_class'    =>    'selected',
  56              ) );
  57          // ----------------------------- END OF "Page Top" CONTAINER -----------------------------
  58      ?>
  59  </div>
  60  <div id="wrap">
  61  <div id="bannertop">
  62  <div class="topicons"></div>
  63  </div> <!-- END BANNERTOP DIV -->
  64  <div id="bannermid">
  65      <div class="subtitle">
  66      <?php
  67          // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
  68          // Display container and contents:
  69          skin_container( NT_('Header'), array(
  70                  // The following params will be used as defaults for widgets included in this container:
  71                  'block_start'       => '<div class="$wi_class$">',
  72                  'block_end'         => '</div>',
  73                  'block_title_start' => '<h1>',
  74                  'block_title_end'   => '</h1>',
  75              ) );
  76          // ----------------------------- END OF "Header" CONTAINER -----------------------------
  77      ?>
  78      </div> <!-- END SUBTITLE DIV -->
  79  </div> <!-- END BANNERMID DIV -->
  80  <div class="submenu">
  81      <ul id="mainnav">
  82      <?php
  83          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  84          // Display container and contents:
  85          // Note: this container is designed to be a single <ul> list
  86          skin_container( NT_('Menu'), array(
  87                  // The following params will be used as defaults for widgets included in this container:
  88                  'block_start' => '',
  89                  'block_end' => '',
  90                  'block_display_title' => false,
  91                  'list_start' => '',
  92                  'list_end' => '',
  93                  'item_start'        =>    '<li>',
  94                  'item_end'        =>    ' &nbsp; / </li>',
  95                  'item_selected_start'    =>    '<li class="selected">',
  96                  'item_selected_end'    =>    ' &nbsp; / </li>',
  97                  'link_selected_class'    =>    'selected',
  98              ) );
  99          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
 100      ?>
 101      </ul>
 102  </div>
 103  
 104  
 105  <!-- =================================== START OF MAIN AREA =================================== -->
 106  <div id="content">
 107      <div class="leftside">
 108      <?php
 109          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 110          messages( array(
 111                  'block_start' => '<div class="action_messages">',
 112                  'block_end'   => '</div>',
 113              ) );
 114          // --------------------------------- END OF MESSAGES ---------------------------------
 115      ?>
 116  <div class="text">
 117      <?php
 118          // ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
 119          request_title( array(
 120                  'title_before'=> '<h2>',
 121                  'title_after' => '</h2>',
 122                  'title_none'  => '',
 123                  'glue'        => ' - ',
 124                  'title_single_disp' => true,
 125                  'format'      => 'htmlbody',
 126              ) );
 127          // ----------------------------- END OF REQUEST TITLE ----------------------------
 128      ?>
 129  
 130      <?php
 131      // Go Grab the featured post:
 132      if( $Item = & get_featured_Item() )
 133      {    // We have a featured/intro post to display:
 134          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 135          skin_include( '_item_block.inc.php', array(
 136                  'feature_block' => true,
 137                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 138                  'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 139                  'item_class'   => 'featured_post',
 140                  'image_size'     =>    'fit-400x320',
 141              ) );
 142          // ----------------------------END ITEM BLOCK  ----------------------------
 143      }
 144      ?>
 145  
 146      <?php
 147          // --------------------------------- START OF POSTS -------------------------------------
 148          // Display message if no post:
 149          display_if_empty();
 150  
 151          echo '<div id="styled_content_block">'; // Beginning of posts display
 152          while( $Item = & mainlist_get_item() )
 153          {    // For each blog post:
 154              // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 155              skin_include( '_item_block.inc.php', array(
 156                      'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 157                      'image_size'     =>    'fit-400x320',
 158                  ) );
 159              // ----------------------------END ITEM BLOCK  ----------------------------
 160          } // ---------------------------------- END OF POSTS ------------------------------------
 161          echo '</div>'; // End of posts display
 162      ?>
 163  
 164      <?php
 165          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 166          mainlist_page_links( array(
 167          'block_start'        =>    '<p class="center">',
 168          'block_end'        =>    '</p>',
 169             'prev_text'        =>    '&lt;&lt;',
 170             'next_text'        =>    '&gt;&gt;',
 171          ) );
 172          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 173      ?>
 174  
 175  
 176      <?php
 177          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 178          skin_include( '$disp$', array(
 179                  'disp_posts'  => '',        // We already handled this case above
 180                  'disp_single' => '',        // We already handled this case above
 181                  'disp_page'   => '',        // We already handled this case above
 182                  'author_link_text' => 'preferredname',
 183              ) );
 184          // Note: you can customize any of the sub templates included here by
 185          // copying the matching php file into your skin directory.
 186          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 187      ?>
 188  </div><!-- END text -->
 189  </div><!-- END leftside -->
 190  <div class="rightside">
 191      <div id="sidebar">
 192          <ul>
 193          <?php
 194              // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 195              item_prevnext_links( array(
 196                      'block_start' => '<li class="prevnext">',
 197                      'prev_start'  => 'Previous Post:<br />',
 198                      'prev_end'    => '<br /><br />',
 199                      'next_start'  => 'Next Post:<br />',
 200                      'next_end'    => '<br /><br />',
 201                      'block_end'   => '</li>',
 202                  ) );
 203          ?>
 204      <?php
 205          // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
 206          // Display container contents:
 207          skin_container( NT_('Sidebar'), array(
 208                  // The following (optional) params will be used as defaults for widgets included in this container:
 209                  // This will enclose each widget in a block:
 210                  'block_start' => '<li class="$wi_class$">',
 211                  'block_end' => '</li>',
 212                  // This will enclose the title of each widget:
 213                  'block_title_start' => '<h2>',
 214                  'block_title_end' => '</h2>',
 215                  // If a widget displays a list, this will enclose that list:
 216                  'list_start' => '<ul>',
 217                  'list_end' => '</ul>',
 218                  // This will enclose each item in a list:
 219                  'item_start' => '<li>',
 220                  'item_end' => '</li>',
 221                  // This will enclose sub-lists in a list:
 222                  'group_start' => '<ul>',
 223                  'group_end' => '</ul>',
 224                  // This will enclose (foot)notes:
 225                  'notes_start' => '<div class="notes">',
 226                  'notes_end' => '</div>',
 227              ) );
 228          // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
 229      ?>
 230          </ul>
 231  
 232          <?php
 233              // Please help us promote b2evolution and leave this logo on your blog:
 234              powered_by( array(
 235                      'block_start' => '<div class="powered_by">',
 236                      'block_end'   => '</div>',
 237                      // Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
 238                      'img_url'     => 'img/powered-by-b2evolution-138x39-895C46.gif',
 239                      'img_width'   => 138,
 240                      'img_height'  => 39,
 241                  ) );
 242          ?>
 243      </div>
 244  </div> <!-- END RS DIV -->
 245  </div> <!-- END CONTENT DIV -->
 246  
 247  <!-- =================================== START OF FOOTER =================================== -->
 248  <div class="pagefoot">
 249      <?php
 250          // Display container and contents:
 251          skin_container( NT_("Footer"), array(
 252                  // The following params will be used as defaults for widgets included in this container:
 253              ) );
 254          // Note: Double quotes have been used around "Footer" only for test purposes.
 255      ?>
 256      <p class="center">
 257          <?php
 258              // Display footer text (text can be edited in Blog Settings):
 259              $Blog->footer_text( array(
 260                      'before'      => '',
 261                      'after'       => ' &bull; ',
 262                  ) );
 263          ?>
 264  
 265          <?php
 266              // Display a link to contact the owner of this blog (if owner accepts messages):
 267              $Blog->contact_link( array(
 268                      'before'      => '',
 269                      'after'       => '',
 270                      'text'   => T_('Contact'),
 271                      'title'  => T_('Send a message to the owner of this blog...'),
 272                  ) );
 273              // Display a link to help page:
 274              $Blog->help_link( array(
 275                      'before'      => ' &bull; ',
 276                      'after'       => ' ',
 277                      'text'        => T_('Help'),
 278                  ) );
 279          ?>
 280  
 281          <?php
 282              // Display additional credits:
 283               // If you can add your own credits without removing the defaults, you'll be very cool :))
 284               // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
 285              credits( array(
 286                      'list_start'  => '&bull;',
 287                      'list_end'    => ' ',
 288                      'separator'   => '&bull;',
 289                      'item_start'  => ' ',
 290                      'item_end'    => ' ',
 291                  ) );
 292          ?>
 293  
 294          <br/><?php display_param_link( $skin_links ) ?> <a href="http://blog.thedarksighed.com/projectblog/" title="Custom b2evolution template designs">design by Andrew Hreschak</a>
 295  
 296      </p>
 297  
 298  </div><!-- END pagefoot -->
 299  
 300  </div><!-- END wrap -->
 301  
 302  
 303  
 304  <?php
 305  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 306  skin_include( '_html_footer.inc.php' );
 307  // Note: You can customize the default HTML footer by copying the
 308  // _html_footer.inc.php file into the current skin folder.
 309  // ------------------------------- END OF FOOTER --------------------------------
 310  ?>

title

Description

title

Description

title

Description

title

title

Body