<?php
/*
Template Name: Akce
*/
get_header();
?>
<div class="main clr" id="content">
  <div class="text">
    <div class="bread">
        <span>Jste zde:</span> <a href="<?php bloginfo('url'); ?>">RoverNet</a> Kalendář akcí
    </div>
    
    <div class="rel">
        <h1>Kalendář akcí</h1>
      <? if(is_user_logged_in()){?>
      <div class="absr"><a class="btn" href="<?php echo get_page_link(51)?>">přidej akci</a></div>
      <?}else{?>
      <span href="" class="addFade addFade2">přidej akci (přihlaš se)</span>
      <?}?>
    </div>
    
    <?php

    $pocetPostuNaStranku = 10;
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $countQuery = new WP_Query();
    $wp_query->query('showposts=' . $pocetPostuNaStranku .'&cat=9&paged='.$paged);
    
    ?>
    
    <div class="akce">
    <div class="winter3">
        <table>
        
    
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <tr>
      <td class="date">Pá 25. 10. – Ne 27. 10.</td>
      <td><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></td>
    </tr>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
        </table>
    </div>
    </div>
  </div>
  <?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>