Guest User

Untitled

a guest
Dec 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <?php
  2. /**
  3. * @Theme Name : wallstreet-Pro
  4. * @file : index-blog.php
  5. * @package : wallstreet-Pro
  6. @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/index-blog.php
  8. */
  9. ?>
  10. <!-- wallstreet Blog Section ---->
  11. <?php $wallstreet_pro_options=theme_data_setup();
  12. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options ); ?>
  13. <div class="container home-blog-section">
  14. <div class="row">
  15. <div class="section_heading_title">
  16. <?php if($current_options['home_blog_heading']) { ?>
  17. <h1><?php echo $current_options['home_blog_heading']; ?></h1>
  18. <?php } ?>
  19. <?php if($current_options['home_blog_description']) { ?>
  20. <div class="pagetitle-separator">
  21. <div class="pagetitle-separator-border">
  22. <div class="pagetitle-separator-box"></div>
  23. </div>
  24. </div>
  25. <p><?php echo $current_options['home_blog_description']; ?></p>
  26. <?php } ?>
  27. </div>
  28. </div>
  29. <div class="row">
  30. <?php
  31. $j=1;
  32. $args = array( 'post_type' => 'post','posts_per_page' =>3,'post__not_in'=>get_option("sticky_posts"));
  33. query_posts( $args );
  34. if(query_posts( $args ))
  35. { while(have_posts()):the_post();
  36. $recent_expet = get_the_excerpt(); ?>
  37. <div class="col-md-4 col-sm-6">
  38. <div class="home-blog-area">
  39. <div class="home-blog-post-img"><?php
  40. $defalt_arg =array('class' => "img-responsive");
  41. if(has_post_thumbnail()):
  42. the_post_thumbnail('', $defalt_arg);
  43. endif;
  44. ?>
  45. </div>
  46. <div class="home-blog-info">
  47. <?php if($current_options['home_meta_section_settings'] == false) { ?>
  48. <div class="home-blog-post-detail">
  49. <span class="date"><?php echo get_the_date(); ?> </span>
  50. <span class="comment"><a href="<?php the_permalink(); ?>"><i class="fa fa-comment"></i><?php comments_number( __( 'No Comments', 'wallstreet' ), __( '1 Comment', 'wallstreet' ), __( '% Comments', 'wallstreet' )); ?></a></span>
  51. </div>
  52. <?php } ?>
  53. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  54. <div class="home-blog-description"><p><?php echo the_content(); ?></p></div>
  55.  
  56. </div>
  57. </div>
  58. </div>
  59. <?php if($j%3==0){ echo "<div class='clearfix'></div>"; } $j++; endwhile;
  60.  
  61. } else {
  62. echo "<div class='post_message'>".__('No posts to show','wallstreet')."</div>";
  63. } ?>
  64.  
  65.  
  66.  
  67. </div>
  68. <?php
  69. if($current_options['view_all_posts_btn_enabled'] == true){
  70. if($current_options['view_all_posts_text']){?>
  71. <div class ="row">
  72. <div class="proejct-btn">
  73. <a href="<?php if($current_options['all_posts_link'] !='') { echo $current_options['all_posts_link']; } ?>" <?php if($current_options['view_all_lnik_target'] ==true) { echo "target='_blank'"; } ?>> <?php echo $current_options['view_all_posts_text']; ?> </a>
  74. </div>
  75. </div>
  76. <?php
  77. }}?>
  78. </div><!-- /wallstreet Blog Section ---->
Add Comment
Please, Sign In to add comment