b2evolution PHP Cross Reference Blogging Systems

Source: /skins/manual/_search.disp.php - 75 lines - 2865 bytes - Text - Print

Description: This is the template that displays the site map (the real one, not the XML thing) for a blog

   1  <?php
   2  /**

   3   * This is the template that displays the site map (the real one, not the XML thing) for a blog

   4   *

   5   * This file is not meant to be called directly.

   6   * It is meant to be called by an include in the main.page.php template.

   7   * To display the archive directory, you should call a stub AND pass the right parameters

   8   * For example: /blogs/index.php?disp=postidx

   9   *

  10   * b2evolution - {@link http://b2evolution.net/}

  11   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

  12   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}

  13   *

  14   * @package evoskins

  15   * @subpackage manual

  16   */
  17  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  18  
  19  global $MainList;
  20  
  21  // --------------------------------- START OF COMMON LINKS --------------------------------

  22  skin_widget( array(
  23          // CODE for the widget:

  24          'widget' => 'coll_search_form',
  25          // Optional display params

  26          'block_start' => '',
  27          'block_end' => '',
  28          'block_display_title' => false,
  29          'disp_search_options' => 1,
  30          'use_search_disp' => 1,
  31      ) );
  32  // ---------------------------------- END OF COMMON LINKS ---------------------------------

  33  
  34  // Display message if no post:

  35  display_if_empty( array(
  36                  'before'      => '<p class="msg_nothing" style="margin: 2em 0">',
  37                  'after'       => '</p>',
  38                  'msg_empty'   => T_('Sorry, we could not find anything matching your request, please try to broaden your search.'),
  39              ) );
  40  
  41  
  42  // --------------------------------- START OF POSTS -------------------------------------

  43  if( isset( $MainList ) && $MainList->result_num_rows > 0 )
  44  {
  45      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

  46      mainlist_page_links( array(
  47              'block_start' => '<p class="center"><strong>',
  48              'block_end' => '</strong></p>',
  49              'prev_text' => '&lt;&lt;',
  50              'next_text' => '&gt;&gt;',
  51          ) );
  52      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

  53  
  54      echo '<ul class="posts_list" style="margin-top:1em">';
  55      while( mainlist_get_item() )
  56      {    // For each blog post, do everything below up to the closing curly brace "}"
  57  
  58          // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------

  59          skin_include( '_item_list.inc.php', array() );
  60          // ----------------------------END ITEM BLOCK  ----------------------------

  61      }
  62      echo '</ul>';
  63  
  64      // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------

  65      mainlist_page_links( array(
  66              'block_start' => '<p class="center"><strong>',
  67              'block_end' => '</strong></p>',
  68              'prev_text' => '&lt;&lt;',
  69              'next_text' => '&gt;&gt;',
  70          ) );
  71      // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------

  72  
  73  } // ---------------------------------- END OF POSTS ------------------------------------

  74  
  75  ?>

title

Description

title

Description

title

Description

title

title

Body