Guest User

Untitled

a guest
Mar 9th, 2020
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  2. if( $current_options['home_recentblog_section_enabled']=='on' ) { ?>
  3. <!-- Testimonial & Blog Section -->
  4. <section id="section" class="home-post-latest">
  5. <div class="container">
  6.  
  7. <!-- Section Title -->
  8. <div class="row">
  9. <div class="col-md-12">
  10. <div class="section-title">
  11. <?php
  12. if( $current_options['blog_head'] != '' ) { ?>
  13. <h1 class="section-heading"><?php echo $current_options['blog_head'];?></h1>
  14. <?php } if( $current_options['blog_tagline'] !='') { ?>
  15. <p><?php echo $current_options['blog_tagline'];?></p>
  16. <?php } ?>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- /Section Title -->
  21.  
  22. <!-- Blog Post -->
  23. <div class="row">
  24. <div class="col-md-6">
  25.  
  26. <?php echo do_shortcode('[xyz-ihs snippet="html-block"]'); ?>
  27. </div>
  28. <div class="col-md-6">
  29. <?php
  30. $args = array( 'post_type' => 'post','posts_per_page' => 4,'post__not_in'=>get_option("sticky_posts")) ;
  31. query_posts( $args );
  32. if(query_posts( $args ))
  33. {
  34. while(have_posts()):the_post();
  35. { ?>
  36. <div class="col-md-12">
  37. <div class="post">
  38. <div class="media">
  39. <figure class="post-thumbnail"><?php $defalt_arg =array('class' => "");?>
  40. <?php if(has_post_thumbnail()){?>
  41. <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('',$defalt_arg);?></a>
  42. <?php } ?>
  43. </figure>
  44. <div class="media-body">
  45. <div class="entry-meta">
  46. <span class="entry-date"><a href="<?php the_permalink(); ?>"><time datetime=""><?php the_time('M j,Y');?></time></a></span>
  47. <span class="comments-link"><a href="<?php the_permalink(); ?>"><?php comments_popup_link( __( 'Leave a Reply', 'busiprof' ) ); ?></a></span>
  48. <?php if( get_the_tags() ) { ?>
  49. <span class="tag-links"><a href="<?php the_permalink(); ?>"><?php the_tags('', ', ', ''); ?></a></span>
  50. <?php } ?>
  51. </div>
  52.  
  53.  
  54. <div class="entry-header">
  55. <h4 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h4>
  56. </div>
  57. <div class="entry-content">
  58. <p><?php the_content(__('Read More','busiprof')); ?></p>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <?php } endwhile; } ?>
  65. </div>
  66. </div>
  67. <!-- /Blog Post -->
  68.  
  69.  
  70. </div>
  71. </section>
  72. <!-- End of Testimonial & Blog Section -->
  73. <div class="clearfix"></div>
  74. <?php } ?>
RAW Paste Data