b2evolution PHP Cross Reference Blogging Systems

Source: /skins/photoblog/index.main.php - 210 lines - 8032 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 photoblog
  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  require_js( 'functions.js', 'blog' );    // for opening popup window (comments)
  27  
  28  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  29  skin_include( '_html_header.inc.php', array(
  30          'auto_pilot'      => 'seo_title',
  31          'arcdir_text'     => T_('Index'),
  32          'catdir_text'     => T_('Albums'),
  33          'category_text'   => T_('Album').': ',
  34          'categories_text' => T_('Albums').': ',
  35      ) );
  36  // Note: You can customize the default HTML header by copying the
  37  // _html_header.inc.php file into the current skin folder.
  38  // -------------------------------- END OF HEADER --------------------------------
  39  ?>
  40  
  41  <div class="PageTop">
  42      <?php
  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' => '</li>',
  53              ) );
  54      ?>
  55  </div>
  56  
  57  <div class="pageHeader">
  58  
  59      <div class="top_menu floatright">
  60          <?php
  61              // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  62              // Display container and contents:
  63              skin_container( NT_('Menu'), array(
  64                      // The following params will be used as defaults for widgets included in this container:
  65                      'block_start' => '',
  66                      'block_end' => '',
  67                      'block_display_title' => false,
  68                      'list_start' => '',
  69                      'list_end' => '',
  70                      'item_start' => ' ',
  71                      'item_end' => ' | ',
  72                      'item_selected_start' => '<b>',
  73                      'item_selected_end' => '</b> | ',
  74                  ) );
  75              // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  76          ?>
  77          <a href="<?php $Blog->disp( 'mediaidxurl', 'raw' ) ?>"><?php echo T_('Index') ?></a>
  78      </div>
  79  
  80      <h1 id="pageTitle"><a href="<?php $Blog->disp( 'url', 'raw' ) ?>"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>
  81  
  82  </div>
  83  <div class="bPosts">
  84  
  85  <!-- =================================== START OF MAIN AREA =================================== -->
  86  
  87      <?php
  88      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  89      messages( array(
  90              'block_start' => '<div class="action_messages">',
  91              'block_end'   => '</div>',
  92          ) );
  93      // --------------------------------- END OF MESSAGES ---------------------------------
  94      ?>
  95  
  96      <?php
  97          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
  98          mainlist_page_links( array(
  99                  'block_start' => '<div class="nav_right">',
 100                  'block_end' => '</div>',
 101                  'links_format' => '$next$ $prev$',
 102                  'prev_text' => '<span class="pb_icon prev" title="'.T_('Previous').'"></span>',
 103                  'next_text' => '<span class="pb_icon next" title="'.T_('Next').'"></span>',
 104                  'no_prev_text' => '',
 105                  'no_next_text' => get_icon( 'pixel', 'imgtag', array( 'size' => array( 29, 29 ), 'xy' => array( 13, 13 ), 'class' => 'no_nav' ) ),
 106              ) );
 107          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 108      ?>
 109  
 110      <?php
 111          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 112          item_prevnext_links( array(
 113                  'template' => '$next$$prev$',
 114                  'block_start' => '<div class="nav_right">',
 115                  'next_start'  => '',
 116                  'next_text' => '<span class="pb_icon next" title="'.T_('Next').'"></span>',
 117                  'next_no_item' => get_icon( 'pixel', 'imgtag', array( 'size' => array( 29, 29 ), 'xy' => array( 13, 13 ), 'class' => 'no_nav' ) ),
 118                  'next_end'    => ' ',
 119                  'prev_start'  => '',
 120                  'prev_text' => '<span class="pb_icon prev" title="'.T_('Previous').'"></span>',
 121                  'prev_no_item' => '',
 122                  'prev_end'    => '',
 123                  'block_end'   => '</div>',
 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'  => '<h2>&nbsp;</h2>',
 134                  'glue'        => ' - ',
 135                  'title_single_disp' => false,
 136                  'format'      => 'htmlbody',
 137                  'arcdir_text' => T_('Index'),
 138                  'catdir_text' => T_('Albums'),
 139                  'category_text' => T_('Album').': ',
 140                  'categories_text' => T_('Albums').': ',
 141              ) );
 142          // ------------------------------ END OF REQUEST TITLE -----------------------------
 143      ?>
 144  
 145      <?php
 146      // Go Grab the featured post:
 147      if( $Item = & get_featured_Item() )
 148      {    // We have a featured/intro post to display:
 149          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 150          skin_include( '_item_block.inc.php', array(
 151                  'feature_block' => true,
 152                  'content_mode' => 'full', // We want regular "full" content, even in category browsing: i-e no excerpt or thumbnail
 153                  'intro_mode'   => 'normal',    // Intro posts will be displayed in normal mode
 154                  'item_class'   => 'featured_post',
 155              ) );
 156          // ----------------------------END ITEM BLOCK  ----------------------------
 157      }
 158      ?>
 159  
 160      <?php
 161      // ------------------------------------ START OF POSTS ----------------------------------------
 162      // Display message if no post:
 163      display_if_empty();
 164  
 165      echo '<div id="styled_content_block">'; // Beginning of posts display
 166      while( $Item = & mainlist_get_item() )
 167      {    // For each blog post:
 168          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 169          skin_include( '_item_block.inc.php', array(
 170                  'content_mode'  => 'full', // We want regular "full" content, even in category browsing: i-e no excerpt or thumbnail
 171              ) );
 172          // ----------------------------END ITEM BLOCK  ----------------------------
 173      } // ---------------------------------- END OF POSTS ------------------------------------
 174      echo '</div>'; // End of posts display
 175      ?>
 176  
 177  
 178      <?php
 179          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 180          skin_include( '$disp$', array(
 181                  'disp_posts'  => '',        // We already handled this case above
 182                  'disp_single' => '',        // We already handled this case above
 183                  'disp_page'   => '',        // We already handled this case above
 184                  'author_link_text' => 'preferredname',
 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      <div class="bPost"></div>
 191  
 192  </div>
 193  
 194  
 195  <?php
 196  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 197  skin_include( '_body_footer.inc.php' );
 198  // Note: You can customize the default BODY footer by copying the
 199  // _body_footer.inc.php file into the current skin folder.
 200  // ------------------------------- END OF FOOTER --------------------------------
 201  ?>
 202  
 203  
 204  <?php
 205  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 206  skin_include( '_html_footer.inc.php' );
 207  // Note: You can customize the default HTML footer by copying the
 208  // _html_footer.inc.php file into the current skin folder.
 209  // ------------------------------- END OF FOOTER --------------------------------
 210  ?>

title

Description

title

Description

title

Description

title

title

Body