-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharchive-woo_video.php
65 lines (47 loc) · 2.32 KB
/
archive-woo_video.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
<?php
get_header();
$archive_permalink = get_post_type_archive_link( 'woo_video' );
global $woo_options;
?>
<div id="content-wrap">
<div id="content" class="col-full">
<div class="col-left">
<?php if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) { woo_breadcrumbs(); } ?>
<div id="main" class="video-archive">
<?php if (have_posts()) { $count = 0; ?>
<span class="archive_header"><?php _e('All videos archive', 'woothemes') ?></span>
<div class="fix"></div>
<?php
// Bar displaying video sorting functionality.
echo woo_sorting_bar( $archive_permalink );
?>
<?php while (have_posts()) { the_post(); $count++; ?>
<!-- Post Starts -->
<div class="post <?php if($count % 3 == 0) { echo "last"; } ?>">
<?php
if ( $woo_options['woo_post_content'] != 'content' ) {
echo '<a href="' . get_permalink( get_the_ID() ) . '" rel="bookmark" title="' . the_title_attribute( array( 'echo' => 0 ) ) . '">' . woo_image_vimeo('width=180&height=' . $woo_options['woo_thumb_h'] . '&class=thumbnail&link=img&return=true') . '</a>';
}
?>
<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute( array( 'echo' => 0 ) ); ?>"><?php the_title(); ?></a></h2>
<span class="date"><?php the_time( get_option( 'date_format' ) ); ?></span>
</div><!-- /.post -->
<?php if($count % 3 == 0) { ?>
<div class="fix"></div>
<?php } ?>
<?php
}
} else {
?>
<div class="post">
<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
</div><!-- /.post -->
<?php } ?>
<div class="fix"></div>
<?php woo_pagenav(); ?>
</div><!-- /#main -->
</div><!-- /.col-left -->
<?php get_sidebar(); ?>
</div><!-- /#content -->
</div><!-- /#content-wrap -->
<?php get_footer(); ?>