SİTE: www.turkiyebazar.com
index.php kodları ana sayfada görünen bölgenin kodu aşağıda
<div class="container-fluid">
<div id="masonry">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('thumb'); ?>>
<div class="thumb-holder">
<div class="masonry-actionbar">
<a class="btn btn-mini" href="<?php the_permalink(); ?>/#respond"><i class="icon-comment"></i> <?php _e('İletişim', 'ipin'); ?></a>
<a class="btn btn-mini" href="<?php the_permalink(); ?>"><?php _e('Yazıya Git', 'ipin'); ?> <i class="icon-arrow-right"></i></a>
</div>
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) {
$imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'medium');
$imgsrc = $imgsrc[0];
} elseif ($postimages = get_children("post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=0")) {
foreach($postimages as $postimage) {
$imgsrc = wp_get_attachment_image_src($postimage->ID, 'medium');
$imgsrc = $imgsrc[0];
}
} elseif (preg_match('/<img [^>]*src=["|\']([^"|\']+)/i', get_the_content(), $match) != FALSE) {
$imgsrc = $match[1];
} else {
$imgsrc = get_template_directory_uri() . '/img/blank.gif';
}
?>
<img src="<?php echo $imgsrc; $imgsrc = '' ?>" alt="<?php the_title_attribute(); ?>" />
<div class="thumbtitle"><?php the_title(); ?></div>
</a>
</div>
<div class="masonry-meta<?php $show_avatars = get_option('show_avatars'); $comments_number = get_comments_number(); if ($comments_number == 0 && $show_avatars == '0') { echo ' text-align-center'; } ?>">
<?php if ($show_avatars == '1') { ?>
<div class="masonry-meta-avatar"><?php echo get_avatar(get_the_author_meta('user_email') , $size = '30'); ?></div>
<div class="masonry-meta-comment">
<?php } ?>
<span class="masonry-meta-author"><?php echo get_the_author_meta('display_name') ?></span> <?php _e('Adlı Yazarın Yazısı ve Yazı Kategorileri', 'ipin'); ?> <span class="masonry-meta-content"><?php the_category(', '); ?></span>
<?php if ($show_avatars == '1') { ?>
</div>
<?php } ?>
</div>
<?php
if ('0' != $frontpage_comments_number = of_get_option('frontpage_comments_number')) {
$args = array(
'number' => $frontpage_comments_number,
'post_id' => $post->ID,
'status' => 'approve'
);
$comments = get_comments($args);
foreach($comments as $comment) {
?>
<div class="masonry-meta">
<?php if ($show_avatars == '1') { ?>
<div class="masonry-meta-avatar"><?php echo get_avatar( $comment->comment_author_email , $size = '30'); ?></div>
<div class="masonry-meta-comment">
<?php } ?>
<span class="masonry-meta-author"><?php echo $comment->comment_author; ?></span>
<?php echo $comment->comment_content; ?>
<?php if ($show_avatars == '1') { ?>
</div>
<?php } ?>
</div>
<?php
}
if ($comments_number > $frontpage_comments_number) {
?>
<div class="masonry-meta text-align-center">
<span class="masonry-meta-author">
<a href="<?php the_permalink() ?>/#navigation" title="<?php _e('Yapılan', 'ipin'); ?> <?php echo $comments_number; ?> <?php _e('Yorum Var', 'ipin') ?>"><?php _e('Yapılan', 'ipin'); ?> <?php echo $comments_number; ?> <?php _e('Yorum Var', 'ipin') ?></a>
</span>
</div>
<?php }
} ?>
</div>