b2evolution PHP Cross Reference Blogging Systems

Source: /skins/pixelgreen/index.main.php - 265 lines - 9256 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   * The main page template is used to display the blog when no specific page template is available
   9   * to handle the request (based on $disp).
  10   *
  11   * @package evoskins
  12   * @subpackage pixelgreen
  13   *
  14   * @version $Id: index.main.php 4275 2013-07-17 10:52:24Z yura $
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  if( version_compare( $app_version, '3.0' ) < 0 )
  19  { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  20      die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  21  }
  22  
  23  // This is the main template; it may be used to display very different things.
  24  // Do inits depending on current $disp:
  25  skin_init( $disp );
  26  
  27  
  28  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  29  skin_include( '_html_header.inc.php' );
  30  // Note: You can customize the default HTML header by copying the generic
  31  // /skins/_html_header.inc.php file into the current skin folder.
  32  // -------------------------------- END OF HEADER --------------------------------
  33  ?>
  34  
  35  <div id="header">
  36      <div id="header-content">
  37  
  38          <div class="PageTop">
  39              <?php
  40                  // Display container and contents:
  41                  skin_container( NT_('Page Top'), array(
  42                          // The following params will be used as defaults for widgets included in this container:
  43                          'block_start' => '<div class="$wi_class$">',
  44                          'block_end' => '</div>',
  45                          'block_display_title' => false,
  46                          'list_start' => '<ul>',
  47                          'list_end' => '</ul>',
  48                          'item_start' => '<li>',
  49                          'item_end' => '</li>',
  50                      ) );
  51              ?>
  52          </div>
  53  
  54          <?php
  55              // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
  56              // Display container and contents:
  57              skin_container( NT_('Header'), array(
  58                      // The following params will be used as defaults for widgets included in this container:
  59                      'block_start'       => '<div class="$wi_class$">',
  60                      'block_end'         => '</div>',
  61                      'block_title_start' => '<h1>',
  62                      'block_title_end'   => '</h1>',
  63                  ) );
  64              // ----------------------------- END OF "Header" CONTAINER -----------------------------
  65          ?>
  66  
  67          <div class="top_menu">
  68              <ul>
  69              <?php
  70                  // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  71                  // Display container and contents:
  72                  // Note: this container is designed to be a single <ul> list
  73                  skin_container( NT_('Menu'), array(
  74                          // The following params will be used as defaults for widgets included in this container:
  75                          'block_start'         => '',
  76                          'block_end'           => '',
  77                          'block_display_title' => false,
  78                          'list_start'          => '',
  79                          'list_end'            => '',
  80                          'item_start'          => '<li>',
  81                          'item_end'            => '</li>',
  82                      ) );
  83                  // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  84              ?>
  85              </ul>
  86              &nbsp;
  87          </div>
  88  
  89      </div>
  90  </div>
  91  
  92  <!-- wrap starts here -->
  93  <div id="wrap">
  94  
  95      <div class="headerphoto"></div>
  96  
  97      <!-- content-wrap starts here -->
  98      <div id="content-wrap"><div id="content">
  99          <?php
 100              // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 101              messages( array(
 102                  'block_start' => '<div class="action_messages">',
 103                  'block_end'   => '</div>',
 104              ) );
 105              // --------------------------------- END OF MESSAGES ---------------------------------
 106          ?>
 107          <?php
 108              // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
 109              request_title( array(
 110                      'title_before'=> '<h2>',
 111                      'title_after' => '</h2>',
 112                      'title_none'  => '',
 113                      'glue'        => ' - ',
 114                      'title_single_disp' => false,
 115                      'format'      => 'htmlbody',
 116                  ) );
 117              // ------------------------------ END OF REQUEST TITLE -----------------------------
 118          ?>
 119          <?php
 120          // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 121          skin_include( '_sidebar.inc.php' );
 122          // Note: You can customize the default BODY footer by copying the
 123          // _body_footer.inc.php file into the current skin folder.
 124          // ----------------------------- END OF SIDEBAR -----------------------------
 125          ?>
 126  
 127          <div id="main">
 128              <?php
 129              // Go Grab the featured post:
 130              if( $Item = & get_featured_Item() )
 131              {    // We have a featured/intro post to display:
 132                  // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 133                  skin_include( '_item_block.inc.php', array(
 134                          'feature_block' => true,
 135                          'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 136                          'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 137                          'item_class'   => 'post featured_post',
 138                          'image_size'     =>    'fit-400x320',
 139                      ) );
 140                  // ----------------------------END ITEM BLOCK  ----------------------------
 141              }
 142              ?>
 143  
 144              <?php
 145                  // --------------------------------- START OF POSTS -------------------------------------
 146                  // Display message if no post:
 147                  display_if_empty();
 148  
 149                  echo '<div id="styled_content_block">'; // Beginning of posts display
 150                  while( $Item = & mainlist_get_item() )
 151                  {    // For each blog post:
 152                      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 153                      skin_include( '_item_block.inc.php', array(
 154                              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 155                              'image_size'     =>    'fit-400x320',
 156                          ) );
 157                      // ----------------------------END ITEM BLOCK  ----------------------------
 158                  } // ---------------------------------- END OF POSTS ------------------------------------
 159                  echo '</div>'; // End of posts display
 160              ?>
 161  
 162              <?php
 163                  // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 164                  mainlist_page_links( array(
 165                          'block_start' => '<p class="center"><strong>',
 166                          'block_end' => '</strong></p>',
 167                         'prev_text' => '&lt;&lt;',
 168                         'next_text' => '&gt;&gt;',
 169                      ) );
 170                  // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 171              ?>
 172  
 173              <?php
 174                  // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 175                  //skin_include( '$disp$', array() );
 176                  skin_include( '$disp$', array(
 177                      'disp_posts'  => '', // We already handled this case above
 178                      'disp_single' => '', // We already handled this case above
 179                      'disp_page'   => '', // We already handled this case above
 180                      'author_link_text' => 'preferredname',
 181                  ) );
 182                  // Note: you can customize any of the sub templates included here by
 183                  // copying the matching php file into your skin directory.
 184                  // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 185              ?>
 186  
 187  
 188          </div>
 189  
 190      <!-- content-wrap ends here -->
 191      </div></div>
 192  
 193  <!-- footer starts here -->
 194  <div id="footer"><div id="footer-content">
 195      <?php
 196          // ------------------------- "Footer" CONTAINER EMBEDDED HERE --------------------------
 197          // Display container and contents:
 198          skin_container( NT_('Footer'), array(
 199                  // The following params will be used as defaults for widgets included in this container:
 200                  'block_start'       => '<div class="col float-left $wi_class$">',
 201                  'block_end'         => '</div>',
 202                  'block_title_start' => '<h1>',
 203                  'block_title_end'   => '</h1>',
 204              ) );
 205          // ----------------------------- END OF "Footer" CONTAINER -----------------------------
 206      ?>
 207  
 208          <div class="col2 float-right">
 209          <p>
 210          Design by: <a href="http://www.styleshout.com/free-templates.php">styleshout</a><br />
 211          Skin by: <a href="http://www.brendoman.com/dbc">Danny Ferguson</a> / <?php display_param_link( $skinfaktory_links ) ?><br />
 212          </p>
 213  
 214          </div>
 215  
 216          <p class="baseline">
 217              <?php
 218                  // Display a link to contact the owner of this blog (if owner accepts messages):
 219                  $Blog->contact_link( array(
 220                          'before'      => '',
 221                          'after'       => '',
 222                          'text'   => T_('Contact'),
 223                          'title'  => T_('Send a message to the owner of this blog...'),
 224                      ) );
 225                  // Display a link to help page:
 226                  $Blog->help_link( array(
 227                          'before'      => ' &bull; ',
 228                          'after'       => ' ',
 229                          'text'        => T_('Help'),
 230                      ) );
 231              ?>
 232              <?php
 233                  // Display footer text (text can be edited in Blog Settings):
 234                  $Blog->footer_text( array(
 235                          'before'      => ' &bull; ',
 236                          'after'       => '',
 237                      ) );
 238              ?>
 239              <br />
 240              <?php
 241                  // Display additional credits:
 242                  // If you can add your own credits without removing the defaults, you'll be very cool :))
 243                  // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
 244                  credits( array(
 245                          'list_start'  => ' ',
 246                          'list_end'    => ' ',
 247                          'separator'   => '&bull;',
 248                          'item_start'  => ' ',
 249                          'item_end'    => ' ',
 250                      ) );
 251              ?>
 252          </p>
 253  
 254  
 255  </div></div>
 256  <!-- footer ends here -->
 257  <?php
 258      // Trigger plugin event, which could be used e.g. by a google_analytics plugin to add the javascript snippet here:
 259      $Plugins->trigger_event('SkinEndHtmlBody');
 260  ?>
 261  <!-- wrap ends here -->
 262  </div>
 263  
 264  </body>
 265  </html>

title

Description

title

Description

title

Description

title

title

Body