Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 83 lines (48 sloc) 2.851 kB
217f7fd Importing the News theme files and folders.
greenshady authored
1 <?php
2 /**
3 * Video Sidebar Template
4 *
5 * @package News
6 * @subpackage Template
7cb5b44 @justintadlock Add _deprecated_file() notice to templates that are now deprecated. …
authored
7 * @since 0.1.0
8 * @deprecated 0.3.0 Please include this template in your child theme if you plan to continue using it.
217f7fd Importing the News theme files and folders.
greenshady authored
9 */
10
7cb5b44 @justintadlock Add _deprecated_file() notice to templates that are now deprecated. …
authored
11 /* Deprecated file in version 0.3.0. */
12 _deprecated_file( basename( __FILE__ ), '0.3.0', null, sprintf( __( 'Please copy the %s template from this theme into your child theme folder.', 'news' ), basename( __FILE__ ) ) );
13
217f7fd Importing the News theme files and folders.
greenshady authored
14 if ( is_active_sidebar( 'video' ) ) : ?>
15
16 <div id="sidebar-video" class="sidebar utility">
17
18 <?php dynamic_sidebar( 'video' ); ?>
19
20 </div><!-- #sidebar-video .utility -->
21
22 <?php else : ?>
23
24 <div id="sidebar-video" class="sidebar utility">
25
26 <div class="ui-tabs">
27
28 <div class="ui-tabs-wrap">
29
30 <ul class="ui-tabs-nav">
b67e8bf @justintadlock Change all instances of hybrid_get_textdomain() to 'news'.
authored
31 <li><a href="#video-tabs-1"><?php _e( 'Recent', 'news' ); ?></a></li>
32 <li><a href="#video-tabs-2"><?php _e( 'Popular', 'news' ); ?></a></li>
217f7fd Importing the News theme files and folders.
greenshady authored
33 </ul><!-- .ui-tabs-nav -->
34
35 <div id="video-tabs-1" class="ui-tabs-panel">
36
37 <?php $loop = new WP_Query( array( 'post_type' => apply_filters( 'news_video_post_type', 'video' ), 'posts_per_page' => 3 ) ); ?>
38
39 <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
40
41 <div class="<?php hybrid_entry_class(); ?>">
42
43 <?php get_the_image( array( 'meta_key' => array( 'Thumbnail' ), 'size' => 'news-thumbnail' ) ); ?>
44
45 <?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h4 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h4>', false ) ); ?>
46
47 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">[entry-published]</div>' ); ?>
48
49 </div><!-- .hentry -->
50
51 <?php endwhile; ?>
52
53 </div><!-- .ui-tabs-panel -->
54
55 <div id="video-tabs-2" class="ui-tabs-panel">
56
57 <?php $loop = new WP_Query( array( 'post_type' => apply_filters( 'news_video_post_type', 'video' ), 'orderby' => 'comment_count', 'posts_per_page' => 3 ) ); ?>
58
59 <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
60
61 <div class="<?php hybrid_entry_class(); ?>">
62
63 <?php get_the_image( array( 'meta_key' => array( 'Thumbnail' ), 'size' => 'news-thumbnail' ) ); ?>
64
65 <?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h4 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h4>', false ) ); ?>
66
67 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">[entry-published]</div>' ); ?>
68
69 </div><!-- .hentry -->
70
71 <?php endwhile; ?>
72
73 </div><!-- .ui-tabs-panel -->
74
75 </div><!-- .ui-tabs-wrap -->
76
77 </div><!-- .ui-tabs -->
78
79 <?php wp_reset_query(); ?>
80
81 </div><!-- #sidebar-video .utility -->
82
83 <?php endif; ?>
Something went wrong with that request. Please try again.