b2evolution PHP Cross Reference Blogging Systems

Source: /skins/terrafirma/index.main.php - 298 lines - 11575 bytes - Text - Print

Description: This is the main/default page template for the "custom" skin.

   1  <?php
   2  /**
   3   * This is the main/default page template for the "custom" skin.
   4   *
   5   * This skin only uses one single template which includes most of its features.
   6   * It will also rely on default includes for specific dispays (like the comment form).
   7   *
   8   * For a quick explanation of b2evo 2.0 skins, please start here:
   9   * {@link http://b2evolution.net/man/skin-structure}
  10   *
  11   * The main page template is used to display the blog when no specific page template is available
  12   * to handle the request (based on $disp).
  13   *
  14   * @package evoskins
  15   * @subpackage terrafirma
  16   *
  17   * @version $Id: index.main.php 4275 2013-07-17 10:52:24Z yura $
  18   */
  19  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  20  
  21  if( version_compare( $app_version, '3.0' ) < 0 )
  22  { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  23      die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  24  }
  25  
  26  // This is the main template; it may be used to display very different things.
  27  // Do inits depending on current $disp:
  28  skin_init( $disp );
  29  
  30  
  31  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  32  skin_include( '_html_header.inc.php' );
  33  // Note: You can customize the default HTML header by copying the generic
  34  // /skins/_html_header.inc.php file into the current skin folder.
  35  // -------------------------------- END OF HEADER --------------------------------
  36  ?>
  37  <div id="wrapper">
  38      <div id="upbg"></div>
  39      <div id="inner">
  40  
  41          <div class="pageHeader">
  42              <?php
  43                  // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
  44                  // Display container and contents:
  45                  skin_container( NT_('Header'), array(
  46                          // The following params will be used as defaults for widgets included in this container:
  47                          'block_start'       => '<div class="$wi_class$">',
  48                          'block_end'         => '</div>',
  49                          'block_title_start' => '<h1>',
  50                          'block_title_end'   => '</h1>',
  51                      ) );
  52                  // ----------------------------- END OF "Header" CONTAINER -----------------------------
  53              ?>
  54          </div>
  55          <div id="splash">
  56              <div class="PageTop">
  57              <?php
  58                  // ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
  59                  // Display container and contents:
  60                  skin_container( NT_('Page Top'), array(
  61                          // The following params will be used as defaults for widgets included in this container:
  62                          'block_start'         => '<div class="$wi_class$">',
  63                          'block_end'           => '</div>',
  64                          'block_display_title' => false,
  65                          'list_start'          => '<ul>',
  66                          'list_end'            => '</ul>',
  67                          'item_start'          => '<li>',
  68                          'item_end'            => '</li>',
  69                      ) );
  70                  // ----------------------------- END OF "Page Top" CONTAINER -----------------------------
  71              ?>
  72              </div>
  73          </div>
  74              <div class="top_menu">
  75                  <ul>
  76                  <?php
  77                      // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  78                      // Display container and contents:
  79                      // Note: this container is designed to be a single <ul> list
  80                      skin_container( NT_('Menu'), array(
  81                              // The following params will be used as defaults for widgets included in this container:
  82                              'block_start'         => '',
  83                              'block_end'           => '',
  84                              'block_display_title' => false,
  85                              'list_start'          => '',
  86                              'list_end'            => '',
  87                              'item_start'          => '<li>',
  88                              'item_end'            => '</li>',
  89                          ) );
  90                      // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  91                  ?>
  92                  </ul>
  93                  <?php if ( true /* change to false to hide the search box */ ) { ?>
  94                  <div id="search">
  95                  Find<br />
  96                  <form action="<?php $Blog->gen_blogurl() ?>" method="get" class="search">
  97                  <input name="s" size="15" value="" class="form_text_input" type="text" />&nbsp;<input name="submit" class="searchsubmit" value="Go" type="submit" /></form></div>
  98                  <?php } ?>
  99                  <div class="clear"></div>
 100              </div>
 101  
 102  
 103              <!-- =================================== START OF MAIN AREA =================================== -->
 104              <div class="bPosts">
 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                      // ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
 117                      if ($disp != 'page')
 118                      {
 119                          request_title( array(
 120                                  'title_before'=> '<h2 class="pagetitle">',
 121                                  'title_after' => '</h2>',
 122                                  'title_none'  => '',
 123                                  'glue'        => ' - ',
 124                                  'title_single_disp' => false,
 125                                  'format'      => 'htmlbody',
 126                              ) );
 127                      }
 128                      // ----------------------------- END OF REQUEST TITLE ----------------------------
 129                  ?>
 130  
 131                  <?php
 132                  // Go Grab the featured post:
 133                  if( $Item = & get_featured_Item() )
 134                  {    // We have a featured/intro post to display:
 135                      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 136                      skin_include( '_item_block.inc.php', array(
 137                              'feature_block' => true,
 138                              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 139                              'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 140                              'item_class'   => 'bPost featured_post',
 141                              'image_size'     =>    'fit-400x320',
 142                          ) );
 143                      // ----------------------------END ITEM BLOCK  ----------------------------
 144                  }
 145                  ?>
 146  
 147                  <?php
 148                      // --------------------------------- START OF POSTS -------------------------------------
 149                      // Display message if no post:
 150                      display_if_empty();
 151  
 152                      echo '<div id="styled_content_block">'; // Beginning of posts display
 153                      while( $Item = & mainlist_get_item() )
 154                      {    // For each blog post:
 155                          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 156                          skin_include( '_item_block.inc.php', array(
 157                                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 158                                  'image_size'     =>    'fit-400x320',
 159                              ) );
 160                          // ----------------------------END ITEM BLOCK  ----------------------------
 161                      } // ---------------------------------- END OF POSTS ------------------------------------
 162                      echo '</div>'; // End of posts display
 163                  ?>
 164  
 165                  <?php
 166                      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 167                      mainlist_page_links( array(
 168                              'block_start' => '<p class="center"><strong>',
 169                              'block_end' => '</strong></p>',
 170                          'prev_text' => '&lt;&lt;',
 171                          'next_text' => '&gt;&gt;',
 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                              'display_comment_avatar' => false,
 185                          ) );
 186                      // Note: you can customize any of the sub templates included here by
 187                      // copying the matching php file into your skin directory.
 188                      // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 189                  ?>
 190  
 191              </div>
 192  
 193  
 194              <!-- =================================== START OF SIDEBAR =================================== -->
 195              <div class="bSideBar">
 196  
 197                  <?php
 198                      // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
 199                      // Display container contents:
 200                      skin_container( NT_('Sidebar'), array(
 201                              // The following (optional) params will be used as defaults for widgets included in this container:
 202                              // This will enclose each widget in a block:
 203                              'block_start' => '<div class="bSideItem $wi_class$">',
 204                              'block_end' => '</div>',
 205                              // This will enclose the title of each widget:
 206                              'block_title_start' => '<h2>',
 207                              'block_title_end' => '</h2>',
 208                              // If a widget displays a list, this will enclose that list:
 209                              'list_start' => '<ul>',
 210                              'list_end' => '</ul>',
 211                              // This will enclose each item in a list:
 212                              'item_start' => '<li>',
 213                              'item_end' => '</li>',
 214                              // This will enclose sub-lists in a list:
 215                              'group_start' => '<ul>',
 216                              'group_end' => '</ul>',
 217                              // This will enclose (foot)notes:
 218                              'notes_start' => '<div class="notes">',
 219                              'notes_end' => '</div>',
 220                          ) );
 221                      // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
 222                  ?>
 223  
 224                  <?php
 225                      // Please help us promote b2evolution and leave this logo on your blog:
 226                      powered_by( array(
 227                              'block_start' => '<div class="powered_by">',
 228                              'block_end'   => '</div>',
 229                              // Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
 230                              'img_url'     => '$rsc$img/powered-by-b2evolution-120t.gif',
 231                              'img_width'   => 120,
 232                              'img_height'  => 32,
 233                          ) );
 234                  ?>
 235              </div>
 236  
 237  
 238              <!-- =================================== START OF FOOTER =================================== -->
 239              <div id="pageFooter">
 240                  <?php
 241                      // Display container and contents:
 242                      skin_container( NT_("Footer"), array(
 243                              // The following params will be used as defaults for widgets included in this container:
 244                          ) );
 245                      // Note: Double quotes have been used around "Footer" only for test purposes.
 246                  ?>
 247                  <p class="baseline">
 248                      <span class="author_credits">
 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'       => '',
 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'      => ' &bull; ',
 260                                  'after'       => ' ',
 261                                  'text'        => T_('Help'),
 262                              ) );
 263                      ?>
 264                      <?php
 265                          // Display footer text (text can be edited in Blog Settings):
 266                          $Blog->footer_text( array(
 267                                  'before'      => ' &bull; ',
 268                                  'after'       => '',
 269                              ) );
 270                      ?>
 271                      </span>
 272  
 273                      <br />Design: <a href="http://www.nodethirtythree.com">Node33</a> | <a href="http://wpthemepark.com/themes/terrafirma/">Sadish Bala</a> | <?php display_param_link( $skinfaktory_links ) ?>
 274  
 275                      <?php
 276                          // Display additional credits:
 277                          // If you can add your own credits without removing the defaults, you'll be very cool :))
 278                          // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
 279                          credits( array(
 280                                  'list_start'  => '|',
 281                                  'list_end'    => ' ',
 282                                  'separator'   => '|',
 283                                  'item_start'  => ' ',
 284                                  'item_end'    => ' ',
 285                              ) );
 286                      ?>
 287                  </p>
 288          </div>
 289      </div>
 290  </div>
 291  
 292  <?php
 293  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 294  skin_include( '_html_footer.inc.php' );
 295  // Note: You can customize the default HTML footer by copying the
 296  // _html_footer.inc.php file into the current skin folder.
 297  // ------------------------------- END OF FOOTER --------------------------------
 298  ?>

title

Description

title

Description

title

Description

title

title

Body