Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. <?php
  2. get_header();
  3. get_template_part('index','banner'); ?>
  4. <!-- Blog Section Right Sidebar -->
  5. <div class="blog-section-lg">
  6. <div class="container">
  7. <div class="row">
  8.  
  9. <!-- Blog Area -->
  10. <div class="<?php appointment_post_layout_class(); ?>" >
  11. <?php
  12. if(have_posts())
  13. {
  14. while(have_posts()) { the_post();?>
  15. <div id="post-<?php the_ID(); ?>" <?php post_class('blog-lg-area-left'); ?>>
  16. <div class="media">
  17. <?php appointment_aside_meta_content(); ?>
  18. <div class="media-body">
  19. <?php // Check Image size for fullwidth template
  20. if( is_page_template('blog-full-width.php'))
  21. appointment_image_thumbnail('','img-responsive');
  22. // Check Image size for Different format like Single post,page
  23. elseif(is_single() || is_page())
  24. appointment_post_thumbnail('','img-responsive');
  25. else
  26. appointment_post_thumbnail('','img-responsive');
  27. appointment_post_meta_content();
  28. if( !is_page_template('fullwidth.php') && get_the_title() && !is_page() ) { ?>
  29. <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  30. <?php } ?>
  31. <?php
  32. // call editor content of post/page
  33. the_content( __( 'Read More' , 'appointment' ) );
  34. wp_link_pages( );
  35. ?>
  36. </div>
  37. </div>
  38. <div class="blog-btn-area-lg"></div>
  39. </div>
  40. <!--Blog Author-->
  41. <div class="comment-title"><h3><?php _e('About the Author','appointment'); ?></h3></div>
  42. <div class="blog-author">
  43. <div class="media">
  44. <div class="pull-left">
  45. <?php echo get_avatar( get_the_author_meta( 'ID') , 200); ?>
  46. </div>
  47. <div class="media-body">
  48. <h2> <?php the_author(); ?> <span> <?php $user = new WP_User( get_the_author_meta( 'ID' ) ); echo $user->roles[0];?> </span></h2>
  49. <p><?php the_author_meta( 'description' ); //the_author_description(); ?> </p>
  50. <ul class="blog-author-social">
  51. <?php
  52. $google_profile = get_the_author_meta( 'google_profile' );
  53. if ( $google_profile && $google_profile != '' ) {
  54. echo '<li class="googleplus"><a href="' . esc_url($google_profile) . '" rel="author"><i class="fa fa-google-plus"></i></a></li>';
  55. }
  56.  
  57. $twitter_profile = get_the_author_meta( 'twitter_profile' );
  58. if ( $twitter_profile && $twitter_profile != '' ) {
  59. echo '<li class="twitter"><a href="' . esc_url($twitter_profile) . '"><i class="fa fa-twitter"></i></a></li>';
  60. }
  61.  
  62. $facebook_profile = get_the_author_meta( 'facebook_profile' );
  63. if ( $facebook_profile && $facebook_profile != '' ) {
  64. echo '<li class="facebook"><a href="' . esc_url($facebook_profile) . '"><i class="fa fa-facebook"></i></a></li>';
  65. }
  66.  
  67. $linkedin_profile = get_the_author_meta( 'linkedin_profile' );
  68. if ( $linkedin_profile && $linkedin_profile != '' ) {
  69. echo '<li class="linkedin"><a href="' . esc_url($linkedin_profile) . '"><i class="fa fa-linkedin"></i></a></li>';
  70. }
  71. $skype_profile = get_the_author_meta( 'skype_profile' );
  72. if ( $skype_profile && $skype_profile != '' ) {
  73. echo '<li class="skype"><a href="' . esc_url($skype_profile) . '"><i class="fa fa-skype"></i></a></li>';
  74. }
  75. ?>
  76. </ul>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="blog-pagination-square">
  81. <?php previous_posts_link( __('Previous','appointment') ); ?>
  82. <?php next_posts_link( __('Next','appointment') ); ?>
  83. </div>
  84. <!--/Blog Author-->
  85. <?php } ?>
  86. <?php comments_template('',true); ?>
  87. <?php } ?>
  88. </div>
  89. <!-- /Blog Area -->
  90.  
  91. <!--Sidebar Area-->
  92. <div class="col-md-4">
  93. <?php get_sidebar(); ?>
  94. </div>
  95. <!--Sidebar Area-->
  96. </div>
  97. </div>
  98. </div>
  99. <!-- /Blog Section Right Sidebar -->
  100. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement