Guest User

Untitled

a guest
Jun 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. <?php
  2. //Template Name: Blog Full Width
  3. /* @Theme Name : wallstreet-Pro
  4. * @file : blog-fullwidth.php
  5. * @package : wallstreet-Pro
  6. * @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/blog-fullwidth.php
  8. */
  9. get_header();
  10. $wallstreet_pro_options=theme_data_setup();
  11. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
  12. ?>
  13. <!-- Page Title Section -->
  14. <?php get_template_part('index', 'banner'); ?>
  15. <!-- Blog & Sidebar Section -->
  16. <div class="container">
  17. <div class="row">
  18.  
  19. <!--Blog Area-->
  20. <div class="col-md-12">
  21. <?php
  22. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  23. $args = array( 'post_type' => 'post','paged'=>$paged);
  24. $post_type_data = new WP_Query( $args );
  25. while($post_type_data->have_posts()){
  26. $post_type_data->the_post();
  27. global $more;
  28. $more = 0;
  29. ?>
  30. <div id="post-<?php the_ID(); ?>" <?php post_class('blog-section-full'); ?>>
  31. <?php if(has_post_thumbnail()){ ?>
  32. <?php $defalt_arg =array('class' => "img-responsive attachment-post-thumbnail"); ?>
  33. <div class="blog-post-img">
  34. <?php the_post_thumbnail('', $defalt_arg); ?>
  35. </div>
  36. <?php } ?>
  37. <div class="clear"></div>
  38. <div class="blog-post-title">
  39. <?php if($current_options['blog_meta_section_settings'] == false) {?>
  40. <div class="blog-post-date"><span class="date"><?php echo get_the_date('j'); ?> <small><?php echo get_the_date('M'); ?></small></span>
  41. <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
  42. </div>
  43. <div class="blog-post-title-wrapper-full">
  44. <?php } else {?>
  45. <div class="blog-post-title-wrapper-full" style="width:100%";>
  46. <?php } ?>
  47. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  48. <p><?php the_content( __( 'Read More' , 'wallstreet' ) );
  49. //echo get_home_blog_excerpt();
  50. ?></p>
  51. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Page', 'wallstreet' ), 'after' => '</div>' ) );
  52. if($current_options['blog_meta_section_settings'] == false) {?>
  53. <div class="blog-post-meta">
  54. <a id="blog-author" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="fa fa-user"></i> <?php the_author(); ?></a>
  55. <?php $tag_list = get_the_tag_list();
  56. if(!empty($tag_list)) { ?>
  57. <div class="blog-tags">
  58. <i class="fa fa-tags"></i><?php the_tags('', ', ', ''); ?>
  59. </div>
  60. <?php } ?>
  61. <?php $cat_list = get_the_category_list();
  62. if(!empty($cat_list)) { ?>
  63. <div class="blog-tags">
  64. <i class="fa fa-star"></i><?php the_category(', '); ?>
  65. </div>
  66. <?php } ?>
  67. </div>
  68. <?php } ?>
  69. </div>
  70. </div>
  71. </div>
  72. <?php } ?>
  73. <?php
  74. $Webriti_pagination = new Webriti_pagination();
  75. $Webriti_pagination->Webriti_page($paged, $post_type_data);
  76. ?>
  77. </div><!--/Blog Area-->
  78. </div>
  79. </div>
  80. <?php get_footer(); ?>
  81. <!-- /Blog & Sidebar Section -->
Add Comment
Please, Sign In to add comment