1. <?php if (is_home()) $args=array(
  2. 'showposts'=> (int) get_option('13floor_homepage_posts'),
  3. 'paged'=>$paged,
  4. 'category__not_in' => (array) get_option('13floor_exlcats_recent'),
  5. ); ?>
  6. <?php get_header(); ?>
  7.  
  8. <?php
  9. if (is_home()) query_posts($args);
  10. ?>
  11.  
  12. <div id="content-top"></div>
  13.  
  14. <div id="contentwrap">
  15. <div id="content" class="clearfix">
  16.  
  17. <div id="content-area">
  18.  
  19. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  20.  
  21. <?php $thumb = '';
  22.  
  23. $width = 136;
  24. $height = 136;
  25. $classtext = 'thumbnail alignleft';
  26. $titletext = get_the_title();
  27.  
  28. $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  29. $thumb = $thumbnail["thumb"]; ?>
  30.  
  31. <?php global $post;
  32. $page_result = is_search() && ($post->post_type == 'page') ? true : false; ?>
  33.  
  34. <div class="entry clearfix<?php if ($page_result) echo(' page_result'); ?>">
  35.  
  36. <h2 class="title"><a href="<?php the_permalink() ?>" title="<?php printf(esc_attr__('Permanent Link to %s', '13floor'), $titletext) ?>"><?php the_title(); ?></a></h2>
  37.  
  38. <?php if ((get_option('13floor_postinfo1') <> '') && !($page_result)) get_template_part('includes/postinfo'); ?>
  39.  
  40. <?php if($thumb <> '' && get_option('13floor_thumbnails_index') == 'on') { ?>
  41. <a href="<?php the_permalink() ?>" title="<?php printf(esc_attr__('Permanent Link to %s', '13floor'), $titletext) ?>">
  42. <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
  43. </a>
  44. <?php }; ?>
  45.  
  46. <?php if (get_option('13floor_blog_style') == 'on') the_content(""); else { ?>
  47. <p><?php truncate_post(365); ?></p>
  48. <?php }; ?>
  49.  
  50. <a class="readmore" href="<?php the_permalink() ?>" title="<?php printf(esc_attr__('Permanent Link to %s', '13floor'), $titletext) ?>"><span><?php esc_html_e('Read More','13floor'); ?></span></a>
  51.  
  52. </div> <!-- end .entry -->
  53.  
  54. <?php endwhile; ?>
  55.  
  56. <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  57. else { ?>
  58. <?php get_template_part('includes/navigation'); ?>
  59. <?php } ?>
  60.  
  61. <?php else : ?>
  62. <?php get_template_part('includes/no-results'); ?>
  63. <?php endif; wp_reset_query(); ?>
  64.  
  65. </div> <!-- end #content-area -->
  66.  
  67. <?php get_sidebar(); ?>
  68.  
  69. <?php get_footer(); ?>