Advertisement
Guest User

Untitled

a guest
Feb 11th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="eventy-box">
  4.  
  5. <h2 class="right">Następne:</h2>
  6. <h2 class="left">Poprzednie:</h2>
  7.  
  8. <div class="clear"></div>
  9.  
  10. <div id="eventy">
  11.  
  12.  
  13. <?php $my_query = new WP_Query('showposts=2 & cat="event" & post_status=future,publish');
  14. while ($my_query->have_posts('post_status=future,publish')) : $my_query->the_post();
  15. $do_not_duplicate = $post->ID; ?>
  16.  
  17. <div class="event">
  18. <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><h3>
  19. <span><?php the_time('l, j F Y') ?> o godzinie <?php the_time('H:i'); ?></span>
  20. </div>
  21.  
  22. <?php endwhile; ?>
  23.  
  24.  
  25.  
  26. </div>
  27. </div>
  28.  
  29.  
  30.  
  31. <div id="left">
  32. <?php get_sidebar( 'left' ); ?>
  33. </div>
  34.  
  35. <div id="content">
  36.  
  37.  
  38. <div id="slider"><?php if (function_exists('easing_slider')){ easing_slider(); }; ?></div>
  39.  
  40.  
  41.  
  42. <?php if (have_posts('showposts=5 & cat="-event"')) : while (have_posts()) : the_post();
  43. if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
  44.  
  45.  
  46. <div class="post" id="post-<?php the_ID(); ?>" >
  47.  
  48. <div class="entry">
  49.  
  50.  
  51. <?php if ( has_post_thumbnail()) : ?>
  52. <div class="postthumb">
  53. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" ><?php the_post_thumbnail('thumbnail'); ?></a>
  54. </div>
  55. <?php endif; ?>
  56.  
  57.  
  58. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><small><?php edit_post_link('Edytuj'); ?></small></h2><p class="postinf">w <?php the_category(', '); ?> <span> / <?php the_time('j F Y') ?> / </span></p>
  59.  
  60.  
  61. <?php the_excerpt(); ?>
  62. <!-- <?php echo get_the_tag_list(' Tagi: ',', ','');?> -->
  63. <div class="clear"></div>
  64.  
  65. </div>
  66.  
  67. </div>
  68.  
  69. <?php $count++; ?>
  70.  
  71. <?php endwhile; ?>
  72.  
  73. <div class="clear"></div>
  74.  
  75. <?php getpagenavi(); ?>
  76.  
  77. <?php else : ?>
  78.  
  79. <h1 class="title">Not Found</h1>
  80.  
  81. <p>Sorry, but you are looking for something that isn't here.</p>
  82.  
  83. <?php endif; ?>
  84.  
  85. </div>
  86.  
  87. <div id="right">
  88. <?php dynamic_sidebar( 'right' ); ?>
  89. </div>
  90.  
  91. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement