Guest User

Untitled

a guest
May 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. <?php
  2. $current_options = wp_parse_args(get_option('busiprof_pro_theme_options', array()), theme_data_setup());
  3. if ($current_options['home_recentblog_section_enabled'] == 'on') {
  4. ?>
  5. <!-- Portfolio Section -->
  6. <section id="section" class="portfolio bg-color">
  7. <div class="container">
  8. <!-- Section Title -->
  9. <div class="row">
  10. <div class="col-md-12">
  11. <div class="section-title">
  12. <h1 class="section-heading"><?php echo $current_options['blog_head']; ?></h1>
  13. <?php if ($current_options['blog_tagline'] != '') { ?>
  14. <p><?php echo $current_options['blog_tagline']; ?></p>
  15. <?php } ?>
  16. </div>
  17. </div>
  18. </div>
  19. <!-- /Section Title -->
  20.  
  21. <!-- /Portfolio Tabs -->
  22. <div class="tab-content main-portfolio-section" id="myTabContent">
  23.  
  24.  
  25. <!-- Portfolio Item -->
  26.  
  27. <div class="row">
  28. <?php
  29. $k = 1;
  30. $args = array('post_type' => 'post', 'posts_per_page' => 8, 'post__not_in' => get_option("sticky_posts"));
  31. query_posts($args);
  32. if (query_posts($args)) {
  33. while (have_posts()):the_post();
  34.  
  35.  
  36. // while ($home_project_query->have_posts()) : $home_project_query->the_post();
  37. ?>
  38. <div class="col-md-3 col-sm-6 col-xs-12">
  39. <aside class="post">
  40. <figure class="post-thumbnail">
  41. <?php
  42. if (has_post_thumbnail()) {
  43. the_post_thumbnail();
  44. $post_thumbnail_id = get_post_thumbnail_id();
  45. $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id);
  46. }
  47. ?>
  48. <div class="thumbnail-showcase-overlay">
  49. <div class="thumbnail-showcase-overlay-inner">
  50. <div class="thumbnail-showcase-icons">
  51. <?php if (isset($post_thumbnail_url)) { ?>
  52. <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
  53. <?php } ?>
  54. </div>
  55. </div>
  56. </div>
  57. </figure>
  58. <div class="portfolio-info">
  59. <div class="entry-header">
  60. <h4 class="entry-title"><a href="<?php the_permalink(); ?>" > <?php the_title(); ?></a></h4>
  61. </div>
  62. <div class="entry-content">
  63. <p><?php the_content(__('Read More', 'busiprof')); ?></p>
  64. </div>
  65. </div>
  66. </aside>
  67. </div>
  68. <?php if ($k % 4 == 0) {
  69. echo '<div class="clearfix"></div>';
  70. } $k++;
  71. endwhile; ?>
  72. <?php } ?>
  73. </div>
  74.  
  75.  
  76. </div>
  77.  
  78. </div>
  79. </section>
  80. <!-- End of Portfolio Section -->
  81. <div class="clearfix"></div>
  82. <?php } ?>
Add Comment
Please, Sign In to add comment