b2evolution PHP Cross Reference Blogging Systems

Source: /skins/evopress/search.main.php - 164 lines - 5898 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   * The main page template is used to display the blog when no specific page template is available
   9   * to handle the request (based on $disp).
  10   *
  11   * @package evoskins
  12   * @subpackage evopress
  13   */
  14  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  15  
  16  if( version_compare( $app_version, '4.0.0-dev' ) < 0 )
  17  { // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
  18      die( 'This skin is designed for b2evolution 4.0.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  19  }
  20  
  21  // This is the main template; it may be used to display very different things.
  22  // Do inits depending on current $disp:
  23  skin_init( $disp );
  24  
  25  
  26  // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  27  skin_include( '_html_header.inc.php' );
  28  // Note: You can customize the default HTML header by copying the generic
  29  // /skins/_html_header.inc.php file into the current skin folder.
  30  // -------------------------------- END OF HEADER --------------------------------
  31  
  32  
  33  // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  34  skin_include( '_body_header.inc.php' );
  35  // Note: You can customize the default BODY header by copying the generic
  36  // /skins/_body_footer.inc.php file into the current skin folder.
  37  // ------------------------------- END OF HEADER --------------------------------
  38  ?>
  39  
  40  
  41  
  42  <div class="top_menu top_menu_narrow top_menu_<?php echo $Skin->get_setting( 'sidebar_position' ); ?>">
  43      <ul>
  44      <?php
  45          // ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
  46          // Display container and contents:
  47          skin_container( NT_('Menu'), array(
  48                  // The following params will be used as defaults for widgets included in this container:
  49                  'block_start' => '',
  50                  'block_end' => '',
  51                  'block_display_title' => false,
  52                  'list_start' => '',
  53                  'list_end' => '',
  54                  'item_start' => '<li>',
  55                  'item_end' => '</li>',
  56              ) );
  57          // ----------------------------- END OF "Menu" CONTAINER -----------------------------
  58      ?>
  59      </ul>
  60  </div>
  61  
  62  <div id="content" class="narrowcolumn">
  63  
  64  <?php
  65      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  66      messages( array(
  67              'block_start' => '<div class="action_messages">',
  68              'block_end'   => '</div>',
  69          ) );
  70      // --------------------------------- END OF MESSAGES ---------------------------------
  71  ?>
  72  
  73  <?php
  74      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  75      request_title( array(
  76              'title_before'=> '<h2>',
  77              'title_after' => '</h2>',
  78              'title_none'  => '',
  79              'glue'        => ' - ',
  80              'title_single_disp' => true,
  81              'format'      => 'htmlbody',
  82          ) );
  83      // ------------------------------ END OF REQUEST TITLE -----------------------------
  84  
  85  
  86      // --------------------------------- START OF COMMON LINKS --------------------------------
  87      skin_widget( array(
  88              // CODE for the widget:
  89              'widget' => 'coll_search_form',
  90              // Optional display params
  91              'block_start' => '<div style="margin: 1em 0">',
  92              'block_end' => '</div>',
  93              'block_display_title' => false,
  94              'disp_search_options' => 1,
  95              'use_search_disp' => 1,
  96          ) );
  97      // ---------------------------------- END OF COMMON LINKS ---------------------------------
  98  
  99  
 100      // Display message if no post:
 101      display_if_empty( array(
 102                      'before'      => '<p class="msg_nothing" style="margin: 2em 0">',
 103                      'after'       => '</p>',
 104                      'msg_empty'   => T_('Sorry, we could not find anything matching your request, please try to broaden your search.'),
 105                  ) );
 106  
 107      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 108      mainlist_page_links( array(
 109              'block_start' => '<div class="navigation">',
 110              'block_end' => '</div>',
 111             'prev_text' => '&lt;&lt;',
 112             'next_text' => '&gt;&gt;',
 113          ) );
 114      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 115  
 116      while( $Item = & mainlist_get_item() )
 117      {    // For each blog post:
 118          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
 119          skin_include( '_item_block.inc.php', array(
 120                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 121                  'image_size'     =>    'fit-400x320',
 122              ) );
 123          // ----------------------------END ITEM BLOCK  ----------------------------
 124      }
 125  
 126      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
 127      mainlist_page_links( array(
 128              'block_start' => '<div class="navigation">',
 129              'block_end' => '</div>',
 130             'prev_text' => '&lt;&lt;',
 131             'next_text' => '&gt;&gt;',
 132          ) );
 133      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
 134  ?>
 135  
 136  
 137  </div>
 138  
 139  
 140  <?php
 141  // ------------------------- SIDEBAR INCLUDED HERE --------------------------
 142  skin_include( '_sidebar.inc.php' );
 143  // Note: You can customize the default BODY footer by copying the
 144  // _body_footer.inc.php file into the current skin folder.
 145  // ----------------------------- END OF SIDEBAR -----------------------------
 146  ?>
 147  
 148  
 149  <?php
 150  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 151  skin_include( '_body_footer.inc.php' );
 152  // Note: You can customize the default BODY footer by copying the
 153  // _body_footer.inc.php file into the current skin folder.
 154  // ------------------------------- END OF FOOTER --------------------------------
 155  ?>
 156  
 157  
 158  <?php
 159  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
 160  skin_include( '_html_footer.inc.php' );
 161  // Note: You can customize the default HTML footer by copying the
 162  // _html_footer.inc.php file into the current skin folder.
 163  // ------------------------------- END OF FOOTER --------------------------------
 164  ?>

title

Description

title

Description

title

Description

title

title

Body