Guest User

Untitled

a guest
Nov 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1.                 <div class="posts">
  2.                     <h2 class="main-title"><span>Diğer Yazılar</span></h2>
  3.                     <?php
  4.                         query_posts('offset=4');
  5.                         if (have_posts()) : $counter = 0;
  6.                         while (have_posts()) : the_post(); $counter++;
  7.                     ?>
  8.                         <?php if ($counter == 2) { ?>
  9.                         <div class="post">
  10.                             <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
  11.                                 <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('big-thumb'); ?></a>
  12.                             <?php } else { ?>
  13.                                 <img src="<?php echo catch_that_image(); ?>" width="630" height="390" alt="<?php the_title(); ?>" />
  14.                             <?php } ?>
  15.                             <h2><?php the_title(); ?></h2>
  16.                             <?php the_excerpt(); ?>
  17.                         </div>
  18.                         <?php } elseif ($counter == 4) { ?>                
  19.                         <div class="clear"></div>
  20.                         <div class="ads">
  21.                             <h2 class="main-title"><span>Reklam Alanı</span></h2>
  22.                         </div>
  23.                         <div class="clear"></div>
  24.                         <?php } elseif ($counter == 6) {  ?>
  25.                         <div class="post">
  26.                             <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
  27.                                 <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('big-thumb'); ?></a>
  28.                             <?php } else { ?>
  29.                                 <img src="<?php echo catch_that_image(); ?>" width="630" height="390" alt="<?php the_title(); ?>" />
  30.                             <?php } ?>
  31.                             <h2><?php the_title(); ?></h2>
  32.                             <?php the_excerpt(); ?>
  33.                         </div>
  34.                         <?php } else { ?>
  35.                         <div class="post">
  36.                             <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
  37.                                 <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a>
  38.                             <?php } else { ?>
  39.                                 <img src="<?php echo catch_that_image(); ?>" width="210" height="130" class="mini" alt="<?php the_title(); ?>" />
  40.                             <?php } ?>
  41.                             <h2><?php the_title(); ?></h2>
  42.                             <?php the_excerpt(); ?>
  43.                         </div>
  44.                         <?php } ?>
  45.                     <?php
  46.                         endwhile; endif; wp_reset_postdata();
  47.                     ?>                 
  48.                 </div>
Add Comment
Please, Sign In to add comment