-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
81 lines (60 loc) · 1.91 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* The template for displaying Search Results pages.
*
* @package amnistia
*/
get_header(); ?>
<div class="row">
<div class="large-9 columns">
<div class="row"><!-- bucle de noticias -->
<div class="large-4 columns">
</div>
<div class="large-8 columns">
<ul class="large-block-grid-2">
<?php while ( have_posts() ) : the_post(); ?>
<li>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="foto_destacada">
<div class="comentarios">
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments_link"><?php comments_popup_link( __( '0', 'amnistia' ), __( '1', 'amnistia' ), __( '%', 'amnistia' ) ); ?></span>
<?php endif; ?>
</div>
<a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_post_thumbnail('thumbnail'); ?>
<div class="titulo_bucle">
<h2><?php the_title(); ?></h2>
</div>
</a>
</div>
<div class="extracto_bucle">
<?php the_excerpt(); ?>
</div>
<div class="meta_bucle">
<?php amnistia_posted_on(); ?>
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ' ', 'amnistia' ) );
if ( $categories_list && amnistia_categorized_blog() ) :
?>
<div class="meta_cat_bucle">
<?php printf( __( '%1$s', 'amnistia' ), $categories_list ); ?>
</div>
<?php endif; // End if categories ?>
<?php endif; // End if 'post' == get_post_type() ?>
</div>
</article>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
</div>
<div class="large-3 columns">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>