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

  12   *

  13   * @version $Id: index.main.php,v 1.10 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  // -------------------------- HTML HEADER INCLUDED HERE --------------------------

  22  // Initializations:

  23  require_css( 'rsc/nifty_corners.css', true, 'Nifty Corners' );
  24  require_css( 'rsc/nifty_print.css', true, 'Print', 'print' );
  25  require_js( 'rsc/nifty_corners.js', true );
  26  $custom_js = <<<HEREDOC
  27      <script type="text/javascript">
  28          <!--
  29          window.onload=function()
  30          {
  31              if(!NiftyCheck())
  32                      return;
  33              Rounded("div.outerwrap","all","transparent","#fff","");
  34              Rounded("div.posts","all","transparent","#fff","");
  35              Rounded("div.bSideBar","all","transparent","#fff","");
  36              Rounded("div.bTitle","top","#fff","#06a3c4","smooth");
  37          }
  38          // -->

  39      </script>
  40  HEREDOC;
  41  add_headline( $custom_js );
  42  
  43  // Include the HTML HEAD:

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

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

  47  // -------------------------------- END OF HEADER --------------------------------

  48  ?>
  49  
  50  
  51  <div class="wrapper">
  52  <div class="wrapper2">
  53  
  54  <div class="outerwrap">
  55  <div class="innerwrap">
  56  
  57      <div class="PageTop">
  58          <?php
  59              // ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------

  60              // Display container and contents:

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

  63                      'block_start' => '<div class="$wi_class$">',
  64                      'block_end' => '</div>',
  65                      'block_display_title' => false,
  66                      'list_start' => '<ul>',
  67                      'list_end' => '</ul>',
  68                      'item_start' => '<li>',
  69                      'item_end' => '</li>',
  70                  ) );
  71              // ----------------------------- END OF "Page Top" CONTAINER -----------------------------

  72          ?>
  73      </div>
  74  
  75      <div class="pageHeader">
  76          <?php
  77              // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------

  78              // Display container and contents:

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

  81                      'block_start' => '<div class="$wi_class$">',
  82                      'block_end' => '</div>',
  83                      'block_title_start' => '<h1>',
  84                      'block_title_end' => '</h1>',
  85                  ) );
  86              // ----------------------------- END OF "Header" CONTAINER -----------------------------

  87          ?>
  88      </div>
  89  
  90  </div>
  91  </div>
  92  
  93  <div class="posts">
  94  <div class="innerwrap">
  95  
  96  <!-- =================================== START OF MAIN AREA =================================== -->
  97  
  98  <div class="top_menu">
  99      <ul>
 100      <?php
 101          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------

 102          // Display container and contents:

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

 105                  'block_start' => '',
 106                  'block_end' => '',
 107                  'block_display_title' => false,
 108                  'list_start' => '',
 109                  'list_end' => '',
 110                  'item_start' => '<li>',
 111                  'item_end' => '</li>',
 112              ) );
 113          // ----------------------------- END OF "Menu" CONTAINER -----------------------------

 114      ?>
 115      </ul>
 116  </div>
 117  
 118  <?php
 119      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

 120      messages( array(
 121              'block_start' => '<div class="action_messages">',
 122              'block_end'   => '</div>',
 123          ) );
 124      // --------------------------------- END OF MESSAGES ---------------------------------

 125  ?>
 126  
 127  <?php
 128      // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------

 129      item_prevnext_links( array(
 130              'block_start' => '<table class="prevnext_post"><tr>',
 131              'prev_start'  => '<td>',
 132              'prev_end'    => '</td>',
 133              'next_start'  => '<td class="right">',
 134              'next_end'    => '</td>',
 135              'block_end'   => '</tr></table>',
 136          ) );
 137      // ------------------------- END OF PREV/NEXT POST LINKS -------------------------

 138  ?>
 139  
 140  <?php
 141      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

 142      request_title( array(
 143              'title_before'=> '<h2>',
 144              'title_after' => '</h2>',
 145              'title_none'  => '',
 146              'glue'        => ' - ',
 147              'title_single_disp' => true,
 148              'format'      => 'htmlbody',
 149          ) );
 150      // ------------------------------ END OF REQUEST TITLE -----------------------------

 151  ?>
 152  
 153  <?php
 154      // ------------------------------------ START OF POSTS ----------------------------------------

 155      // Display message if no post:

 156      display_if_empty();
 157  
 158      while( $Item = & mainlist_get_item() )
 159      {    // For each blog post, do everything below up to the closing curly brace "}"
 160      ?>
 161  
 162      <?php
 163      // ------------------------------ DATE SEPARATOR ------------------------------

 164      $MainList->date_if_changed( array(
 165              'before'      => '<h2>',
 166              'after'       => '</h2>',
 167              'date_format' => '#',
 168          ) );
 169      ?>
 170  
 171      <?php
 172          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)

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

 174      ?>
 175  
 176      <div class="bTitle" lang="<?php $Item->lang() ?>"><h3 class="bTitle"><?php $Item->title(); ?></h3></div>
 177  
 178          <div class="bPost" lang="<?php $Item->lang() ?>">
 179  
 180              <div class="bSmallHead">
 181              <?php
 182                 $Item->permanent_link( array(
 183                      'text' => '#icon#',
 184                  ) );
 185  
 186                  $Item->issue_time( array(
 187                          'before'    => ' ',
 188                          'after'     => ', ',
 189                      ) );
 190  
 191                  $Item->categories( array(
 192                      'before'          => T_('Categories').': ',
 193                      'after'           => ' ',
 194                      'include_main'    => true,
 195                      'include_other'   => true,
 196                      'include_external'=> true,
 197                      'link_categories' => true,
 198                  ) );
 199              ?>
 200              </div>
 201  
 202              <?php
 203                  // ---------------------- POST CONTENT INCLUDED HERE ----------------------

 204                  skin_include( '_item_content.inc.php', array(
 205                          'image_size'    =>    'fit-400x320',
 206                      ) );
 207                  // Note: You can customize the default item feedback by copying the generic

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

 209                  // -------------------------- END OF POST CONTENT -------------------------

 210              ?>
 211  
 212              <div class="bSmallPrint">
 213                  <?php
 214                      $Item->permanent_link();
 215  
 216                      // Link to comments, trackbacks, etc.:

 217                      $Item->feedback_link( array(
 218                                      'type' => 'comments',
 219                                      'link_before' => ' &bull; ',
 220                                      'link_after' => '',
 221                                      'link_text_zero' => '#',
 222                                      'link_text_one' => '#',
 223                                      'link_text_more' => '#',
 224                                      'link_title' => '#',
 225                                      'use_popup' => false,
 226                                  ) );
 227  
 228                      // Link to comments, trackbacks, etc.:

 229                      $Item->feedback_link( array(
 230                                      'type' => 'trackbacks',
 231                                      'link_before' => ' &bull; ',
 232                                      'link_after' => '',
 233                                      'link_text_zero' => '#',
 234                                      'link_text_one' => '#',
 235                                      'link_text_more' => '#',
 236                                      'link_title' => '#',
 237                                      'use_popup' => false,
 238                                  ) );
 239  
 240                      $Item->edit_link( array( // Link to backoffice for editing
 241                              'before'    => ' &bull; ',
 242                              'after'     => '',
 243                          ) );
 244                  ?>
 245              </div>
 246      
 247              <?php
 248                  // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------

 249                  skin_include( '_item_feedback.inc.php', array(
 250                          'before_section_title' => '<h4>',
 251                          'after_section_title'  => '</h4>',
 252                      ) );
 253                  // Note: You can customize the default item feedback by copying the generic

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

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

 256              ?>
 257          </div>
 258          <?php
 259          locale_restore_previous();    // Restore previous locale (Blog locale)

 260      } // ---------------------------------- END OF POSTS ------------------------------------ ?>

 261  
 262      <?php
 263          // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

 264          mainlist_page_links( array(
 265                  'block_start' => '<p class="center"><strong>',
 266                  'block_end' => '</strong></p>',
 267                  'links_format' => '$prev$ :: $next$',
 268                 'prev_text' => '&lt;&lt; '.T_('Previous'),
 269                 'next_text' => T_('Next').' &gt;&gt;',
 270              ) );
 271          // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

 272      ?>
 273  
 274  
 275      <?php
 276          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------

 277          skin_include( '$disp$', array(
 278                  'disp_posts'  => '',        // We already handled this case above
 279                  'disp_single' => '',        // We already handled this case above
 280                  'disp_page'   => '',        // We already handled this case above
 281              ) );
 282          // Note: you can customize any of the sub templates included here by

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

 284          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------

 285      ?>
 286  
 287  
 288  </div>
 289  </div>
 290  
 291  
 292  <!-- =================================== START OF SIDEBAR =================================== -->
 293  <div class="bSideBar">
 294  <div class="innerwrap">
 295  
 296      <?php
 297          // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------

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

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

 301                  'block_start' => '<div class="bSideItem $wi_class$">',
 302                  'block_end' => '</div>',
 303                  // This will enclose the title of each widget:

 304                  'block_title_start' => '<h3>',
 305                  'block_title_end' => '</h3>',
 306                  // If a widget displays a list, this will enclose that list:

 307                  'list_start' => '<ul>',
 308                  'list_end' => '</ul>',
 309                  // This will enclose each item in a list:

 310                  'item_start' => '<li>',
 311                  'item_end' => '</li>',
 312                  // This will enclose sub-lists in a list:

 313                  'group_start' => '<ul>',
 314                  'group_end' => '</ul>',
 315                  // This will enclose (foot)notes:

 316                  'notes_start' => '<div class="notes">',
 317                  'notes_end' => '</div>',
 318              ) );
 319          // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------

 320      ?>
 321  
 322      <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>
 323  
 324  </div>
 325  </div>
 326  
 327  <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div>
 328  
 329  <?php
 330  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

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

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

 334  // ------------------------------- END OF FOOTER --------------------------------

 335  ?>
 336  
 337  </div>
 338  </div>
 339  
 340  <?php
 341  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

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

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

 345  // ------------------------------- END OF FOOTER --------------------------------

 346  ?>


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