[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/skins/photoblog/ -> index.main.php (source)

   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://manual.b2evolution.net/Skins_2.0}

   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,v 1.9 2007/11/04 17:55:13 fplanque Exp $

  14   */
  15  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  16  
  17  // This is the main template; it may be used to display very different things.

  18  // Do inits depending on current $disp:

  19  skin_init( $disp );
  20  
  21  
  22  // -------------------------- HTML HEADER INCLUDED HERE --------------------------

  23  skin_include( '_html_header.inc.php' );
  24  // Note: You can customize the default HTML header by copying the

  25  // _html_header.inc.php file into the current skin folder.

  26  // -------------------------------- END OF HEADER --------------------------------

  27  ?>
  28  
  29  <div class="PageTop">
  30      <?php
  31          // Display container and contents:

  32          skin_container( NT_('Page Top'), array(
  33                  // The following params will be used as defaults for widgets included in this container:

  34                  'block_start' => '<div class="$wi_class$">',
  35                  'block_end' => '</div>',
  36                  'block_display_title' => false,
  37                  'list_start' => '<ul>',
  38                  'list_end' => '</ul>',
  39                  'item_start' => '<li>',
  40                  'item_end' => '</li>',
  41              ) );
  42      ?>
  43  </div>
  44  
  45  <div class="pageHeader">
  46  
  47      <div class="top_menu floatright">
  48          <?php
  49              // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------

  50              // Display container and contents:

  51              skin_container( NT_('Menu'), array(
  52                      // The following params will be used as defaults for widgets included in this container:

  53                      'block_start' => '',
  54                      'block_end' => '',
  55                      'block_display_title' => false,
  56                      'list_start' => '',
  57                      'list_end' => '',
  58                      'item_start' => ' ',
  59                      'item_end' => ' | ',
  60                  ) );
  61              // ----------------------------- END OF "Menu" CONTAINER -----------------------------

  62          ?>
  63          <a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>"><?php echo T_('Index') ?></a>
  64      </div>
  65      
  66      <h1 id="pageTitle"><a href="<?php $Blog->disp( 'url', 'raw' ) ?>"><?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>
  67  
  68  </div>
  69  <div class="bPosts">
  70      
  71  <!-- =================================== START OF MAIN AREA =================================== -->
  72  
  73      <?php
  74      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

  75      messages( array(
  76              'block_start' => '<div class="action_messages">',
  77              'block_end'   => '</div>',
  78          ) );
  79      // --------------------------------- END OF MESSAGES ---------------------------------

  80      ?>
  81  
  82      <?php
  83          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

  84          mainlist_page_links( array(
  85                  'block_start' => '<div class="nav_right">',
  86                  'block_end' => '</div>',
  87                  'links_format' => '$next$ $prev$',
  88                  'prev_text' => '<img src="img/prev.gif" width="29" height="29" alt="'.T_('Previous').'" title="'.T_('Previous').'" />',
  89                  'next_text' => '<img src="img/next.gif" width="29" height="29" alt="'.T_('Next').'" title="'.T_('Next').'" />',
  90                  'no_prev_text' => '',
  91                  'no_next_text' => '<img src="'.$rsc_url.'/img/blank.gif" width="29" height="29" alt="" class="no_nav" />',
  92              ) );
  93          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

  94      ?>
  95  
  96      <?php
  97          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------

  98          item_prevnext_links( array(
  99                  'template' => '$next$$prev$',
 100                  'block_start' => '<div class="nav_right">',
 101                  'next_start'  => '',
 102                  'next_text' => '<img src="img/next.gif" width="29" height="29" alt="'.T_('Next').'" title="'.T_('Next').'" />',
 103                  'next_no_item' => '<img src="'.$rsc_url.'/img/blank.gif" width="29" height="29" alt="" class="no_nav" />',
 104                  'next_end'    => ' ',
 105                  'prev_start'  => '',
 106                  'prev_text' => '<img src="img/prev.gif" width="29" height="29" alt="'.T_('Previous').'" title="'.T_('Previous').'" />',
 107                  'prev_no_item' => '',
 108                  'prev_end'    => '',
 109                  'block_end'   => '</div>',
 110              ) );
 111          // ------------------------- END OF PREV/NEXT POST LINKS -------------------------

 112      ?>
 113  
 114      <?php
 115          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

 116          request_title( array(
 117                  'title_before'=> '<h2>',
 118                  'title_after' => '</h2>',
 119                  'title_none'  => '<h2>&nbsp;</h2>',
 120                  'glue'        => ' - ',
 121                  'title_single_disp' => false,
 122                  'format'      => 'htmlbody',
 123                  'arcdir_text' => T_('Index'),
 124                  'catdir_text' => T_('Albums'),
 125                  'category_text' => T_('Album').': ',
 126                  'categories_text' => T_('Albums').': ',
 127              ) );
 128          // ------------------------------ END OF REQUEST TITLE -----------------------------

 129      ?>
 130  
 131      <?php
 132      // ------------------------------------ START OF POSTS ----------------------------------------

 133      // Display message if no post:

 134      display_if_empty();
 135  
 136      while( $Item = & mainlist_get_item() )
 137      {    // For each blog post, do everything below up to the closing curly brace "}"
 138      ?>
 139      
 140      <div class="bPost bPost<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
 141  
 142          <?php
 143              $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)

 144              $Item->anchor(); // Anchor for permalinks to refer to.

 145          ?>
 146  
 147          <?php
 148              // Display images that are linked to this post:

 149              $Item->images( array(
 150                      'before' =>              '<div class="bImages">',
 151                      'before_image' =>        '<div class="image_block">',
 152                      'before_image_legend' => '<div class="image_legend">',
 153                      'after_image_legend' =>  '</div>',
 154                      'after_image' =>         '</div>',
 155                      'after' =>               '</div>',
 156                      'image_size' =>          'fit-720x500'
 157                  ) );
 158          ?>
 159  
 160  
 161          <div class="bDetails">
 162  
 163              <div class="bSmallHead">
 164  
 165                  <?php
 166                      // Link to comments, trackbacks, etc.:

 167                      $Item->feedback_link( array(
 168                                      'type' => 'feedbacks',
 169                                      'link_before' => '<div class="action_right">',
 170                                      'link_after' => '</div>',
 171                                      'link_text_zero' => get_icon( 'nocomment' ),
 172                                      'link_text_one' => get_icon( 'comments' ),
 173                                      'link_text_more' => get_icon( 'comments' ),
 174                                      'link_title' => '#',
 175                                      'use_popup' => true,
 176                                  ) );
 177  
 178                      $Item->permanent_link( array(
 179                              'before'    => '<div class="action_right">',
 180                              'after'     => '</div>',
 181                              'text' => T_('Permalink'),
 182                          ) );
 183                  ?>
 184  
 185                  <?php
 186                      $Item->edit_link( array( // Link to backoffice for editing
 187                              'before'    => '<div class="action_right">',
 188                              'after'     => '</div>',
 189                              'text'      => T_('Edit...'),
 190                'title'     => T_('Edit title/description...'),
 191                          ) );
 192                  ?>
 193  
 194                  <h3 class="bTitle"><?php $Item->title(); ?></h3>
 195  
 196                  <?php
 197                      $Item->issue_date( array(
 198                              'before'      => '<span class="timestamp">',
 199                              'after'       => '</span>',
 200                              'date_format' => locale_datefmt().' H:i',
 201                          ) );
 202                  ?>
 203  
 204              </div>
 205  
 206              <?php
 207                  // ---------------------- POST CONTENT INCLUDED HERE ----------------------

 208                  skin_include( '_item_content.inc.php', array(
 209                          'image_size'    =>    '',
 210                      ) );
 211                  // Note: You can customize the default item feedback by copying the generic

 212                  // /skins/_item_feedback.inc.php file into the current skin folder.

 213                  // -------------------------- END OF POST CONTENT -------------------------

 214              ?>
 215  
 216              <div class="bSmallPrint">
 217              <?php
 218                  $Item->categories( array(
 219                      'before'          => T_('Albums').': ',
 220                      'after'           => ' ',
 221                      'include_main'    => true,
 222                      'include_other'   => true,
 223                      'include_external'=> true,
 224                      'link_categories' => true,
 225                  ) );
 226              ?>
 227              </div>
 228          </div>
 229  
 230          <?php
 231              // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------

 232              skin_include( '_item_feedback.inc.php', array(
 233                      'before_section_title' => '<h4>',
 234                      'after_section_title'  => '</h4>',
 235                  ) );
 236              // Note: You can customize the default item feedback by copying the generic

 237              // /skins/_item_feedback.inc.php file into the current skin folder.

 238              // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------

 239          ?>
 240  
 241          <?php
 242              locale_restore_previous();    // Restore previous locale (Blog locale)

 243          ?>
 244      </div>
 245      <?php
 246      } // ---------------------------------- END OF POSTS ------------------------------------

 247      ?>
 248  
 249  
 250      <?php
 251          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------

 252          skin_include( '$disp$', array(
 253                  'disp_posts'  => '',        // We already handled this case above
 254                  'disp_single' => '',        // We already handled this case above
 255                  'disp_page'   => '',        // We already handled this case above
 256              ) );
 257          // Note: you can customize any of the sub templates included here by

 258          // copying the matching php file into your skin directory.

 259          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------

 260      ?>
 261  
 262  </div>
 263  
 264  
 265  <?php
 266  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

 267  skin_include( '_body_footer.inc.php' );
 268  // Note: You can customize the default BODY footer by copying the

 269  // _body_footer.inc.php file into the current skin folder.

 270  // ------------------------------- END OF FOOTER --------------------------------

 271  ?>
 272  
 273  
 274  <?php
 275  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

 276  skin_include( '_html_footer.inc.php' );
 277  // Note: You can customize the default HTML footer by copying the

 278  // _html_footer.inc.php file into the current skin folder.

 279  // ------------------------------- END OF FOOTER --------------------------------

 280  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics