Advertisement
Guest User

Untitled

a guest
Sep 27th, 2012
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * @package WordPress
  6. * @subpackage 6Thirteen
  7. *
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12.  
  13. <div id="mainheader">
  14.  
  15. <div id="mainheaderleft">
  16.  
  17. <div id="mainslideshow">
  18. <?php echo slider_pro(1); ?>
  19. </div>
  20. <!-- END mainslideshow -->
  21.  
  22.  
  23. <div class="ad1border">
  24. <?php do_action('advertisement1'); ?>
  25. </div>
  26. <!-- END ad1border -->
  27.  
  28. <div class="ad1border">
  29. <?php do_action('advertisement2'); ?>
  30. </div>
  31. <!-- END ad1border -->
  32.  
  33. </div>
  34. <!-- END mainheaderleft -->
  35.  
  36. <div id="mainheaderright">
  37.  
  38. <div id="recvid">
  39. </div>
  40. <!-- END recvid -->
  41.  
  42.  
  43. <?php
  44.  
  45. $args=array(
  46. 'category__in' => array(3),
  47. 'posts_per_page'=>4,
  48. 'caller_get_posts'=>1
  49. );
  50.  
  51. $my_query = new WP_Query($args);
  52.  
  53. if( $my_query->have_posts() ) {
  54.  
  55. while ($my_query->have_posts()) : $my_query->the_post(); ?>
  56.  
  57. <div class="recvidimgborder">
  58. <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php video_thumbnail(); ?>" class="recvidimg" /></a>
  59. </div>
  60. <!-- END recvidimgborder -->
  61.  
  62. <?php
  63.  
  64. endwhile;
  65. }
  66.  
  67. wp_reset_postdata();
  68.  
  69. ?>
  70.  
  71. </div>
  72. <!-- END mainheaderright -->
  73.  
  74. </div>
  75. <!-- END mainheader -->
  76. <div style="clear:both;"></div>
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86. <?php
  87.  
  88.  
  89. while(have_posts()) : the_post(); ?>
  90.  
  91. <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php video_thumbnail(); ?>" class="videothumb" /></a>
  92.  
  93. <?php
  94. endwhile;
  95. global $wp_query;
  96.  
  97. $big = 999999999; // need an unlikely integer
  98.  
  99. echo paginate_links( array(
  100. 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
  101. 'format' => '?paged=%#%',
  102. 'current' => max( 1, get_query_var('paged') ),
  103. 'total' => $wp_query->max_num_pages
  104. ) );
  105.  
  106. ?>
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. <div style="clear:both;"></div><br /><br /><?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement