Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.99 KB | None | 0 0
  1. <?php get_header();?>
  2. <div id="reklam_header_alti">
  3.         <div style="float: left;">
  4.  
  5.             <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?><?php endif; ?>
  6.         </div>
  7.  
  8.             <div id="haftanin_oyunu">
  9.                 <div class="baslik_h"></div>
  10.                 <?php $postslist = get_posts('category_name=haftanin-oyunu&numberposts=1');foreach ($postslist as $post) : setup_postdata($post); ?>
  11.  
  12.                 <div class="h_ic">
  13.  
  14.                     <div class="h_oyun">
  15.  
  16.                          <?php $values = get_post_custom_values("resim");if ( $values[0]!='') { ?>
  17.  
  18.                           <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img class="h-resim" src="<?php echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a>
  19.  
  20.                         <?php } else { ?>
  21.  
  22.                          <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <img class="h-resim" src="<?php bloginfo('template_url'); ?>/grafik/resimyok.jpg" alt=""/></a>
  23.  
  24.                         <?php } ?>
  25.  
  26.                             <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  27.  
  28.  
  29.                      <span class="kucultt"><?php if(function_exists('the_views')) { the_views(); } ?> kez oynandı<br />
  30.  
  31. <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
  32.  
  33. </span>
  34.  
  35.                     </div>
  36.  
  37.                 </div>
  38.                 <?php endforeach; ?>
  39.             </div>
  40.     </div>
  41.  
  42. <?php include("sidebar.php");?>
  43.  
  44. <div id="loper">
  45.  
  46. <div id="en_yeni_oyunlar">
  47.  
  48.         <div class="baslik_y"></div>
  49.  
  50.         <div class="ic">
  51.             <?php $postslist = get_posts('numberposts=8');foreach ($postslist as $post) : setup_postdata($post); ?>
  52.             <div class="yeni_oyun">
  53.                 <?php $values = get_post_custom_values("resim");if ( $values[0]!='') { ?>
  54.  
  55.                   <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img class="ressim" src="<?php echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a>
  56.  
  57.                 <?php } else { ?>
  58.                   <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img class="ressim" src="<?php bloginfo('template_url'); ?>/grafik/resimyok.jpg" alt="" /></a>
  59.  
  60.                 <?php } ?>
  61.                   <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  62.  
  63.                     <span class="toplam_oynanan">
  64.  
  65. <div style="float:left"><?php if(function_exists('the_views')) { the_views(); } ?> kez oynandı<br /></div>          
  66.  
  67. <div style="float:left"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
  68.                     </span>
  69.  
  70.             </div>
  71.      
  72.             <?php endforeach; ?>            
  73.         </div>
  74.  
  75.     </div>
  76.     <!-- en yeni oyunlar -->
  77.  
  78.     <!-- en cok oynananlar -->
  79.     <div id="encokoynanan">
  80.         <div style="float: left; margin-left:10px;">
  81.  
  82.             <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : else : ?><?php endif; ?>  
  83.         </div>
  84.             <div id="enOynanan">
  85.                 <div class="baslik_n"></div>
  86.                    <div class="enic">
  87.  
  88.                                  <?php if (function_exists('get_most_viewed')): ?>
  89.  
  90.                 <?php get_most_viewed('', 6); ?>
  91.  
  92.   <?php endif; ?>
  93.  
  94.                     </div>
  95.     </div>
  96.     <!-- en cok oynananlar -->
  97. <!-- rastgele oyunlar -->
  98.     <div  style="margin-top: 15px;" id="en_yeni_oyunlar">
  99.         <div class="baslik_rastgele"></div>
  100.        <div class="ic">
  101.             <?php $postslist = get_posts('numberposts=8&orderby=rand');foreach ($postslist as $post) : setup_postdata($post); ?>
  102.             <div class="yeni_oyun">
  103.                 <?php $values = get_post_custom_values("resim");if ( $values[0]!='') { ?>
  104.  
  105.                  <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <img class="ressim" src="<?php echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a>
  106.                 <?php } else { ?>
  107. <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img class="ressim" src="<?php bloginfo('template_url'); ?>/grafik/resimyok.jpg" alt="" /></a>
  108.  
  109.                 <?php } ?>
  110.  
  111.                   <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  112.  
  113.                     <span class="toplam_oynanan">
  114.  
  115.                     <div style="float:left"><?php if(function_exists('the_views')) { the_views(); } ?> kez oynandı<br /></div>
  116.  
  117.                    <div style="float:left"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
  118.  
  119.                     </span>
  120.  
  121.             </div>
  122.        
  123.             <?php endforeach; ?>            
  124.  
  125.  
  126.  
  127.         </div>
  128.  
  129.  
  130.  
  131.     </div>
  132.  
  133.  
  134.  
  135.     <!-- rastgele oyunlar -->
  136.  
  137.  
  138. </div><!-- loper -->
  139.  
  140. <?php get_footer();?>
Add Comment
Please, Sign In to add comment