Guest User

Untitled

a guest
Feb 12th, 2018
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- wallstreet Blog Section ---->
  2. <?php $wallstreet_pro_options=theme_data_setup();
  3. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
  4. if($current_options['blog_section_enabled'] == true) { ?>
  5. <div class="container home-blog-section">
  6. <div class="row">
  7. <div class="section_heading_title">
  8. <?php if($current_options['home_blog_heading']) { ?>
  9. <h1><?php echo $current_options['home_blog_heading']; ?></h1>
  10. <?php } ?>
  11. <?php if($current_options['home_blog_description']) { ?>
  12. <div class="pagetitle-separator">
  13. <div class="pagetitle-separator-border">
  14. <div class="pagetitle-separator-box"></div>
  15. </div>
  16. </div>
  17. <p><?php echo $current_options['home_blog_description']; ?></p>
  18. <?php } ?>
  19. </div>
  20. </div>
  21. <div class="row">
  22. <?php
  23. $j=1;
  24. $args = array( 'post_type' => 'post','post__not_in'=>get_option("sticky_posts"));
  25. query_posts( $args );
  26. if(query_posts( $args ))
  27. { while(have_posts()):the_post();
  28. $recent_expet = get_the_excerpt(); ?>
  29. <div class="col-md-4 col-sm-6">
  30. <div class="home-blog-area">
  31. <div class="home-blog-post-img"><?php
  32. $defalt_arg =array('class' => "img-responsive");
  33. if(has_post_thumbnail()):
  34. the_post_thumbnail('', $defalt_arg);
  35. endif;
  36. ?>
  37. </div>
  38. <div class="home-blog-info">
  39. <div class="home-blog-post-detail">
  40. <span class="date"><?php echo get_the_date(); ?> </span>
  41. <span class="comment"><a href="<?php the_permalink(); ?>"><i class="fa fa-comment"></i><?php comments_number( 'No Comments', '1 comments', '% comments' ); ?></a></span>
  42.  
  43. </div>
  44. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  45. <div class="home-blog-description"><p><?php echo get_the_excerpt(); ?></p></div>
  46. <div class="home-blog-btn"><a href="<?php the_permalink(); ?>"><?php _e('Read More','wallstreet'); ?></a></div>
  47. </div>
  48. </div>
  49. </div>
  50. <?php if($j%3==0){ echo "<div class='clearfix'></div>"; } $j++; endwhile;
  51. } else {
  52. echo "<div class='post_message'>No Posts to show.</div>";
  53. } ?>
  54. </div>
  55. </div><!-- /wallstreet Blog Section ---->
  56. <?php } ?>
RAW Paste Data