Advertisement
Guest User

Untitled

a guest
Jul 5th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.10 KB | None | 0 0
  1. <div id="mrln-heading-content" style="border-top-width: 1px; border-top-style: solid; border-top-color: #f8da06; border-left-width: 1px; border-left-style: solid; border-left-color: #f8da06; border-right-width: 1px; border-right-style: solid; border-right-color: #f8da06;">
  2.  
  3. <div id="mrln-heading-carousel">
  4.  
  5. <div id="mrln-heading-carousel-slider" style="float:left">
  6.  
  7. <?php
  8.  
  9. $cache_taygay = "cache_taygay";
  10. $cache_zamani2 = 5 * 1;
  11.  
  12. if(false === get_transient($cache_taygay)){
  13. ob_start();
  14.  
  15. ?>
  16.  
  17. <?php $oyun_manset1 = new Wp_Query("showposts=8&cat=58"); while($oyun_manset1->have_posts()) : $oyun_manset1->the_post(); ?>
  18.  
  19. <div>
  20.  
  21. <a href="<?php the_permalink('') ?>">
  22.  
  23. <img src="<?php $values = get_post_custom_values("oyun_manset_resim"); if($values==""){}else{$values = get_post_custom_values("oyun_manset_resim"); echo $values[0];}  ?>" height="270" width="640" alt="<?php the_title(''); ?>" />
  24.  
  25. </a>
  26.  
  27. </div>
  28.  
  29. <?php endwhile; ?>
  30.  
  31. <?php
  32.  
  33. set_transient($cache_taygay, ob_get_contents(), $cache_zamani2);
  34. ob_end_flush();
  35.  
  36. }else{
  37.  
  38. echo get_transient($cache_taygay);
  39. }
  40.  
  41. ?>
  42.  
  43. </div>
  44.  
  45. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement