Advertisement
alchymyth

loops

Jul 20th, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.80 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <div class="postsbody">
  6.  
  7. <?
  8. global $options;
  9. foreach ($options as $value) {
  10.     if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  11. }
  12. ?>
  13. <div class="ads1">
  14. <?php include (TEMPLATEPATH . '/adsense/adsense468-15.php'); ?>
  15. </div>
  16.  
  17. <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0" width="640" height="256">
  18.   <param name="src" value="http://skutocnepreklady.com/wp-content/uploads/social%20media%20banner/social%20media%20banner.swf" />
  19.   <embed src="http://skutocnepreklady.com/wp-content/uploads/social%20media%20banner/social%20media%20banner.swf" pluginspage="http://www.adobe.com/shockwave/download/" width="640" height="256"></embed>
  20. </object>
  21.  
  22. <div class="featured">
  23.   <h2>Čo sa práve hrá v hitparádach </h2>
  24.   <div style="padding:15px 0 15px 20px;">
  25.   <?php $do_not_duplicate = array();
  26.   $recent = new WP_Query("cat=-67&showposts=4"); while($recent->have_posts()) : $recent->the_post();
  27.   $do_not_duplicate[] = $post->ID; ?>
  28.  
  29.   <div class="videopart">
  30.    
  31.   <div class="thumbnail">
  32.   <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumb", true); ?>" width="120" height="90" alt="<?php the_title(); ?>" /></a>
  33.   </div>
  34.    
  35.   <div class="fpost">
  36.   <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
  37.   <p><?php if(function_exists('the_views')) { the_views(); } ?></p>
  38.   <p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p>  
  39.   </div>
  40.    
  41.   </div>
  42.   <?php endwhile; ?>
  43.   </div>
  44. </div>
  45.  
  46. <div class="ads2">
  47. <?php include (TEMPLATEPATH . '/adsense/adsense468-60.php'); ?>
  48. </div>
  49.  
  50.  
  51.  
  52. <div class="featured">
  53. <h2>Všetko</h2>
  54. <div style="padding:15px 0 15px 20px;">
  55. <?php $args = array(
  56. 'post__not_in' => $do_not_duplicate,
  57. 'showposts' => 12,
  58. 'cat' => -67,
  59. 'orderby' => 'rand'
  60. );
  61. $recent = new WP_Query( $args ); while($recent->have_posts()) : $recent->the_post();?>
  62. <div class="videopart">
  63.  
  64. <div class="thumbnail">
  65. <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumb", true); ?>" width="120" height="90" alt="<?php the_title(); ?>" /></a>
  66. </div>
  67.  
  68. <div class="fpost">
  69. <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
  70. <p><?php if(function_exists('the_views')) { the_views(); } ?></p>
  71. <p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p>  
  72. </div>
  73.  
  74. </div>
  75. <?php endwhile; ?>
  76. </div>
  77. </div>
  78.  
  79.  
  80.  
  81. </div>
  82.  
  83. <?php include (TEMPLATEPATH . '/sidebar_right.php'); ?>
  84.  
  85. </div>
  86.  
  87.  
  88.  
  89. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement