Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <!-- Call above title of fullwidth template -->
  3. <div class="container">
  4. <div class="row">
  5. <div class="hc_page_header_area">
  6. <h1><?php the_title(); ?></h1>
  7. </div>
  8. </div>
  9. </div>
  10.  
  11.  
  12. <!-- Call fullwidth template Section -->
  13. <div class="container">
  14. <div class="row hc_blog_wrapper">
  15. <!--Blog Content-->
  16. <div class="<?php spicy_post_layout_class(); ?>" >
  17. <?php
  18. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  19. $args = array( 'post_type' => 'post','paged'=>$paged);
  20. $post_type_data = new WP_Query( $args );
  21. while($post_type_data->have_posts()){
  22. $post_type_data->the_post();
  23. global $more;
  24. $more = 0;
  25. ?>
  26. <div id="post-<?php the_ID(); ?>" <?php post_class('blog_section'); ?>>
  27. <div class="media">
  28. <?php if(has_post_thumbnail()){ ?>
  29. <?php $defalt_arg =array('class' => "img-responsive blog_section_img"); ?>
  30. <a class="blog_pull_img">
  31. <?php the_post_thumbnail('', $defalt_arg); ?>
  32. </a>
  33. <?php } ?>
  34. <div class="media-body">
  35. <h2 class="blog-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  36. <div class="tags_area">
  37. <span class="blog_tags"><a href="<?php the_permalink(); ?>"><span class="posted"><?php _e('Posted on ', 'spicy')?></span><span class="date"><a href="<?php the_permalink(); ?>"><?php echo get_the_date('M j, Y'); ?></span></a></span>
  38. <?php $tag_list = get_the_tag_list();
  39. if(!empty($tag_list)) { ?>
  40. <span class="blog_tags"><?php _e('Tag by&nbsp;', 'spicy')?> <?php the_tags('', ', ', ''); ?>
  41. </span>
  42. <?php } ?>
  43. <?php $cat_list = get_the_category_list();
  44. if(!empty($cat_list)) { ?>
  45. <span class="blog_tags"><?php _e('Category in&nbsp;', 'spicy')?>
  46. <?php the_category(', '); ?>
  47. </span>
  48. <?php } ?>
  49. </div>
  50. <?php the_content( __( 'Read More' , 'spicy' ) ); ?>
  51. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'spicy' ), 'after' => '</div>' ) ); ?>
  52. </div>
  53. </div>
  54. </div>
  55. <?php } ?>
  56. <?php
  57. spicy_post_pagination(); ?>
  58. </div>
  59. <!--/Blog Content-->
  60. <?php get_sidebar(); ?>
  61. </div>
  62. </div>
  63.  
  64. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement