-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
53 lines (34 loc) · 1.45 KB
/
index.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
<?php if(is_search()): ?>
<div class="filter-title">
<p class="display upper"><?php echo $wp_query->found_posts; ?>
Resultados para "<?php echo get_search_query(); ?>"
</p>
<!-- <a class="display upper btn" href="/<?php echo $query_object->name ?>">remover filtro</a> -->
</div>
<hr>
<?php endif; ?>
<section class="post-loop">
<div class="content">
<?php while(have_posts()): the_post(); ?>
<article class="<?php echo $post_classes; ?> columns">
<div class="column is-6">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('large'); ?>
</a>
</div>
<div class="column is-6">
<div class="destaque-info">
<h3><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h3>
<p><?php echo wp_trim_words(strip_shortcodes(get_the_content()), 60); ?></p>
<p><a href="<?php the_permalink(); ?>">Leia mais</a></p>
</div>
</div>
</article>
<div class="spacer"></div>
<?php endwhile; ?>
</div>
<div class="spacer"></div>
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<?php echo bulma_pagination(); ?>
</nav>
</section>