Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Hub
- */
- ?>
- <?php get_header(); ?>
- <div id="content">
- <div id="contentwide"> <h1><?php the_title(); ?> <b>Hub</b></a></h1><i><?php meta('hubdescription'); ?> </i></div>
- <div id="featureimg"></br clear="all"><?php the_post_thumbnail( 'hubheader' ); ?></div>
- <div class="hubads"> <img src="http://enconnected.com/wp-content/uploads/2012/04/xboxhub1.png"> </div>
- <div class="hubcontent">
- <?php $wp_query = new WP_Query(array('showposts'=>12,'paged'=>$paged)); ?>
- <?php $cat_id = get_post_meta($post->ID,'hubcategory',true); query_posts(array('cat' => $cat_id); ?>
- <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <?php global $more; $more = 0; ?>
- <div id="hubcontentitem"><h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4></div>
- <?php endwhile; ?>
- <?php else : // do not delete ?>
- <?php endif; // do not delete ?>
- <div id="hubnation">
- <div id="prevLink"><p><a href="http://enconnected.com/news/page/2/">Browse all news</a></p></div>
- </div>
- </div>
- <br clear='all' /> <br clear='all' />
- <h2> Xbox related reviews</h2>
- <?php query_posts( array( 'post_type' => 'reviews', 'posts_per_page' => 1 ) ); ?>
- <?php query_posts('reviewdevices=xbox-360&posts_per_page=1'); ?>
- <?php $post_class = 'first'; ?>
- <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?>
- <?php global $more; $more = 0; ?>
- <div class="portfolio <?php echo $post_class; ?>">
- <?php
- if ('first' == $post_class){
- $post_class = 'second';
- }elseif ('second' == $post_class){
- $post_class = 'third';
- }else{
- $post_class = 'first';
- }
- ?>
- <a class="portfolioimg" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'portfolio' ); ?></a>
- <div class="portfoliocontent">
- <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4>
- </div>
- </div>
- <?php endwhile; ?>
- <?php else : // do not delete ?>
- <h3><?php _e("Page not Found", 'organicthemes'); ?></h3>
- <p><?php _e("We're sorry, but the page you're looking for isn't here.", 'organicthemes'); ?></p>
- <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar", 'organicthemes'); ?></p>
- <?php endif; // do not delete ?>
- <div class="hubsocialcontent"> <div id="herohub" class="herohub"><a href="http://enconnected.com/social"><img src="http://enconnected.com/wp-content/uploads/2011/07/crowd.jpg"></a> <h1><a href="http://enConnected.com">Talk Xbox in enConnected Social</a></h1></div> </div>
- <br clear='all' /> <br clear='all' />
- <h2> The latest in Xbox related articles from our editors</h2>
- <?php query_posts( array( 'post_type' => 'articles', 'posts_per_page' => 6 ) ); ?>
- <?php query_posts('articleconcerning=xbox-3&posts_per_page=3'); ?>
- <?php $post_class = 'first'; ?>
- <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?>
- <?php global $more; $more = 0; ?>
- <div class="portfolio <?php echo $post_class; ?>">
- <?php
- if ('first' == $post_class){
- $post_class = 'second';
- }elseif ('second' == $post_class){
- $post_class = 'third';
- }else{
- $post_class = 'first';
- }
- ?>
- <a class="portfolioimg" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'portfolio' ); ?></a>
- <div class="portfoliocontent">
- <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4>
- <p><?php the_excerpt(); ?></p>
- </div>
- </div>
- <?php endwhile; ?>
- <?php else : // do not delete ?>
- <h3><?php _e("Page not Found", 'organicthemes'); ?></h3>
- <p><?php _e("We're sorry, but the page you're looking for isn't here.", 'organicthemes'); ?></p>
- <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar", 'organicthemes'); ?></p>
- <?php endif; // do not delete ?>
- <br clear='all' /> <br clear='all' />
- <h2> The latest in Xbox related videos from our editors</h2>
- <?php query_posts( array( 'post_type' => 'videos', 'posts_per_page' => 3 ) ); ?>
- <?php query_posts('videoconcerning=xbox-4&posts_per_page=3'); ?>
- <?php $post_class = 'first'; ?>
- <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?>
- <?php global $more; $more = 0; ?>
- <div class="portfolio <?php echo $post_class; ?>">
- <?php
- if ('first' == $post_class){
- $post_class = 'second';
- }elseif ('second' == $post_class){
- $post_class = 'third';
- }else{
- $post_class = 'first';
- }
- ?>
- <a class="portfolioimg" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'portfolio' ); ?></a>
- <div class="portfoliocontent">
- <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4>
- <p><?php the_excerpt(); ?></p>
- </div>
- </div>
- <?php endwhile; ?>
- <?php else : // do not delete ?>
- <h3><?php _e("Page not Found", 'organicthemes'); ?></h3>
- <p><?php _e("We're sorry, but the page you're looking for isn't here.", 'organicthemes'); ?></p>
- <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar", 'organicthemes'); ?></p>
- <?php endif; // do not delete ?>
- </div>
- <!-- The main column ends -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement