-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
60 lines (55 loc) · 2.36 KB
/
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
51
52
53
54
55
56
57
58
59
60
<?php if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die('Por favor no cargue esta página directamente. ¡Gracias!'); } ?>
<?php get_header(); ?>
<div class="container"> <!-- Inicia .container (coloca al centro la estructura de la página) -->
<!-- Contenido principal
================================================== -->
<div class="main-content">
<!-- Todos los posts
================================================== -->
<section class="recent-posts">
<div class="section-title"><h2><span><?php echo $wp_query->found_posts; ?> resultados para: "<?php the_search_query(); ?>"</span></h2></div>
<div id="search-results" class="row listrecent"> <!-- inicio fila recientes -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- inicio post -->
<div id="post-<?php the_ID(); ?>" class="col-lg-12 col-md-6 mb-30px card-group">
<div class="card h-100">
<div class="card-body">
<h2 class="card-title"><a class="text-dark" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<!-- Inicio Tags -->
<div class="after-post-tags">
<?php the_tags( '<ul class="tags">' . "\n" . '<li>', '</li>' . "\n" . '<li>', '</li>' . "\n" . '</ul>' . "\n" ); ?>
</div>
<!-- Fin Tags -->
<p class="card-text"><?php the_excerpt(); ?></p>
<span><a href="<?php echo get_permalink(); ?>"><?php echo get_permalink(); ?></a></span>
</div>
<div class="card-footer bg-white">
<div class="wrapfooter">
<span class="author-meta">
<span class="post-date"><?php echo get_the_date('j M Y'); ?></span>
<span class="dot"></span>
<span class="post-read"><?php echo gallo_reading_time(); ?></span>
</span>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<!-- end post -->
<?php endwhile; ?>
<?php endif; ?>
</div> <!-- fin fila recientes -->
</section>
<!-- Paginación
================================================== -->
<div class="bottompagination">
<div class="pointerup"><i class="fa fa-caret-up"></i></div>
<span class="navigation" role="navigation">
<?php gallo_posts_nav(); ?>
</span>
</div>
<!-- Fin Paginación
================================================== -->
</div><!-- cierra .main-content -->
</div> <!-- cierra .container -->
<?php get_footer(); ?>