Advertisement
Guest User

Untitled

a guest
Nov 26th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <!-- Page Title Section -->
  4. <div class="page-mycarousel">
  5. <img src="<?php echo esc_url(WALLSTREET_TEMPLATE_DIR_URI);?>/images/page-header-bg.jpg" class="img-responsive">
  6. <div class="container page-title-col">
  7. <div class="row">
  8. <div class="col-md-12 col-sm-12">
  9. <h1><?php echo single_cat_title("Category Archive ", false); ?></h1>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="page-breadcrumbs">
  14. <div class="container">
  15. <div class="row">
  16. <div class="col-md-12">
  17. <ol class="breadcrumbs">
  18. <?php if (function_exists('wallstreet_custom_breadcrumbs')) wallstreet_custom_breadcrumbs();?>
  19. </ol>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. <!-- /Page Title Section -->
  26.  
  27. <!-- Blog & Sidebar Section -->
  28. <div class="container category" id="content">
  29. <div class="row">
  30.  
  31. <div class="<?php if(is_active_sidebar('sidebar_primary')){ echo 'col-md-8'; } else { echo 'col-md-12'; } ?>" >
  32. <?php if ( have_posts() ) {
  33. while(have_posts()){ the_post(); ?>
  34. <div class="col-md-6">
  35. <div id="post-<?php the_ID(); ?>" <?php post_class('blog-section-right'); ?>>
  36. <?php if(has_post_thumbnail()){ ?>
  37. <?php $wallstreet_defalt_arg =array('class' => "img-responsive"); ?>
  38. <div class="blog-post-img">
  39. <?php the_post_thumbnail('', $wallstreet_defalt_arg); ?>
  40. </div>
  41. <?php } ?>
  42. <div class="clear"></div>
  43. <div class="blog-post-title">
  44. <div class="blog-post-date"><span class="date"><a href="<?php echo esc_url(get_month_link(get_post_time('Y'),get_post_time('m'))); ?>"><?php echo esc_html(get_the_date());?></a></span>
  45. <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
  46. </div>
  47. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  48. <div class="blog-post-title-wrapper">
  49.  
  50. <?php the_content( __('Read More' ,'wallstreet' ) ); ?>
  51. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__('Page', 'wallstreet' ), 'after' => '</div>' ) ); ?>
  52. <div class="blog-post-meta">
  53. <a id="blog-author" href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) )); ?>"><i class="fa fa-user"></i> <?php the_author(); ?></a>
  54. <?php $wallstreet_tag_list = get_the_tag_list();
  55. if(!empty($wallstreet_tag_list)) { ?>
  56. <div class="blog-tags">
  57. <i class="fa fa-tags"></i><?php the_tags('', ', ', ''); ?>
  58. </div>
  59. <?php } ?>
  60. <?php $wallstreet_cat_list = get_the_category_list();
  61. if(!empty($wallstreet_cat_list)) { ?>
  62. <div class="blog-tags">
  63. <i class="fa fa-star"></i><?php the_category(', '); ?>
  64. </div>
  65. <?php } ?>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <?php } } ?>
  72. <div class="blog-pagination">
  73. <?php if(get_previous_posts_link() ): ?>
  74. <?php previous_posts_link(); ?>
  75. <?php endif; ?>
  76. <?php if ( get_next_posts_link() ): ?>
  77. <?php next_posts_link(); ?>
  78. <?php endif; ?>
  79. </div>
  80. </div><!--/Blog Area-->
  81. <?php get_sidebar(); ?>
  82. </div>
  83. </div>
  84. <?php get_footer();
  85. //Blog & Sidebar Section
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement