Advertisement
SRD75

Untitled

Mar 25th, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="main">
  4.  
  5. <div class="content">
  6.  
  7. <?php themeblvd_breadcrumbs(); ?>
  8.  
  9. <?php if($themeblvd_sidebar == 'left') : ?>
  10. <?php get_sidebar(); ?>
  11. <?php endif; ?>
  12.  
  13. <div id="content">
  14.  
  15. <?php if($themeblvd_theme_hints == 'true') : ?>
  16. <?php echo themeblvd_theme_hints('archive'); ?>
  17. <?php endif; ?>
  18.  
  19. <?php if($themeblvd_archive_title == 'true') : ?>
  20. <h1>
  21. <?php if (have_posts()) : ?>
  22. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  23. <?php /* If this is a category archive */ if (is_category()) { ?>
  24. <?php _e('Category', "themeblvd"); ?>: <?php single_cat_title(); ?>
  25. <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  26. <?php _e('Tag', "themeblvd"); ?>: <?php single_tag_title(); ?>
  27. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  28. <?php _e('Archive', "themeblvd"); ?>: <?php the_time('F jS, Y'); ?>
  29. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  30. <?php _e('Archive', "themeblvd"); ?>: <?php the_time('F, Y'); ?>
  31. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  32. <?php _e('Archive', "themeblvd"); ?>: <?php the_time('Y'); ?>
  33. <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  34. <?php _e('Author Archive', "themeblvd"); ?>
  35. <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  36. <?php _e('Blog Archives', "themeblvd"); ?>
  37. <?php } ?>
  38. <?php endif; ?>
  39. <?php get_my_thumbnail($post_id, 600); ?>
  40. </h1>
  41. <?php endif; ?>
  42.  
  43. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  44.  
  45. <div class="entry">
  46. <?php if($themeblvd_archive_title == 'true') : ?>
  47. <h2><a href="<?php the_permalink(); ?>" title=""><?php the_title(); ?></a></h2>
  48. <?php else: ?>
  49. <h1><a href="<?php the_permalink(); ?>" title=""><?php the_title(); ?></a></h1>
  50. <?php endif; ?>
  51.  
  52. <div class="content">
  53.  
  54. <div class="meta">
  55. <span class="left">
  56. <span class="date">
  57. <?php the_time(get_option('date_format')); ?>
  58. </span>
  59. </span>
  60. <span class="right">
  61. <span class="comments">
  62. <a href="<?php the_permalink(); ?>#comments-wrap">
  63. <?php comments_number( __("No Comments", "themeblvd"), __("1 Comment", "themeblvd"), __("% Comments", "themeblvd") ); ?>
  64. </a>
  65. </span>
  66. <span class="author">
  67. <?php _e('by ', 'flipblog'); ?><?php the_author(); ?>
  68. </span>
  69. </span>
  70. </div><!-- .meta (end) -->
  71.  
  72. <?php if($themeblvd_archive_image == 'true') : ?>
  73. <?php if ( has_post_thumbnail() ) : ?>
  74. <?php the_post_thumbnail('blog'); ?>
  75. <?php endif; ?>
  76. <?php endif; ?>
  77.  
  78. <div class="excerpt">
  79. <?php the_excerpt(); ?>
  80. </div>
  81.  
  82. <p>
  83. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="button">
  84. <?php _e("Read More", "themeblvd"); ?> &raquo;
  85. </a>
  86. </p>
  87.  
  88. </div><!-- .content (end) -->
  89.  
  90. </div><!-- .entry (end) -->
  91.  
  92. <?php endwhile; ?>
  93.  
  94. <!-- Pagination -->
  95. <?php themeblvd_pagination(); ?>
  96.  
  97. <?php else : ?>
  98. <p class="warning">
  99. <?php _e("There are no posts to display.", "themeblvd"); ?>
  100. </p>
  101. <?php endif; ?>
  102.  
  103. </div><!-- #content (end) -->
  104.  
  105. <?php if($themeblvd_sidebar == 'right') : ?>
  106. <?php get_sidebar(); ?>
  107. <?php endif; ?>
  108.  
  109. <div class="clear"></div>
  110.  
  111. </div><!-- .content (end) -->
  112.  
  113. </div><!-- #main (end) -->
  114.  
  115. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement