Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Tüm Yazılar
- */
- ?>
- <?php get_header(); ?>
- <?php get_template_part('includes/breadcrumbs','index'); ?>
- <div id="content-border">
- <div id="content-top-border-shadow"></div>
- <div id="content-bottom-border-shadow"></div>
- <div id="content" class="clearfix">
- <div id="content-right-bg" class="clearfix">
- <div id="left-area">
- <?php query_posts('numberposts=-1&offset=0&posts_per_page=10'); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post clearfix">
- <?php if ( get_option('leanbiz_postinfo1') <> '' && ( in_array( 'date', get_option('leanbiz_postinfo1') ) || in_array( 'comments', get_option('leanbiz_postinfo1') ) ) ) { ?>
- <div class="post-meta">
- <?php if ( in_array( 'date', get_option('leanbiz_postinfo1') ) ) { ?>
- <span class="post-meta-date"><?php the_time('M'); ?><span><?php the_time('d'); ?></span></span>
- <?php } ?>
- <?php if ( in_array( 'comments', get_option('leanbiz_postinfo1') ) ) { ?>
- <span class="meta-comment"><?php comments_popup_link( '0','1','%' ); ?></span>
- <?php } ?>
- </div> <!-- end .post-meta-->
- <?php } ?>
- <?php
- $thumb = '';
- $width = 191;
- $height = 191;
- $classtext = 'post-thumb';
- $titletext = get_the_title();
- $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
- $thumb = $thumbnail["thumb"];
- ?>
- <?php if ( $thumb <> '' && get_option('leanbiz_thumbnails_index') == 'on' ) { ?>
- <div class="post-thumbnail">
- <a href="<?php the_permalink(); ?>">
- <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
- <span class="post-overlay"></span>
- </a>
- </div> <!-- end .post-thumbnail -->
- <?php } ?>
- <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php if ( get_option('leanbiz_postinfo1') <> '' && ( in_array( 'author', get_option('leanbiz_postinfo1') ) || in_array( 'categories', get_option('leanbiz_postinfo1') ) ) ) { ?>
- <p class="meta-info">Yazar:<?php if (in_array('author', get_option('leanbiz_postinfo1'))) { ?><?php the_author_posts_link(); ?><?php } ?> | Kategori:<?php if (in_array('categories', get_option('leanbiz_postinfo1'))) { ?><?php the_category(', ') ?><?php } ?></p>
- <?php } ?>
- <?php if (get_option('leanbiz_blog_style') == 'on') the_content(''); else { ?>
- <p><?php truncate_post(500); ?></p>
- <?php } ?>
- <a href="<?php the_permalink(); ?>" class="read-more"><span><?php esc_html_e('Devamı', 'LeanBiz'); ?></span></a>
- </div> <!-- end .post-->
- <?php
- endwhile;
- if (function_exists('wp_pagenavi')) { wp_pagenavi(); }
- else { get_template_part('includes/navigation','entry'); }
- else:
- get_template_part('includes/no-results','entry');
- endif;
- if ( is_home() ) wp_reset_query(); ?>
- </div> <!-- end #left-area -->
- <div id="content-top-shadow"></div>
- <div id="content-bottom-shadow"></div>
- <div id="content-widget-light"></div>
- <?php get_sidebar(); ?>
- </div> <!-- end #content-right-bg -->
- </div> <!-- end #content -->
- </div> <!-- end #content-border -->
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment