b2evolution PHP Cross Reference Blogging Systems

Source: /skins/miami_blue/index.main.php - 290 lines - 9459 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 custom
  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 id="wrapper">
  35  <div id="wrapper2">
  36  
  37  
  38  <div class="pageHeader">
  39  
  40      <div id="page_top">
  41          <?php
  42              // Display container and contents:
  43              skin_container( NT_('Page Top'), array(
  44                      // The following params will be used as defaults for widgets included in this container:
  45                      'block_start' => '<div class="$wi_class$">',
  46                      'block_end' => '</div>',
  47                      'block_display_title' => false,
  48                      'list_start' => '<ul>',
  49                      'list_end' => '</ul>',
  50                      'item_start' => '<li>',
  51                      'item_end' => '</li>',
  52                  ) );
  53          ?>
  54      </div>
  55  
  56  
  57      <?php
  58          // Display container and contents:
  59          skin_container( NT_('Header'), array(
  60                  // The following params will be used as defaults for widgets included in this container:
  61                  'block_start' => '<div class="$wi_class$">',
  62                  'block_end' => '</div>',
  63                  'block_title_start' => '<h1>',
  64                  'block_title_end' => '</h1>',
  65              ) );
  66      ?>
  67  
  68  </div>
  69  
  70  <div id="page_main_area">
  71  
  72  <div class="bPosts">
  73  
  74  <div class="top_menu">
  75      <ul>
  76      <?php
  77          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  78          // Display container and contents:
  79          skin_container( NT_('Menu'), array(
  80                  // The following params will be used as defaults for widgets included in this container:
  81                  'block_start' => '',
  82                  'block_end' => '',
  83                  'block_display_title' => false,
  84                  'list_start' => '',
  85                  'list_end' => '',
  86                  'item_start' => '<li>',
  87                  'item_end' => '</li>',
  88              ) );
  89          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  90      ?>
  91      </ul>
  92  </div>
  93  
  94      <!-- =================================== START OF MAIN AREA =================================== -->
  95  
  96      <?php
  97          // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  98          messages( array(
  99              'block_start' => '<div class="action_messages">',
 100              'block_end'   => '</div>',
 101          ) );
 102          // --------------------------------- END OF MESSAGES ---------------------------------
 103      ?>
 104  
 105  
 106      <?php
 107          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 108          item_prevnext_links( array(
 109                  'block_start' => '<table class="prevnext_post"><tr>',
 110                  'prev_start'  => '<td>',
 111                  'prev_end'    => '</td>',
 112                  'next_start'  => '<td class="right">',
 113                  'next_end'    => '</td>',
 114                  'block_end'   => '</tr></table>',
 115              ) );
 116          // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
 117      ?>
 118  
 119      <?php
 120          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
 121          request_title( array(
 122                  'title_before'=> '<h1>',
 123                  'title_after' => '</h1>',
 124                  'title_none'  => '',
 125                  'glue'        => ' - ',
 126                  'title_single_disp' => false,
 127                  'format'      => 'htmlbody',
 128              ) );
 129          // ------------------------------ END OF REQUEST TITLE -----------------------------
 130      ?>
 131  
 132      <?php
 133      // Go Grab the featured post:
 134      if( $Item = & get_featured_Item() )
 135      {    // We have a featured/intro post to display:
 136          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 137          skin_include( '_item_block.inc.php', array(
 138                  'feature_block' => true,
 139                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 140                  'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 141                  'item_class'   => 'featured_post',
 142                  'image_size'     =>    'fit-400x320',
 143              ) );
 144          // ----------------------------END ITEM BLOCK  ----------------------------
 145      }
 146      ?>
 147  
 148      <?php
 149          // ------------------------------------ START OF POSTS ----------------------------------------
 150          // Display message if no post:
 151          display_if_empty();
 152  
 153          echo '<div id="styled_content_block">'; // Beginning of posts display
 154          while( $Item = & mainlist_get_item() )
 155          {    // For each blog post:
 156              // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 157              skin_include( '_item_block.inc.php', array(
 158                      'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 159                      'image_size'     =>    'fit-400x320',
 160                  ) );
 161              // ----------------------------END ITEM BLOCK  ----------------------------
 162          } // ---------------------------------- END OF POSTS ------------------------------------
 163          echo '</div>'; // End of posts display
 164  
 165      ?>
 166  
 167      <?php
 168          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 169          mainlist_page_links( array(
 170                  'block_start' => '<p class="center">'.T_('Pages:').' <strong>',
 171                  'block_end' => '</strong></p>',
 172              ) );
 173          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 174      ?>
 175  
 176  
 177      <?php
 178          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 179          skin_include( '$disp$', array(
 180                  'disp_posts'  => '',        // We already handled this case above
 181                  'disp_single' => '',        // We already handled this case above
 182                  'disp_page'   => '',        // We already handled this case above
 183                  'author_link_text' => 'preferredname',
 184              ) );
 185          // Note: you can customize any of the sub templates included here by
 186          // copying the matching php file into your skin directory.
 187          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 188      ?>
 189  
 190  
 191  </div>
 192  <!-- =================================== START OF SIDEBAR =================================== -->
 193  
 194  <div class="bSideBar">
 195  
 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="bSideItem $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                  // This will enclose (foot)notes:
 217                  'notes_start' => '<div class="notes">',
 218                  'notes_end' => '</div>',
 219              ) );
 220      ?>
 221  
 222      <?php
 223          // Please help us promote b2evolution and leave this logo on your blog:
 224          powered_by( array(
 225                  'block_start' => '<div class="powered_by">',
 226                  'block_end'   => '</div>',
 227                  // Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
 228                  'img_url'     => '$rsc$img/powered-by-b2evolution-120t.gif',
 229                  'img_width'   => 120,
 230                  'img_height'  => 32,
 231              ) );
 232      ?>
 233  
 234      <div class="bSideBarBg"></div>
 235  </div>
 236  
 237  </div>
 238  
 239  <div id="pageFooter">
 240      <p class="baseline">
 241          <?php
 242              // Display footer text (text can be edited in Blog Settings):
 243              $Blog->footer_text( array(
 244                      'before'      => '',
 245                      'after'       => ' &bull; ',
 246                  ) );
 247          ?>
 248  
 249          <?php
 250              // Display a link to contact the owner of this blog (if owner accepts messages):
 251              $Blog->contact_link( array(
 252                      'before'      => '',
 253                      'after'       => ' &bull; ',
 254                      'text'   => T_('Contact'),
 255                      'title'  => T_('Send a message to the owner of this blog...'),
 256                  ) );
 257              // Display a link to help page:
 258              $Blog->help_link( array(
 259                      'before'      => ' ',
 260                      'after'       => ' &bull; ',
 261                      'text'        => T_('Help'),
 262                  ) );
 263          ?>
 264  
 265          <a href="http://www.sunnyislesmiamirealestate.com/b2evolution-skins/" target="_blank">skin</a>
 266  
 267          <?php
 268              // Display additional credits:
 269              // If you can add your own credits without removing the defaults, you'll be very cool :))
 270              // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
 271              credits( array(
 272                      'list_start'  => ' &bull; ',
 273                      'list_end'    => ' ',
 274                      'separator'   => '&bull;',
 275                      'item_start'  => ' ',
 276                      'item_end'    => ' ',
 277                  ) );
 278          ?>
 279      </p>
 280  </div>
 281  <div id="pageFooterBg"><div></div></div>
 282  </div>
 283  </div>
 284  <?php
 285  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 286  skin_include( '_html_footer.inc.php' );
 287  // Note: You can customize the default HTML footer by copying the
 288  // _html_footer.inc.php file into the current skin folder.
 289  // ------------------------------- END OF FOOTER --------------------------------
 290  ?>

title

Description

title

Description

title

Description

title

title

Body