b2evolution PHP Cross Reference Blogging Systems

Source: /skins/dating_mood/index.main.php - 416 lines - 13273 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 dating_mood
  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  // 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  add_headline( '<!--[if IE]><link rel="stylesheet" type="text/css" href="ie.css" /><![endif]-->' );
  24  
  25  // Include the HTML HEAD:
  26  skin_include( '_html_header.inc.php' );
  27  // Note: You can customize the default HTML header by copying the
  28  // _html_header.inc.php file into the current skin folder.
  29  // -------------------------------- END OF HEADER --------------------------------
  30  ?>
  31  
  32  
  33  
  34  <div class="wrapper">
  35  
  36  <div class="outerwrap">
  37  <div class="innerwrap">
  38  
  39      <div class="PageTop">
  40          <?php
  41              // ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
  42              // Display container and contents:
  43              skin_container( NT_('Page Top'), array(
  44                      // The following params will be used as defaults for widgets included in this container:
  45                      'block_start' => '<div class="$wi_class$">',
  46                      'block_end' => '</div>',
  47                      'block_display_title' => false,
  48                      'list_start' => '<ul>',
  49                      'list_end' => '</ul>',
  50                      'item_start' => '<li>',
  51                      'item_end' => '</li>',
  52                  ) );
  53              // ----------------------------- END OF "Page Top" CONTAINER -----------------------------
  54          ?>
  55      </div>
  56  
  57      <div class="pageHeader">
  58          <?php
  59              // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
  60              // Display container and contents:
  61              skin_container( NT_('Header'), 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_title_start' => '<h1>',
  66                      'block_title_end' => '</h1>',
  67                  ) );
  68              // ----------------------------- END OF "Header" CONTAINER -----------------------------
  69          ?>
  70      </div>
  71  
  72  </div>
  73  </div>
  74  
  75  </div>
  76  
  77  <div class="wrapper">
  78  
  79  <div class="posts">
  80  <div class="innerwrap">
  81  
  82  <!-- =================================== START OF MAIN AREA =================================== -->
  83  
  84  <div class="top_menu">
  85      <ul>
  86      <?php
  87          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  88          // Display container and contents:
  89          // Note: this container is designed to be a single <ul> list
  90          skin_container( NT_('Menu'), array(
  91                  // The following params will be used as defaults for widgets included in this container:
  92                  'block_start' => '',
  93                  'block_end' => '',
  94                  'block_display_title' => false,
  95                  'list_start' => '',
  96                  'list_end' => '',
  97                  'item_start' => '<li>',
  98                  'item_end' => '</li>',
  99              ) );
 100          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
 101      ?>
 102      </ul>
 103      <div class="clear"></div>
 104  </div>
 105  
 106  <?php
 107      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 108      messages( array(
 109              'block_start' => '<div class="action_messages">',
 110              'block_end'   => '</div>',
 111          ) );
 112      // --------------------------------- END OF MESSAGES ---------------------------------
 113  ?>
 114  
 115  <?php
 116      // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
 117      item_prevnext_links( array(
 118              'block_start' => '<table class="prevnext_post"><tr>',
 119              'prev_start'  => '<td>',
 120              'prev_end'    => '</td>',
 121              'next_start'  => '<td class="right">',
 122              'next_end'    => '</td>',
 123              'block_end'   => '</tr></table>',
 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'  => '',
 134              'glue'        => ' - ',
 135              'title_single_disp' => true,
 136              'format'      => 'htmlbody',
 137          ) );
 138      // ------------------------------ END OF REQUEST TITLE -----------------------------
 139  ?>
 140  
 141  <?php
 142      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 143      mainlist_page_links( array(
 144              'block_start' => '<p class="center">'.T_('Pages:').' <strong>',
 145              'block_end' => '</strong></p>',
 146          ) );
 147      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 148  ?>
 149  
 150  <?php
 151      // ------------------------------------ START OF POSTS ----------------------------------------
 152      // Display message if no post:
 153      display_if_empty();
 154  
 155      echo '<div id="styled_content_block">'; // Beginning of posts display
 156      while( $Item = & mainlist_get_item() )
 157      {    // For each blog post, do everything below up to the closing curly brace "}"
 158      ?>
 159  
 160      <div id="<?php $Item->anchor_id() ?>" lang="<?php $Item->lang() ?>">
 161  
 162      <?php
 163          $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
 164      ?>
 165      <!-- google_ad_section_start -->
 166      <div class="bTitle"><h3 class="bTitle"><?php
 167          $Item->title( array(
 168                  'link_type' => 'permalink'
 169              ) );
 170      ?></h3></div>
 171      <!-- google_ad_section_end -->
 172      <div class="bPost">
 173          <div class="bSmallHead">
 174              <?php
 175              if( $Item->status != 'published' )
 176              {
 177                  $Item->status( array( 'format' => 'styled' ) );
 178              }
 179              $Item->permanent_link( array(
 180                      'text' => '#icon#',
 181                  ) );
 182              $Item->author( array(
 183                      'before'       => ' '.T_('by').' <strong>',
 184                      'after'        => '</strong>',
 185                      'link_to'           => 'userpage',
 186                      'link_text'    => 'preferredname',
 187                  ) );
 188              $Item->msgform_link( array(
 189                      'before'    => ' ',
 190                      'after'     => '',
 191                  ) );
 192              $Item->issue_time( array(
 193                      'before'    => ', ',
 194                      'after'     => '',
 195                      'date_format' => 'l j F Y  H:i',
 196                  ) );
 197              $Item->categories( array(
 198                      'before'          => ', '.T_('Categories').': ',
 199                      'after'           => ' ',
 200                      'include_main'    => true,
 201                      'include_other'   => true,
 202                      'include_external'=> true,
 203                      'link_categories' => true,
 204                  ) );
 205              ?>
 206          </div>
 207  
 208          <!-- google_ad_section_start -->
 209          <?php
 210              // ---------------------- POST CONTENT INCLUDED HERE ----------------------
 211              skin_include( '_item_content.inc.php', array(
 212                      'image_size'    =>    'fit-400x320',
 213                  ) );
 214              // Note: You can customize the default item feedback by copying the generic
 215              // /skins/_item_feedback.inc.php file into the current skin folder.
 216              // -------------------------- END OF POST CONTENT -------------------------
 217          ?>
 218          <?php
 219              // List all tags attached to this post:
 220              $Item->tags( array(
 221                      'before' =>         '<div class="bSmallPrint">'.T_('Tags').': ',
 222                      'after' =>          '</div>',
 223                      'separator' =>      ', ',
 224                  ) );
 225          ?>
 226          <!-- google_ad_section_end -->
 227  
 228          <div class="bSmallPrint">
 229              <?php
 230                  $Item->edit_link( array( // Link to backoffice for editing
 231                          'before'    => '',
 232                          'after'     => '',
 233                          'class'     => 'permalink_right'
 234                      ) );
 235              ?>
 236  
 237              <?php
 238                  // Link to comments, trackbacks, etc.:
 239                  $Item->feedback_link( array(
 240                                  'type' => 'comments',
 241                                  'link_before' => ' <span class="bCommentLink">',
 242                                  'link_after' => '</span> ',
 243                                  'link_text_zero' => '#',
 244                                  'link_text_one' => '#',
 245                                  'link_text_more' => '#',
 246                                  'link_title' => '#',
 247                                  'use_popup' => false,
 248                              ) );
 249              ?>
 250              <?php
 251                  // Link to comments, trackbacks, etc.:
 252                  $Item->feedback_link( array(
 253                                  'type' => 'trackbacks',
 254                                  'link_before' => ' <span class="bCommentLink">',
 255                                  'link_after' => '</span> ',
 256                                  'link_text_zero' => '#',
 257                                  'link_text_one' => '#',
 258                                  'link_text_more' => '#',
 259                                  'link_title' => '#',
 260                                  'use_popup' => false,
 261                              ) );
 262              ?>
 263          </div>
 264  
 265          <?php
 266              // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
 267              skin_include( '_item_feedback.inc.php', array(
 268                      'before_section_title' => '<h4>',
 269                      'after_section_title'  => '</h4>',
 270                      'link_to'              => 'userpage>userurl',
 271                      'author_link_text'     => 'preferredname',
 272                  ) );
 273              // Note: You can customize the default item feedback by copying the generic
 274              // /skins/_item_feedback.inc.php file into the current skin folder.
 275              // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
 276          ?>
 277      </div>
 278      </div>
 279      <?php
 280      locale_restore_previous();    // Restore previous locale (Blog locale)
 281      } // ---------------------------------- END OF POSTS ------------------------------------
 282      echo '</div>'; // End of posts display
 283  
 284  ?>
 285  
 286      <?php
 287      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 288      mainlist_page_links( array(
 289              'block_start' => '<p class="center">'.T_('Pages:').' <strong>',
 290              'block_end' => '</strong></p>',
 291          ) );
 292      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 293      ?>
 294  
 295  
 296      <?php
 297          // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 298          skin_include( '$disp$', array(
 299                  'disp_posts'  => '',        // We already handled this case above
 300                  'disp_single' => '',        // We already handled this case above
 301                  'disp_page'   => '',        // We already handled this case above
 302                  'author_link_text' => 'preferredname',
 303              ) );
 304          // Note: you can customize any of the sub templates included here by
 305          // copying the matching php file into your skin directory.
 306          // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 307      ?>
 308  </div>
 309  </div>
 310  
 311  
 312  <!-- =================================== START OF SIDEBAR =================================== -->
 313  <div class="bSideBar">
 314  <div class="innerwrap">
 315  
 316      <?php
 317          // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
 318          skin_container( NT_('Sidebar'), array(
 319                  // The following (optional) params will be used as defaults for widgets included in this container:
 320                  // This will enclose each widget in a block:
 321                  'block_start' => '<div class="bSideItem $wi_class$">',
 322                  'block_end' => '</div>',
 323                  // This will enclose the title of each widget:
 324                  'block_title_start' => '<h3>',
 325                  'block_title_end' => '</h3>',
 326                  // If a widget displays a list, this will enclose that list:
 327                  'list_start' => '<ul>',
 328                  'list_end' => '</ul>',
 329                  // This will enclose each item in a list:
 330                  'item_start' => '<li>',
 331                  'item_end' => '</li>',
 332                  // This will enclose sub-lists in a list:
 333                  'group_start' => '<ul>',
 334                  'group_end' => '</ul>',
 335                  // This will enclose (foot)notes:
 336                  'notes_start' => '<div class="notes">',
 337                  'notes_end' => '</div>',
 338              ) );
 339          // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
 340      ?>
 341  
 342      <?php
 343          // Please help us promote b2evolution and leave this logo on your blog:
 344          powered_by( array(
 345                  'block_start' => '<div class="powered_by">',
 346                  'block_end'   => '</div>',
 347                  // Check /rsc/img/ for other possible images -- Don't forget to change or remove width & height too
 348                  'img_url'     => '$rsc$img/powered-by-b2evolution-120t.gif',
 349                  'img_width'   => 120,
 350                  'img_height'  => 32,
 351              ) );
 352      ?>
 353  
 354  </div>
 355  </div>
 356  
 357  <div class="clear"><?php echo get_icon( 'pixel' ); ?></div>
 358  
 359  <div id="pageFooter">
 360      <?php
 361          // Display container and contents:
 362          skin_container( NT_("Footer"), array(
 363                  // The following params will be used as defaults for widgets included in this container:
 364              ) );
 365          // Note: Double quotes have been used around "Footer" only for test purposes.
 366      ?>
 367      <p class="baseline">
 368          <?php
 369              // Display footer text (text can be edited in Blog Settings):
 370              $Blog->footer_text( array(
 371                      'before'      => '',
 372                      'after'       => ' &bull; ',
 373                  ) );
 374          ?>
 375  
 376          <?php
 377              // Display a link to contact the owner of this blog (if owner accepts messages):
 378              $Blog->contact_link( array(
 379                      'before'      => '',
 380                      'after'       => ' &bull; ',
 381                      'text'   => T_('Contact'),
 382                      'title'  => T_('Send a message to the owner of this blog...'),
 383                  ) );
 384              // Display a link to help page:
 385              $Blog->help_link( array(
 386                      'before'      => ' ',
 387                      'after'       => ' &bull; ',
 388                      'text'        => T_('Help'),
 389                  ) );
 390          ?>
 391  
 392          <?php $Skin->display_skin_credits(); ?>
 393  
 394          <?php
 395              // Display additional credits:
 396               // If you can add your own credits without removing the defaults, you'll be very cool :))
 397               // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
 398              credits( array(
 399                      'list_start'  => '&bull;',
 400                      'list_end'    => ' ',
 401                      'separator'   => '&bull;',
 402                      'item_start'  => ' ',
 403                      'item_end'    => ' ',
 404                  ) );
 405          ?>
 406      </p>
 407  </div>
 408  </div>
 409  
 410  <?php
 411  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 412  skin_include( '_html_footer.inc.php' );
 413  // Note: You can customize the default HTML footer by copying the
 414  // _html_footer.inc.php file into the current skin folder.
 415  // ------------------------------- END OF FOOTER --------------------------------
 416  ?>

title

Description

title

Description

title

Description

title

title

Body