-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_search.disp.php
More file actions
58 lines (54 loc) · 2.22 KB
/
Copy path_search.disp.php
File metadata and controls
58 lines (54 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* This is the template that displays the search form for a blog
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the main.page.php template.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license}
* @copyright (c)2003-2016 by Francois Planque - {@link http://fplanque.com/}
*
* @package evoskins
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
$params = array_merge( array(
'pagination' => array(),
'search_class' => 'extended_search_form',
'search_input_before' => '',
'search_input_after' => '',
'search_submit_before' => '',
'search_submit_after' => '',
'search_use_editor' => false,
'search_author_format' => 'avatar_name',
'search_cell_author_start' => '<div class="search_info dimmed">',
'search_cell_author_end' => '</div>',
'search_date_format' => locale_datefmt(),
), $params );
// ------------------------ START OF SEARCH FORM WIDGET ------------------------
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_search_form',
// Optional display params
'block_start' => '<div class="evo_widget $wi_class$">',
'block_end' => '</div>',
'block_display_title' => false,
'disp_search_options' => 0,
'search_class' => $params['search_class'],
'search_input_before' => $params['search_input_before'],
'search_input_after' => $params['search_input_after'],
'search_submit_before' => $params['search_submit_before'],
'search_submit_after' => $params['search_submit_after'],
'use_search_disp' => 1,
) );
// ------------------------- END OF SEARCH FORM WIDGET -------------------------
// Perform search (after having displayed the first part of the page) & display results:
search_result_block( array(
'pagination' => $params['pagination'],
'use_editor' => $params['search_use_editor'],
'author_format' => 'name',
'cell_author_start' => $params['search_cell_author_start'],
'cell_author_end' => $params['search_cell_author_end'],
'date_format' => $params['search_date_format'],
) );
?>