Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. <?php $options = get_option('playbook'); ?>
  2. <?php get_header(); ?>
  3. <div id="page">
  4. <div class="content">
  5. <article class="article">
  6. <div id="content_box">
  7. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8. <div class="post excerpt <?php echo (++$j % 2 == 0) ? 'last' : ''; ?>">
  9. <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="nofollow" id="featured-thumbnail">
  10. <?php if ( has_post_thumbnail() ) { ?>
  11. <?php echo '<div class="featured-thumbnail">'; the_post_thumbnail('featured',array('title' => '')); echo '</div>'; ?>
  12. <?php } else { ?>
  13. <div class="featured-thumbnail">
  14. <img width="287" height="172" src="<?php echo get_template_directory_uri(); ?>/images/nothumb.png" class="attachment-featured wp-post-image" alt="<?php the_title(); ?>">
  15. </div>
  16. <?php } ?>
  17. </a>
  18. <header>
  19. <h2 class="title">
  20. <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
  21. </h2>
  22. </header><!--.header-->
  23. <div class="post-content image-caption-format-1">
  24. <?php echo excerpt(17);?>
  25. </div>
  26. <div class="post-info">
  27. <div class="post-info-inner">
  28. <span class="theauthor"><?php _e('Posted by: ','mythemeshop'); the_author_posts_link(); ?></span>
  29. <span class="thetime"><?php _e(' ','mythemeshop'); the_time('j/n/Y'); ?></span>
  30. </div>
  31. <span class="thecomment"><a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a></span>
  32. </div>
  33. <div style="display:none" class="readMore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php _e('Read More','mythemeshop'); ?></a></div>
  34. </div><!--.post excerpt-->
  35. <?php endwhile; else: ?>
  36. <div class="post excerpt">
  37. <div class="no-results">
  38. <p><strong><?php _e('There has been an error.', 'mythemeshop'); ?></strong></p>
  39. <p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'mythemeshop'); ?></p>
  40. <?php get_search_form(); ?>
  41. </div><!--noResults-->
  42. </div>
  43. <?php endif; ?>
  44. <?php if ($options['mts_pagenavigation'] == '1') { ?>
  45. <?php pagination($additional_loop->max_num_pages);?>
  46. <?php } else { ?>
  47. <div class="pnavigation2">
  48. <div class="nav-previous"><?php next_posts_link( __( '&larr; '.'Older posts', 'mythemeshop' ) ); ?></div>
  49. <div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' &rarr;', 'mythemeshop' ) ); ?></div>
  50. </div>
  51. <?php } ?>
  52. </div>
  53. </article>
  54. <?php get_sidebar(); ?>
  55. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement