forked from PHPSP/phpsp-blog-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
executable file
·35 lines (33 loc) · 1.27 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
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header(); ?>
<section class="content cat">
<div class="row-fluid">
<div class="span8">
<h2><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h2>
<?php
while ( have_posts() ) : the_post();
?>
<article itemscope itemtype="http://schema.org/Article">
<h3><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<time itemprop="dateCreated" datetime="<?php the_time('Y-m-d\TH:i'); ?>"><?php echo ucfirst(strtolower(get_the_time('l, j \d\e F, Y'))); ?></time>
<div class="author">By <span itemprop="author"><?php the_author(); ?> </span></div>
<div class="excerpt"><?php the_excerpt(); ?></div>
</article>
<?php
endwhile;
//the_bootstrap_content_nav();
?>
<div class="nav-previous"> <?php previous_posts_link( '<< Página Anterior' ); ?></div>
<div class="nav-next"> <?php next_posts_link( 'Próxima Página >>' ); ?></div>
</div>
<?php get_sidebar(); ?>
</div>
</section>
<?php get_footer(); ?>