b2evolution PHP Cross Reference Blogging Systems

Source: /skins/touch/search.main.php - 144 lines - 5393 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 touch

  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_header.inc.php file into the current skin folder.

  37  // ------------------------------- END OF HEADER --------------------------------

  38  ?>
  39  
  40  
  41  
  42  <div id="content" class="narrowcolumn">
  43  
  44  <?php
  45      // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------

  46      messages( array(
  47              'block_start' => '<div class="action_messages">',
  48              'block_end'   => '</div>',
  49          ) );
  50      // --------------------------------- END OF MESSAGES ---------------------------------

  51  ?>
  52  
  53  <?php
  54      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------

  55      request_title( array(
  56              'title_before'=> '<h2>',
  57              'title_after' => '</h2>',
  58              'title_none'  => '',
  59              'glue'        => ' - ',
  60              'title_single_disp' => true,
  61              'format'      => 'htmlbody',
  62          ) );
  63      // ------------------------------ END OF REQUEST TITLE -----------------------------

  64  
  65  
  66      // --------------------------------- START OF COMMON LINKS --------------------------------

  67      skin_widget( array(
  68              // CODE for the widget:

  69              'widget' => 'coll_search_form',
  70              // Optional display params

  71              'block_start' => '<div style="margin: 1em 0">',
  72              'block_end' => '</div>',
  73              'block_display_title' => false,
  74              'disp_search_options' => 1,
  75              'use_search_disp' => 1,
  76          ) );
  77      // ---------------------------------- END OF COMMON LINKS ---------------------------------

  78  
  79  
  80      // Display message if no post:

  81      display_if_empty( array(
  82                      'before'      => '<p class="msg_nothing" style="margin: 2em 0">',
  83                      'after'       => '</p>',
  84                      'msg_empty'   => T_('Sorry, we could not find anything matching your request, please try to broaden your search.'),
  85                  ) );
  86  
  87      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

  88      mainlist_page_links( array(
  89              'block_start' => '<div class="navigation">',
  90              'block_end' => '</div>',
  91             'prev_text' => '&lt;&lt;',
  92             'next_text' => '&gt;&gt;',
  93          ) );
  94      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

  95  
  96      while( $Item = & mainlist_get_item() )
  97      {    // For each blog post:
  98          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------

  99          skin_include( '_item_block.inc.php', array(
 100                  'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
 101                  'image_size'     =>    'fit-400x320',
 102              ) );
 103          // ----------------------------END ITEM BLOCK  ----------------------------

 104      }
 105  
 106      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

 107      mainlist_page_links( array(
 108              'block_start' => '<div class="navigation">',
 109              'block_end' => '</div>',
 110             'prev_text' => '&lt;&lt;',
 111             'next_text' => '&gt;&gt;',
 112          ) );
 113      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

 114  ?>
 115  
 116  
 117  </div>
 118  
 119  
 120  <?php
 121  // ------------------------- MOBILE FOOTER INCLUDED HERE --------------------------

 122  skin_include( '_mobile_footer.inc.php' );
 123  // Note: You can customize the default MOBILE FOOTER footer by copying the

 124  // _mobile_footer.inc.php file into the current skin folder.

 125  // ----------------------------- END OF MOBILE FOOTER -----------------------------

 126  ?>
 127  
 128  
 129  <?php
 130  // ------------------------- BODY FOOTER INCLUDED HERE --------------------------

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

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

 134  // ------------------------------- END OF FOOTER --------------------------------

 135  ?>
 136  
 137  
 138  <?php
 139  // ------------------------- HTML FOOTER INCLUDED HERE --------------------------

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

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

 143  // ------------------------------- END OF FOOTER --------------------------------

 144  ?>

title

Description

title

Description

title

Description

title

title

Body