Advertisement
Guest User

Ak index

a guest
Sep 11th, 2011
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.73 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php get_sidebar('leftsidebar'); ?>
  4. <div id="content-obal">
  5. <?php get_sidebar('rightsidebar'); ?>
  6.  
  7.     <div id="content" class="indexcontent">
  8.  <h1 class="h1-index"><a href="http://pokerak.cz/category/aktuality/">Aktuality</a> </h1>
  9.   <?php $my_query = new WP_Query('category_name=aktuality,turnajove-zpravodajstvi&posts_per_page=1');
  10.   while ($my_query->have_posts()) : $my_query->the_post();
  11.   $do_not_duplicate = $post->ID;?>
  12.     <div class="post-index" id="post-<?php the_ID(); ?>">
  13.                 <h2><a href="<?php the_permalink() ?>" title="Trvalý odkaz k <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  14.                 <div class="entry">
  15.                     <?php the_content(' Číst celý příspěvek'); ?>
  16.                 </div>
  17.             </div>
  18.   <?php endwhile; ?>
  19.    <ul class="post-index-seznam"> <!-- Do other stuff... -->
  20.       <?php query_posts('category_name=aktuality,turnajove-zpravodajstvi&posts_per_page=12');
  21.   if (have_posts()) : while (have_posts()) : the_post();
  22.   if( $post->ID == $do_not_duplicate ) continue; ?>
  23.    <li class="post-index-li" id="post-<?php the_ID(); ?>">
  24.                 <h3><a href="<?php the_permalink() ?>" title="Trvalý odkaz k <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  25.  
  26.             </li>
  27.   <?php endwhile; endif; ?>
  28.    </ul>
  29.   <?php wp_reset_query();
  30. ?>
  31.  
  32.  <h1 class="h1-index"><a href="http://pokerak.cz/category/pokerove-strategie/">Strategie</a> </h1>
  33.  
  34.    <?php $my_query = new WP_Query('cat=-7340,-161&posts_per_page=4');
  35.   while ($my_query->have_posts()) : $my_query->the_post();
  36.   $do_not_duplicate[] = $post->ID;?>
  37.     <div class="post-index" id="post-<?php the_ID(); ?>">
  38.                 <h2><a href="<?php the_permalink() ?>" title="Trvalý odkaz k <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  39.                
  40.  
  41.                 <div class="entry">
  42.                     <?php the_content(' Číst celý příspěvek'); ?>
  43.                 </div>
  44.             </div>
  45.  
  46.   <?php endwhile; ?>
  47.     <ul class="post-index-seznam"> <!-- Do other stuff... -->
  48. <?php if (have_posts()) : while (have_posts()) : the_post();
  49.  if (in_array($post->ID, $do_not_duplicate)) continue;
  50.  ?>
  51.  
  52.    <li class="post-index-li" id="post-<?php the_ID(); ?>">
  53.                 <h3><a href="<?php the_permalink() ?>" title="Trvalý odkaz k <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  54.  
  55.             </li>
  56.   <?php endwhile; endif; ?>
  57.    </ul>
  58.  
  59.  
  60. <div class="post">
  61. <h2><a href="http://pokerak.cz/poker-kalkulator/" alt="Rozšířený a detailnější kalkulátor">ODDS kalkulátor</a></h2>
  62. <!-- Tool Start -->
  63.  
  64. <div style="width:383px;">
  65. <iframe src="http://www.pokerlistings.com/odds-calculator-383x160"  width="383" height="170" frameborder=0 scrolling="no" marginwidth="0"></iframe>
  66. </div>
  67. <!-- Tool End -->
  68. </div>
  69.  
  70.  
  71.     </div>
  72.  
  73. </div>
  74.  
  75.  
  76. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement