Guest User

Untitled

a guest
Oct 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.18 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Tüm Yazılar
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7.  
  8. <?php get_template_part('includes/breadcrumbs','index'); ?>
  9.  
  10. <div id="content-border">
  11.     <div id="content-top-border-shadow"></div>
  12.     <div id="content-bottom-border-shadow"></div>
  13.     <div id="content" class="clearfix">
  14.         <div id="content-right-bg" class="clearfix">
  15.             <div id="left-area">
  16.  
  17.            
  18.  
  19.  
  20. <?php query_posts('numberposts=-1&offset=0&posts_per_page=10'); ?>
  21. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  22.     <div class="post clearfix">
  23.         <?php if ( get_option('leanbiz_postinfo1') <> '' && ( in_array( 'date', get_option('leanbiz_postinfo1') ) || in_array( 'comments', get_option('leanbiz_postinfo1') ) ) ) { ?>
  24.             <div class="post-meta">
  25.                 <?php if ( in_array( 'date', get_option('leanbiz_postinfo1') ) ) { ?>
  26.                     <span class="post-meta-date"><?php the_time('M'); ?><span><?php the_time('d'); ?></span></span>
  27.                 <?php } ?>
  28.                 <?php if ( in_array( 'comments', get_option('leanbiz_postinfo1') ) ) { ?>
  29.                     <span class="meta-comment"><?php comments_popup_link( '0','1','%' ); ?></span>
  30.                 <?php } ?>
  31.             </div> <!-- end .post-meta-->
  32.         <?php } ?>
  33.        
  34.         <?php
  35.             $thumb = '';
  36.             $width = 191;
  37.             $height = 191;
  38.             $classtext = 'post-thumb';
  39.             $titletext = get_the_title();
  40.             $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
  41.             $thumb = $thumbnail["thumb"];
  42.         ?>
  43.         <?php if ( $thumb <> '' && get_option('leanbiz_thumbnails_index') == 'on' ) { ?>
  44.             <div class="post-thumbnail">
  45.                 <a href="<?php the_permalink(); ?>">
  46.                     <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  47.                     <span class="post-overlay"></span>
  48.                 </a>   
  49.             </div>  <!-- end .post-thumbnail -->
  50.         <?php } ?>
  51.         <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  52.        
  53.         <?php if ( get_option('leanbiz_postinfo1') <> '' && ( in_array( 'author', get_option('leanbiz_postinfo1') ) || in_array( 'categories', get_option('leanbiz_postinfo1') ) ) ) { ?>
  54.             <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>
  55.         <?php } ?>
  56.        
  57.         <?php if (get_option('leanbiz_blog_style') == 'on') the_content(''); else { ?>
  58.             <p><?php truncate_post(500); ?></p>
  59.         <?php } ?>
  60.         <a href="<?php the_permalink(); ?>" class="read-more"><span><?php esc_html_e('Devamı', 'LeanBiz'); ?></span></a>
  61.     </div>  <!-- end .post-->
  62. <?php
  63. endwhile;
  64.     if (function_exists('wp_pagenavi')) { wp_pagenavi(); }
  65.     else { get_template_part('includes/navigation','entry'); }
  66. else:
  67.     get_template_part('includes/no-results','entry');
  68. endif;
  69. if ( is_home() ) wp_reset_query(); ?>
  70.  
  71.  
  72.            
  73.            
  74.            
  75.            
  76.            
  77.            
  78.             </div>  <!-- end #left-area -->
  79.             <div id="content-top-shadow"></div>
  80.             <div id="content-bottom-shadow"></div>
  81.             <div id="content-widget-light"></div>
  82.  
  83.             <?php get_sidebar(); ?>
  84.         </div> <!-- end #content-right-bg -->  
  85.     </div> <!-- end #content -->
  86. </div> <!-- end #content-border -->
  87.  
  88. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment