[ 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/asevo/ -> 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 asevo

  12   *

  13   * @version $Id: index.main.php,v 1.7 2007/11/03 23:54:38 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="head_zone">
  30  <div class="inner_wrapper">
  31  <div class="PageTop">
  32      <?php
  33          // Display container and contents:

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

  36                  'block_start' => '<div class="$wi_class$">',
  37                  'block_end' => '</div>',
  38                  'block_display_title' => false,
  39                  'list_start' => '<ul>',
  40                  'list_end' => '</ul>',
  41                  'item_start' => '<li>',
  42                  'item_end' => '</li>',
  43              ) );
  44      ?>
  45      &nbsp;
  46  </div>
  47  </div>
  48  </div>
  49  
  50  
  51  <div class="nav_zone">
  52  <div class="inner_wrapper">
  53  <div class="top_menu">
  54      <ul>
  55      <?php
  56          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------

  57          // Display container and contents:

  58          // Note: this container is designed to be a single <ul> list

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

  61                  'block_start' => '',
  62                  'block_end' => '',
  63                  'block_display_title' => false,
  64                  'list_start' => '',
  65                  'list_end' => '',
  66                  'item_start' => '<li>',
  67                  'item_end' => '</li>',
  68              ) );
  69          // ----------------------------- END OF "Menu" CONTAINER -----------------------------

  70      ?>
  71      </ul>
  72      &nbsp;
  73  </div>
  74  </div>
  75  </div>
  76  
  77  
  78  <div class="main_zone">
  79  <div class="inner_wrapper">
  80  
  81  <div class="evo_title_area">
  82      <?php
  83          // Display container and contents:

  84          skin_container( NT_('Header'), array(
  85                  // The following params will be used as defaults for widgets included in this container:

  86                  'block_start' => '<div class="$wi_class$">',
  87                  'block_end' => '</div>',
  88                  'block_title_start' => '<h2>',
  89                  'block_title_end' => '</h2>',
  90              ) );
  91      ?>
  92  </div>
  93  
  94  
  95  <div class="evo_main_area">
  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      <?php
 106          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------

 107          item_prevnext_links( array(
 108                  'block_start' => '<table class="prevnext_post"><tr>',
 109                  'prev_start'  => '<td>',
 110                  'prev_end'    => '</td>',
 111                  'next_start'  => '<td class="right">',
 112                  'next_end'    => '</td>',
 113                  'block_end'   => '</tr></table>',
 114              ) );
 115          // ------------------------- END OF PREV/NEXT POST LINKS -------------------------

 116      ?>
 117  
 118      <?php
 119          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

 120          request_title( array(
 121                  'title_before'=> '<h2 class="evo_req_title">',
 122                  'title_after' => '</h2>',
 123                  'title_none'  => '',
 124                  'glue'        => ' - ',
 125                  'title_single_disp' => false,
 126                  'format'      => 'htmlbody',
 127              ) );
 128          // ------------------------------ END OF REQUEST TITLE -----------------------------

 129      ?>
 130  
 131      <!-- =================================== START OF MAIN AREA =================================== -->
 132  
 133      <?php // ------------------------------------ START OF POSTS ----------------------------------------
 134          // Display message if no post:

 135          display_if_empty();
 136  
 137          while( $Item = & mainlist_get_item() )
 138          {    // For each blog post, do everything below up to the closing curly brace "}"
 139          ?>
 140          <div class="evo_post" 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                  $Item->edit_link( array( // Link to backoffice for editing
 149                          'before'    => ' ',
 150                          'after'     => ' ',
 151                          'class'     => 'floatright small'
 152                      ) );
 153              ?>
 154  
 155              <h1 class="evo_post_title"><?php $Item->title(); ?></h1>
 156  
 157              <div class="evo_post_head">
 158              <?php
 159                  $Item->permanent_link( array(
 160                          'text' => '#icon#',
 161                      ) );
 162  
 163                  $Item->issue_date( array(
 164                          'before'      => ' ',
 165                          'after'       => ' ',
 166                          'date_format' => '#',
 167                      ) );
 168  
 169                  $Item->issue_time( array(
 170                          'time_format' => 'H:i',
 171                      ) );
 172  
 173                  $Item->categories( array(
 174                      'before'          => ', '.T_('Categories').': ',
 175                      'after'           => ' ',
 176                      'include_main'    => true,
 177                      'include_other'   => true,
 178                      'include_external'=> true,
 179                      'link_categories' => true,
 180                  ) );
 181              ?>
 182              </div>
 183  
 184              <?php
 185                  // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------

 186                  skin_include( '_item_content.inc.php', array(
 187                          'image_size'    =>    'fit-400x320',
 188                      ) );
 189                  // Note: You can customize the default item feedback by copying the generic

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

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

 192              ?>
 193  
 194              <div class="evo_post_foot">
 195                  <?php
 196                      // Link to comments, trackbacks, etc.:

 197                      $Item->feedback_link( array(
 198                                      'type' => 'comments',
 199                                      'link_before' => '',
 200                                      'link_after' => '',
 201                                      'link_text_zero' => '#',
 202                                      'link_text_one' => '#',
 203                                      'link_text_more' => '#',
 204                                      'link_title' => '#',
 205                                      'use_popup' => false,
 206                                  ) );
 207                   ?>
 208                  <?php
 209                      // Link to comments, trackbacks, etc.:

 210                      $Item->feedback_link( array(
 211                                      'type' => 'trackbacks',
 212                                      'link_before' => ' &bull; ',
 213                                      'link_after' => '',
 214                                      'link_text_zero' => '#',
 215                                      'link_text_one' => '#',
 216                                      'link_text_more' => '#',
 217                                      'link_title' => '#',
 218                                      'use_popup' => false,
 219                                  ) );
 220                   ?>
 221              </div>
 222  
 223              <?php
 224                  // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------

 225                  skin_include( '_item_feedback.inc.php', array(
 226                          'before_section_title' => '<h4>',
 227                          'after_section_title'  => '</h4>',
 228                      ) );
 229                  // Note: You can customize the default item feedback by copying the generic

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

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

 232              ?>
 233  
 234              <?php
 235                  locale_restore_previous();    // Restore previous locale (Blog locale)

 236              ?>
 237          </div>
 238  
 239      <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>

 240  
 241      <?php
 242          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

 243          mainlist_page_links( array(
 244                  'block_start' => '<p class="center"><strong>',
 245                  'block_end' => '</strong></p>',
 246                  'links_format' => '$prev$ :: $next$',
 247                 'prev_text' => '&lt;&lt; '.T_('Previous'),
 248                 'next_text' => T_('Next').' &gt;&gt;',
 249              ) );
 250          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

 251      ?>
 252  
 253      <?php
 254          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------

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

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

 262          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------

 263      ?>
 264  
 265  </div>
 266  <!-- =================================== START OF SIDEBAR =================================== -->
 267  
 268  <div class="evo_sidebar">
 269  
 270      <?php
 271          // Display container contents:

 272          skin_container( NT_('Sidebar'), array(
 273                  // The following (optional) params will be used as defaults for widgets included in this container:

 274                  // This will enclose each widget in a block:

 275                  'block_start' => '<div class="evo_side_item $wi_class$">',
 276                  'block_end' => '</div>',
 277                  // This will enclose the title of each widget:

 278                  'block_title_start' => '<h3>',
 279                  'block_title_end' => '</h3>',
 280                  // If a widget displays a list, this will enclose that list:

 281                  'list_start' => '<ul>',
 282                  'list_end' => '</ul>',
 283                  // This will enclose each item in a list:

 284                  'item_start' => '<li>',
 285                  'item_end' => '</li>',
 286                  // This will enclose sub-lists in a list:

 287                  'group_start' => '<ul>',
 288                  'group_end' => '</ul>',
 289              ) );
 290      ?>
 291  
 292      <div class="evo_side_credits">
 293          <p class="center"><!-- Please help us promote b2evolution and leave this link on your blog. --><a href="http://b2evolution.net/" title="b2evolution: next generation blog software"><img src="../../rsc/img/powered-by-b2evolution-120t.gif" alt="powered by b2evolution free blog software" title="b2evolution: next generation blog software" width="120" height="32" border="0" /></a></p>
 294      </div>
 295  
 296  </div>
 297  
 298  <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div>
 299  
 300  </div>
 301  </div>
 302  
 303  <?php
 304  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

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

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

 308  // ------------------------------- END OF FOOTER --------------------------------

 309  ?>
 310  
 311  <?php
 312  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

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

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

 316  // ------------------------------- END OF FOOTER --------------------------------

 317  ?>


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