-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.php
69 lines (52 loc) · 3.42 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
<?php get_header(); ?>
<div id="content-wrap">
<div id="content" class="col-full search">
<?php if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) { woo_breadcrumbs(); } ?>
<div id="main" class="col-left">
<?php if (have_posts()) { $count = 0; ?>
<span class="archive_header"><?php echo __( 'Search results:', 'woothemes' ) . ' '; printf( the_search_query() );?></span>
<?php while (have_posts()) { the_post(); $count++; ?>
<!-- Post Starts -->
<div class="post">
<h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute( array( 'echo' => 0 ) ); ?>"><?php the_title(); ?></a></h2>
<?php
$args = 'key=image&width=' . $woo_options['woo_thumb_w'] . '&height=' . $woo_options['woo_thumb_h'] . '&class=thumbnail&link=img&return=true&id=' . get_the_ID();
echo '<a href="' . get_permalink( get_the_ID() ) . '" title="' . the_title_attribute( array( 'echo' => 0 ) ) . '">' . woo_image_vimeo( $args ) . '</a>';
?>
<p class="post-meta">
<span class="post-date"><span class="small"><?php _e( 'Posted on', 'woothemes' ); ?></span> <?php the_time( get_option( 'date_format' ) ); ?></span>
<span class="post-author"><span class="small"><?php _e( 'by', 'woothemes' ); ?></span> <?php the_author_posts_link(); ?></span>
<?php
if ( get_post_type() == 'woo_video' ) {
echo get_the_term_list( $post->ID, 'woo_video_category', '<span class="post-category"><span class="small">' . __( 'in', 'woothemes' ) . '</span> ', ', ', '</span>' );
} else {
?>
<span class="post-category"><span class="small"><?php _e('in', 'woothemes'); ?></span> <?php the_category(', '); ?></span>
<?php } ?>
<?php edit_post_link( __('{ Edit }', 'woothemes'), '<span class="small">', '</span>' ); ?>
</p>
<div class="entry">
<?php the_excerpt(); ?>
</div><!-- /.entry -->
<div class="post-more">
<span class="comments fl"><?php comments_popup_link( __( 'Leave a comment', 'woothemes' ), __( '1 Comment', 'woothemes' ), __( '% Comments', 'woothemes' ) ); ?></span>
<?php if ( $woo_options['woo_post_content'] == 'excerpt' ) { ?>
<span class="read-more fr"><a href="<?php the_permalink(); ?>" title="<?php _e('Continue Reading →','woothemes'); ?>"><?php _e( 'Continue Reading →','woothemes' ); ?></a></span>
<?php } ?>
<div class="fix"></div>
</div>
</div><!-- /.post -->
<?php
}
} else {
?>
<div class="post">
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
</div><!-- /.post -->
<?php } ?>
<?php woo_pagenav(); ?>
</div><!-- /#main -->
<?php get_sidebar(); ?>
</div><!-- /#content -->
</div><!-- /#content-wrap -->
<?php get_footer(); ?>