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

  12   *

  13   * @version $Id: index.main.php,v 1.8 2007/11/04 01:10:57 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  // ----------------------------- HEADER BEGINS HERE ------------------------------

  22  skin_content_header();    // Sets charset!

  23  ?>
  24  <html>
  25  <head>
  26      <?php skin_content_meta(); /* Charset for static pages */ ?>
  27      <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
  28      <title><?php
  29          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

  30          request_title( array(
  31              'auto_pilot'      => 'seo_title',
  32          ) );
  33          // ------------------------------ END OF REQUEST TITLE -----------------------------

  34      ?></title>
  35      <?php skin_base_tag(); /* Base URL for this skin. You need this to fix relative links! */ ?>
  36      <meta name="generator" content="b2evolution <?php echo $app_version ?>" /> <!-- Please leave this for stats -->
  37      <?php include_headlines() ?>
  38  </head>
  39  <body>
  40  <?php
  41  // -------------------------------- END OF HEADER --------------------------------

  42  ?>
  43  
  44      <?php
  45          // Display container and contents:

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

  48                  'block_start' => '<div class="$wi_class$">',
  49                  'block_end' => '</div>',
  50                  'block_display_title' => false,
  51                  'list_start' =>  T_('Select blog:').' ',
  52                  'list_end' => '',
  53                  'item_start' => ' [',
  54                  'item_end' => '] ',
  55                  'item_selected_start' => ' [<strong>',
  56                  'item_selected_end' => '</strong>] ',
  57              ) );
  58      ?>
  59  
  60  
  61      <hr>
  62      <div align="center">
  63          <h1><?php $Blog->name() ?></h1>
  64          <?php
  65              $Blog->tagline( array(
  66                      'before'    => '<p>',
  67                      'after'     => '</p>',
  68                  ) );
  69          ?>
  70      </div>
  71      <?php
  72          $Blog->longdesc( array(
  73                  'before'    => '<hr><small>',
  74                  'after'     => '</small>',
  75              ) );
  76      ?>
  77  
  78      <hr>
  79  
  80      <?php
  81      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

  82      messages( array(
  83              'block_start' => '<div class="action_messages">',
  84              'block_end'   => '</div>',
  85          ) );
  86      // --------------------------------- END OF MESSAGES ---------------------------------

  87      ?>
  88  
  89    <?php
  90          // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------

  91          item_prevnext_links( array(
  92                  'block_start' => '',
  93                  'prev_start'  => '',
  94                  'prev_end'    => ' :',
  95                  'next_start'  => ': ',
  96                  'next_end'    => '',
  97                  'block_end'   => '',
  98              ) );
  99          // ------------------------- END OF PREV/NEXT POST LINKS -------------------------

 100      ?>
 101  
 102      <?php
 103          // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

 104          request_title( array(
 105                  'title_before'=> '<h2>',
 106                  'title_after' => '</h2>',
 107                  'title_none'  => '',
 108                  'glue'        => ' - ',
 109                  'title_single_disp' => true,
 110                  'format'      => 'htmlbody',
 111              ) );
 112          // ------------------------------ END OF REQUEST TITLE -----------------------------

 113      ?>
 114  
 115      <?php    // ---------------------------------- START OF POSTS --------------------------------------
 116          // Display message if no post:

 117          display_if_empty();
 118  
 119          while( $Item = & mainlist_get_item() )
 120          {    // For each blog post, do everything below up to the closing curly brace "}"
 121          ?>
 122  
 123              <?php
 124              // ------------------------------ DATE SEPARATOR ------------------------------

 125              $MainList->date_if_changed( array(
 126                      'before'      => '<h2>',
 127                      'after'       => '</h2>',
 128                      'date_format' => '#',
 129                  ) );
 130              ?>
 131  
 132              <?php
 133                  $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)

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

 135              ?>
 136  
 137              <h3>
 138                  <?php $Item->issue_time(); ?>
 139                  <a href="<?php $Item->permanent_url() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="Permalink" width="12" height="9" border="0" align="absmiddle" /></a>
 140                  <?php $Item->title(); ?>
 141              </h3>
 142  
 143              <blockquote>
 144  
 145                  <?php
 146                      $Item->categories( array(
 147                          'before'          => '<small>'.T_('Categories').': ',
 148                          'after'           => '</small>',
 149                          'include_main'    => true,
 150                          'include_other'   => true,
 151                          'include_external'=> true,
 152                          'link_categories' => true,
 153                      ) );
 154                  ?>
 155  
 156                  <?php
 157                      // ---------------------- POST CONTENT INCLUDED HERE ----------------------

 158                      skin_include( '_item_content.inc.php', array(
 159                              'image_size'    =>    'fit-400x320',
 160                          ) );
 161                      // Note: You can customize the default item feedback by copying the generic

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

 163                      // -------------------------- END OF POST CONTENT -------------------------

 164                  ?>
 165  
 166                  <small>
 167                      <?php
 168                          // Link to comments, trackbacks, etc.:

 169                          $Item->feedback_link( array(
 170                                          'type' => 'feedbacks',
 171                                          'link_before' => '',
 172                                          'link_after' => ' &bull; ',
 173                                          'link_text_zero' => '#',
 174                                          'link_text_one' => '#',
 175                                          'link_text_more' => '#',
 176                                          'link_title' => '#',
 177                                          'use_popup' => false,
 178                                      ) );
 179                      ?>
 180  
 181                      <?php
 182                          $Item->edit_link( array( // Link to backoffice for editing
 183                                  'before'    => '',
 184                                  'after'     => ' &bull; ',
 185                              ) );
 186                      ?>
 187  
 188                      <?php $Item->permanent_link(); ?>
 189                  </small>
 190  
 191              </blockquote>
 192  
 193              <?php
 194                  // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------

 195                  skin_include( '_item_feedback.inc.php', array(
 196                          'before_section_title' => '<h4>',
 197                          'after_section_title'  => '</h4>',
 198                      ) );
 199                  // Note: You can customize the default item feedback by copying the generic

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

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

 202              ?>
 203  
 204              <?php
 205                  locale_restore_previous();    // Restore previous locale (Blog locale)

 206              ?>
 207      <?php } // --------------------------------- END OF POSTS ----------------------------------- ?>

 208  
 209  
 210      <?php
 211          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------

 212          skin_include( '$disp$', array(
 213                  'disp_posts'  => '',        // We already handled this case above
 214                  'disp_single' => '',        // We already handled this case above
 215                  'disp_page'   => '',        // We already handled this case above
 216              ) );
 217          // Note: you can customize any of the sub templates included here by

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

 219          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------

 220      ?>
 221  
 222  
 223      <hr>
 224  
 225  
 226      <div align="center">
 227          <?php
 228              // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

 229              mainlist_page_links( array(
 230                      'block_start' => '<p class="center"><strong>',
 231                      'block_end' => '</strong></p>',
 232                      'links_format' => '$prev$ :: $next$',
 233                     'prev_text' => '&lt;&lt; '.T_('Previous'),
 234                     'next_text' => T_('Next').' &gt;&gt;',
 235                  ) );
 236              // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

 237          ?>
 238  
 239          <strong>
 240          <a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>"><?php echo T_('Archives') ?></a>
 241          </strong>
 242  
 243          <p>
 244          <?php
 245              // Display a link to contact the owner of this blog (if owner accepts messages):

 246              $Blog->contact_link( array(
 247                      'before'      => ' [',
 248                      'after'       => '] ',
 249                      'text'   => T_('Contact'),
 250                      'title'  => T_('Send a message to the owner of this blog...'),
 251                  ) );
 252          ?>
 253  
 254          <?php
 255              user_login_link( ' [', '] ' );
 256              user_register_link( ' [', '] ' );
 257              user_admin_link( ' [', '] ' );
 258              user_logout_link( ' [', '] ' );
 259          ?>
 260          </p>
 261      </div>
 262  
 263      <hr>
 264  
 265      <p align="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>
 266  
 267      <?php
 268          $Hit->log();  // log the hit on this page

 269          debug_info();    // output debug info if requested

 270      ?>
 271  </body>
 272  </html>


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