index.php
<?php get_header(); ?>
<div id="container">
<div id="left-div">
<div id="left-inside">
<?php if (get_option('artsee_format') == 'Blog Style') { ?>
<?php include(TEMPLATEPATH . '/includes/blogstyle.php'); ?>
<?php } else { include(TEMPLATEPATH . '/includes/defaultindex.php'); } ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
</body>
</html>Blogstyle.php
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<!--Begin Post-->
<span class="single-entry-titles" style="margin-top: 18px;"></span>
<div class="post-wrapper">
<div style="clear: both;"></div>
<?php if (get_option('artsee_thumbnails') == 'Hide') { ?>
<?php { echo ''; } ?>
<?php } else { include(TEMPLATEPATH . '/includes/thumbnail.php'); } ?>
<h3 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="post-info">Ekleyen <?php the_author() ?> Kategori <?php the_category(', ') ?> Tarih <?php the_time('m jS, Y') ?> | <a href="#postcomment" title="<?php _e("Yorum Yap"); ?>"><?php comments_number('Yorum Yok','1 yorum','% yorum'); ?></a></div>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<!--End Post-->
<div style="clear: both;"></div>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<p class="pagination"><?php next_posts_link('« eski oyunlar') ?> <?php previous_posts_link('yeni oyunlar »') ?></p>
<?php } ?>
<?php else : ?>
<h2 >Oyun bulunamadı.</h2>
<p>Malesef aradığın kelimeyle alakalı hiç oyuk yok. </p>
<?php endif; ?>
Defaultindex.php
<?php if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
<?php
// check for thumbnail
$thumb = get_post_meta($post->ID, 'image_value', $single = true);
// check for thumbnail class
$thumb_class = get_post_meta($post->ID, 'image_value Class', $single = true);
// check for thumbnail alt text
$thumb_alt = get_post_meta($post->ID, 'image_value Alt', $single = true);
?>
<div class="home-post-wrap2">
<span class="single-entry-titles"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title2('', '', true, '400') ?></a></span>
<div class="single-entry">
<?php // if there's a thumbnail
if($thumb !== '') { ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=120&w=120&zc=1" class="thumbnail" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>" style="border: none;" /></a>
<?php } // end if statement
// if there's not a thumbnail
else { echo ''; } ?>
<div class="post-info">Ekleyen <?php the_author() ?> Kategori <?php the_category(', ') ?> Tarih <?php the_time('m jS, Y') ?> | <?php comments_popup_link('Yorum yok', '1 Yorum', '% Yorum'); ?></div>
<?php the_content_limit(300, ""); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" style="float: right;" title="<?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/readmore.gif" alt="oyunu oyna <?php the_title(); ?>" style="border: none;" /></a>
</div>
</div>
<?php endwhile; ?>
<div style="clear: both;"></div>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?>
<p class="pagination"><?php next_posts_link('« eski oyunlar') ?> <?php previous_posts_link('yeni oyunlar »') ?></p>
<?php } ?>
<?php else : ?>
<h2 >Oyun Bulunamadı</h2>
<p>bulamadım oyunu.. </p>
<?php endif; ?>