b2evolution PHP Cross Reference Blogging Systems

Source: /skins/_search.disp.php - 51 lines - 2031 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   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  // --------------------------------- START OF COMMON LINKS --------------------------------
  19  skin_widget( array(
  20          // CODE for the widget:
  21          'widget' => 'coll_search_form',
  22          // Optional display params
  23          'block_start' => '',
  24          'block_end' => '',
  25          'block_display_title' => false,
  26          'disp_search_options' => 1,
  27          'use_search_disp' => 1,
  28      ) );
  29  // ---------------------------------- END OF COMMON LINKS ---------------------------------
  30  
  31  // Display message if no post:
  32  display_if_empty( array(
  33                  'before'      => '<p class="msg_nothing" style="margin: 2em 0">',
  34                  'after'       => '</p>',
  35                  'msg_empty'   => T_('Sorry, we could not find anything matching your request, please try to broaden your search.'),
  36              ) );
  37  
  38  // --------------------------------- START OF POSTS -------------------------------------
  39  while( mainlist_get_item() )
  40  {    // For each blog post, do everything below up to the closing curly brace "}"
  41  
  42      // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
  43      skin_include( '_item_block.inc.php', array(
  44              'content_mode' => 'auto',        // 'auto' will auto select depending on $disp-detail
  45              'image_size'     =>    'fit-400x320',
  46          ) );
  47      // ----------------------------END ITEM BLOCK  ----------------------------
  48  
  49  } // ---------------------------------- END OF POSTS ------------------------------------
  50  
  51  ?>

title

Description

title

Description

title

Description

title

title

Body