-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
67 lines (56 loc) · 2.65 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
61
62
63
64
65
66
67
<?php get_header();?>
<!-- s-content
================================================== -->
<section class="s-content">
<div class="row masonry-wrap">
<div class="masonry" style="position: relative;height:100%;">
<div class="grid-sizer"></div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- Articulo -->
<article class="masonry__brick entry format-standard" data-aos="fade-up">
<div class="entry__thumb">
<a href="<?php the_permalink(); ?>" class="entry__thumb-link">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail('post-thumbnails');
}else{?>
<img src="<?php echo(get_template_directory_uri()."/img/no-thumbnail.png"); ?>"
alt="<?php the_title() ?>">
<?php }
?>
</a>
</div>
<div class="entry__text">
<div class="entry__header">
<div class="entry__date">
<a href="<?php the_permalink(); ?>"><?php the_time('F j, Y'); ?></a>
</div>
<h1 class="entry__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h1>
</div>
<div class="entry__excerpt">
<?php the_excerpt(); ?>
</div>
<div class="entry__meta">
<span class="entry__meta-links">
<?php the_category(', '); ?>
</span>
</div>
</div>
</article> <!-- end article -->
<?php endwhile; ?>
<?php else:?>
</div>
<h1> No se encontraron resultados para: <?php printf(esc_html('%s'),get_search_query( ));?></h1>
<?php endif; ?>
</div> <!-- end masonry -->
</div> <!-- end masonry-wrap -->
<!-- Paginación -->
<div class="row">
<div class="col-full">
<?php get_template_part('template-parts/content', 'pagination'); ?>
</div>
</div>
<!-- Fin de paginación -->
</section> <!-- s-content CONTENIDO -->
<?php get_footer(); ?>