Guest User

Untitled

a guest
May 3rd, 2016
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. Template Name: Blog-Fullwidth-Read-More
  4. */
  5. get_header();
  6. get_template_part('index','banner'); ?>
  7. <!-- Blog Section with Sidebar -->
  8. <div class="blog-section-lg">
  9. <div class="container">
  10. <div class="row">
  11. <!-- Blog Area -->
  12. <div class="col-md-8">
  13. <?php
  14. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  15. $args = array( 'post_type' => 'post','paged'=>$paged);
  16. $post_type_data = new WP_Query( $args );
  17. while($post_type_data->have_posts()){
  18. $post_type_data->the_post();?>
  19.  
  20. <div id="post-<?php the_ID(); ?>" <?php if(is_page_template('blog-right-sidebar.php') ) { post_class('blog-lg-area-left'); } ?> <?php if(is_page_template('blog-left-sidebar.php') ) { post_class('blog-lg-area-right'); } ?> <?php if(is_page_template('fullwidth.php') ) { post_class('blog-lg-area-full'); } ?>>
  21. <div class="media">
  22. <?php appointment_aside_meta_content(); ?>
  23. <div class="media-body" id="blog_more_content" >
  24. <?php // Check Image size for fullwidth template
  25. if( is_page_template('blog-full-width.php'))
  26. appointment_image_thumbnail('','img-responsive');
  27. // Check Image size for Different format like Single post,page
  28. elseif(is_single() || is_page())
  29. appointment_post_thumbnail('','img-responsive');
  30. else
  31. appointment_post_thumbnail('','img-responsive');
  32. appointment_post_meta_content();
  33. if( !is_page_template('fullwidth.php') && get_the_title() && !is_page() ) { ?>
  34. <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  35. <?php } else { ?>
  36. <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  37. <?php } ?>
  38. <?php
  39.  
  40. echo the_excerpt();
  41.  
  42. wp_link_pages( );
  43. ?>
  44. <?php if(!is_single() ) { ?>
  45. <?php if(is_archive() || is_search() ) { ?>
  46. <div class="blog-area-border"></div>
  47. <?php } ?>
  48. <?php if(is_home() || is_front_page() ) { ?>
  49. <div class="blog-area-border"></div>
  50. <?php } }
  51. if(is_page_template('blog-right-sidebar.php') || is_page_template('blog-left-sidebar.php') || is_page_template('fullwidth.php') ) { ?>
  52. <div class="blog-btn-area-lg"></div>
  53. <?php } ?>
  54. </div>
  55. </div>
  56.  
  57. </div>
  58.  
  59.  
  60. <?php
  61. } ?>
  62. <div class="blog-pagination">
  63. <?php
  64. $Webriti_pagination = new Webriti_pagination();
  65. $Webriti_pagination->Webriti_page($paged, $post_type_data); ?>
  66. </div>
  67. </div>
  68. <!-- /Blog Area -->
  69. <div class="col-md-4">
  70. <?php get_sidebar(); ?>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <!-- /Blog Section with Sidebar -->
  76. <?php get_footer(); ?>
RAW Paste Data