-
Notifications
You must be signed in to change notification settings - Fork 2
/
loop-search.php
47 lines (37 loc) · 1.85 KB
/
loop-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
<?php /* If there are no posts to display, such as an empty archive page */ ?>
<?php if (!have_posts()) : ?>
<div class="notice">
<p class="bottom">Sorry, no results were found.</p>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
<?php /* Start loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php $fi_position = get_post_meta( $post->ID, 'featured_image_position', true ); ?>
<?php if ( $fi_position == "top" || $fi_position == "" ) adelante_featured_image(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php adelante_post_meta(); ?>
<?php if (get_option('adelante_post_author') == 'checked') { ?>
<p class="byline author vcard">
Written by <span class="fn"><?php the_author(); ?></span>
</p>
<?php } ?>
</header>
<div class="entry-content">
<?php if ( $fi_position == 'left' ) adelante_featured_image( 200, 200, null, "gallery-item alignedleft" ); ?>
<?php if ( $fi_position == 'right' ) adelante_featured_image( 200, 200, null, "gallery-item alignedright" ); ?>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search ?>
<?php the_excerpt(); ?>
<?php else : ?>
<?php the_content('Continue…'); ?>
<?php endif; ?>
</div>
<div id="tag-list"><?php //$tag = get_the_tags(); if (!$tag) { } else { ?><?php //the_tags(); ?><?php //} ?></div>
<footer></footer>
</article>
<?php comments_template('', true); ?>
<?php endwhile; // End the loop ?>
<div class="clearboth"></div>
<?php if ( function_exists( 'wp_pagenavi' ) ) wp_pagenavi(); ?>