Guest User

Untitled

a guest
Aug 5th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. <?php
  2. /**
  3. * The category template file
  4. * @package WordPress
  5. */
  6. get_header();
  7. ?>
  8. <!-- Page Title -->
  9. <section class="page-header">
  10. <div class="container">
  11. <div class="row">
  12. <div class="col-md-6">
  13. <div class="page-title">
  14. <h2><?php _e( '', 'busiprof'); echo single_cat_title( '', false ); ?></h2>
  15. <p><?php bloginfo('description');?></p>
  16. </div>
  17. </div>
  18. <div class="col-md-6">
  19. <ul class="page-breadcrumb">
  20. <?php if (function_exists('busiprof_custom_breadcrumbs')) busiprof_custom_breadcrumbs();?>
  21. </ul>
  22. </div>
  23. </div>
  24. </div>
  25. </section>
  26. <!-- End of Page Title -->
  27. <div class="clearfix"></div>
  28.  
  29. <!-- Blog & Sidebar Section -->
  30. <section>
  31. <div class="container">
  32. <div class="row">
  33. <!--Blog Posts-->
  34. <div class="site-content">
  35.  
  36. <?php
  37. $k=1;
  38.  
  39. if ( have_posts() ) :
  40. // Start the Loop.
  41. while ( have_posts() ) : the_post(); ?>
  42.  
  43. <div class="col-md-3">
  44.  
  45. <article class="post">
  46. <span class="site-author">
  47. <?php
  48. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  49. if(($current_options['enable_post_meta']) == 'on') { ?>
  50. <figure class="avatar">
  51. <?php $author_id=$post->post_author; ?>
  52. <a data-tip="<?php the_author() ;?>" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>" data-toggle="tooltip" title="<?php echo the_author_meta( 'display_name' , $author_id ); ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?></a>
  53. </figure>
  54. <?php } ?>
  55. </span>
  56.  
  57.  
  58. <?php
  59. if(($current_options['enable_post_meta']) == 'on') { ?>
  60. <div class="entry-meta">
  61.  
  62. <span class="entry-date"><a href="<?php the_permalink(); ?>"><time datetime=""><?php the_time('M j,Y');?></time></a></span>
  63.  
  64. <span class="comments-link"><a href="<?php the_permalink(); ?>"><?php comments_popup_link( __( 'Leave a Reply', 'busiprof' ) ); ?></a></span>
  65. <?php $cat_list = get_the_category_list();
  66. if(!empty($cat_list)) { ?>
  67. <span class="cat-links"><a href="<?php the_permalink(); ?>"><?php the_category(', '); ?></a></span>
  68. <?php } if( get_the_tags() ) { ?>
  69. <span class="tag-links"><a href="<?php the_permalink(); ?>"><?php the_tags('', ', ', ''); ?></a></span>
  70. <?php } ?>
  71. </div>
  72. <?php } ?>
  73.  
  74. <a href="<?php the_permalink(); ?>" class="post-thumbnail" ><?php the_post_thumbnail(); ?></a>
  75. <header class="entry-header">
  76. <?php
  77. if ( is_single() ) :
  78.  
  79. the_title('<h3 class="entry-title">', '</h3>' );
  80.  
  81. else:
  82.  
  83. the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' );
  84.  
  85. endif;
  86. ?>
  87. </header>
  88. <div class="entry-content">
  89. <?php //the_content( __('Read More','busiprof') ); ?>
  90. </div>
  91. </article>
  92.  
  93. <?php //get_template_part( 'content','' ); ?>
  94. </div>
  95.  
  96. <?php
  97. if($k%4==0){ echo '<div class="clearfix"></div>' ; } $k++;
  98. endwhile;
  99. ?>
  100. <!-- Pagination -->
  101. <div class="paginations">
  102. <?php
  103. // Previous/next page navigation.
  104. the_posts_pagination( array(
  105. 'prev_text' => __('Previous','busiprof'),
  106. 'next_text' => __('Next','busiprof'),
  107. 'screen_reader_text' => ' ',
  108. ) ); ?>
  109. </div>
  110. <?php endif; ?>
  111. <!-- /Pagination -->
  112.  
  113. <!--/End of Blog Posts-->
  114. </div>
  115. <!--Sidebar-->
  116. <?php //get_sidebar();?>
  117. <!--/End of Sidebar-->
  118. </div>
  119. </div>
  120. </section>
  121. <!-- End of Blog & Sidebar Section -->
  122.  
  123. <div class="clearfix"></div>
  124.  
  125. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment