Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. <?php
  2. get_header();
  3. quality_breadcrumbs(); ?>
  4. <section id="section-block" class="site-content">
  5. <div class="container">
  6. <div class="row">
  7. <!--Blog Posts-->
  8. <?php echo '<div class="col-md-'.( !is_active_sidebar( "sidebar-primary" ) ?"12" :"8" ).' col-xs-12">'; ?>
  9. <div class="news">
  10. <?php if ( have_posts() ) :
  11. // Start the Loop.
  12. while ( have_posts() ) : the_post();
  13. //get_template_part('content','');
  14. ?>
  15. <?php
  16. $quality_pro_options=theme_data_setup();
  17. $current_options = wp_parse_args( get_option( 'quality_pro_options', array() ), $quality_pro_options );
  18. ?>
  19. <div class="col-md-4">
  20. <article class="post" <?php post_class(); ?>>
  21. <?php if(has_post_thumbnail()): ?>
  22. <figure class="post-thumbnail">
  23. <?php $defalt_arg =array('class' => "img-responsive"); ?>
  24. <a href="<?php the_permalink(); ?>">
  25. <?php the_post_thumbnail('', $defalt_arg); ?>
  26. </a>
  27. </figure>
  28. <?php endif; ?>
  29. <div class="post-content">
  30. <?php if($current_options['archive_page_meta_section_settings'] == '' ) {?>
  31. <div class="item-meta">
  32. <a class="author-image item-image" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php echo get_avatar( get_the_author_meta('user_email'), $size = '40'); ?></a>
  33. <?php echo ' ';?><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>"><?php echo get_the_author();?></a>
  34. <br>
  35. <a class="entry-date" href="<?php echo get_month_link(get_post_time('Y'),get_post_time('m')); ?>">
  36. <?php echo get_the_date('M j, Y'); ?></a>
  37. </div>
  38. <?php } ?>
  39. <?php if (!is_single() ) {?>
  40. <header class="entry-header">
  41. <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  42. </header>
  43. <?php } ?>
  44. <div class="entry-content">
  45. <?php the_content(__('Read More','quality')); ?>
  46. </div>
  47. <?php if($current_options['archive_page_meta_section_settings'] == '' ) {?>
  48. <hr />
  49. <div class="entry-meta">
  50. <span class="comment-links"><a href="<?php the_permalink(); ?>"><?php comments_number(__( 'No Comments', 'quality'), __('One comment', 'quality'), __('% comments', 'quality')); ?></a></span>
  51. <?php $cat_list = get_the_category_list();
  52. if(!empty($cat_list)) { ?>
  53. <span class="cat-links"><?php _e('In','quality');?><a href="<?php the_permalink(); ?>"><?php the_category(' '); ?></a></span>
  54. <?php } ?>
  55.  
  56. </div>
  57. <?php } ?>
  58. </div>
  59. </article>
  60. </div>
  61. <?php endwhile;
  62.  
  63. ?>
  64. <div class="paginations">
  65. <!-- Pagination -->
  66. <?php
  67. // Previous/next page navigation.
  68. the_posts_pagination( array(
  69. 'prev_text' => '<i class="fa fa-angle-double-left"></i>',
  70. 'next_text' => '<i class="fa fa-angle-double-right"></i>',
  71. ) );
  72. ?>
  73. </div>
  74. <?php endif;
  75. ?>
  76. </div>
  77. <!--/Blog Content-->
  78. </div>
  79. <?php get_sidebar(); ?>
  80. </div>
  81. </div>
  82. </section>
  83. <?php
  84. get_template_part('index','footer-widget');
  85. get_footer();
  86. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement