Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The main template file.
- *
- * @package WordPress
- * @subpackage 6Thirteen
- *
- */
- get_header(); ?>
- <div id="mainheader">
- <div id="mainheaderleft">
- <div id="mainslideshow">
- <?php echo slider_pro(1); ?>
- </div>
- <!-- END mainslideshow -->
- <div class="ad1border">
- <?php do_action('advertisement1'); ?>
- </div>
- <!-- END ad1border -->
- <div class="ad1border">
- <?php do_action('advertisement2'); ?>
- </div>
- <!-- END ad1border -->
- </div>
- <!-- END mainheaderleft -->
- <div id="mainheaderright">
- <div id="recvid">
- </div>
- <!-- END recvid -->
- <?php
- $args=array(
- 'category__in' => array(3),
- 'posts_per_page'=>4,
- 'caller_get_posts'=>1
- );
- $my_query = new WP_Query($args);
- if( $my_query->have_posts() ) {
- while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <div class="recvidimgborder">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php video_thumbnail(); ?>" class="recvidimg" /></a>
- </div>
- <!-- END recvidimgborder -->
- <?php
- endwhile;
- }
- wp_reset_postdata();
- ?>
- </div>
- <!-- END mainheaderright -->
- </div>
- <!-- END mainheader -->
- <div style="clear:both;"></div>
- <?php
- while(have_posts()) : the_post(); ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php video_thumbnail(); ?>" class="videothumb" /></a>
- <?php
- endwhile;
- global $wp_query;
- $big = 999999999; // need an unlikely integer
- echo paginate_links( array(
- 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
- 'format' => '?paged=%#%',
- 'current' => max( 1, get_query_var('paged') ),
- 'total' => $wp_query->max_num_pages
- ) );
- ?>
- <div style="clear:both;"></div><br /><br /><?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement