-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_search.disp.php
More file actions
67 lines (63 loc) · 2.89 KB
/
_search.disp.php
File metadata and controls
67 lines (63 loc) · 2.89 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
59
60
61
62
63
64
65
66
67
<?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-2015 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(
'block_start' => '<div class="center"><ul class="pagination">',
'block_end' => '</ul></div>',
'page_current_template' => '<span class="current">$page_num$</span>',
'page_item_before' => '<li>',
'page_item_after' => '</li>','page_item_current_before' => '<li class="active">',
'page_item_current_after' => '</li>',
'prev_text' => '<i class="fa fa-angle-left"></i>',
'next_text' => '<i class="fa fa-angle-right"></i>',
),
'search_class' => 'extended_search_form',
'search_input_before' => '<div class="input-group">',
'search_input_after' => '',
'search_submit_before' => '<span class="input-group-btn">',
'search_submit_after' => '</span></div>',
'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' => $params['search_author_format'],
'cell_author_start' => $params['search_cell_author_start'],
'cell_author_end' => $params['search_cell_author_end'],
'date_format' => $params['search_date_format'],
) );
?>