-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
executable file
·50 lines (33 loc) · 983 Bytes
/
search.php
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
<?php
/**
* Search template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package ekiline
*/
get_header();
?>
<?php ekiline_main_columns( 'open' ); ?>
<main id="primary" class="<?php ekiline_sort_cols( 'main' ); ?>">
<?php dynamic_sidebar( 'content-w1' ); ?>
<?php get_template_part( 'template-parts/content', 'headline' ); ?>
<?php
if ( have_posts() ) {
// Ejemplo: en caso de personalizar los indices.
ekiline_show_columns( 'open', 'd-flex flex-column mx-0' );
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
ekiline_show_columns( 'close' );
} else {
get_template_part( 'template-parts/content', 'none' );
}
?>
<?php ekiline_pagination(); ?>
<?php dynamic_sidebar( 'content-w2' ); ?>
</main><!-- #primary -->
<?php get_sidebar(); ?>
<?php ekiline_main_columns( 'close' ); ?>
<?php get_footer(); ?>