Guest User

Untitled

a guest
Feb 21st, 2018
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. <?php
  2. /**
  3. * @Theme Name : Wallstreet-Pro
  4. * @file : single.php
  5. * @package : wallstreet-Pro
  6. @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/single.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. <!-- /Page Title Section -->
  16. <!-- Blog & Sidebar Section -->
  17. <div class="container">
  18. <div class="row">
  19.  
  20. <!--Blog Area-->
  21. <div class="col-md-<?php echo (is_active_sidebar( 'sidebar_primary' )?'12':'12'); ?>">
  22. <?php
  23. if(have_posts())
  24. {
  25. while(have_posts()) { the_post();
  26. ?>
  27. <div id="post-<?php the_ID(); ?>" <?php post_class('blog-detail-section'); ?>>
  28. <?php if(has_post_thumbnail()){ ?>
  29. <?php $defalt_arg =array('class' => "img-responsive attachment-post-thumbnail"); ?>
  30. <div class="blog-post-img">
  31. <?php the_post_thumbnail('', $defalt_arg); ?>
  32. </div>
  33. <?php } ?>
  34. <div class="clear"></div>
  35. <div class="blog-post-title">
  36. <?php if($current_options['archive_page_meta_section_settings'] == false) { ?>
  37. <div class="blog-post-date"><span class="date"><?php echo get_the_date('j'); ?><small><?php echo get_the_date('M'); ?></small></span>
  38. <span class="comment"><i class="fa fa-comment"></i><?php comments_number('0', '1','%'); ?></span>
  39. </div>
  40. <div class="blog-post-title-wrapper">
  41. <?php } else { ?>
  42. <div class="blog-post-title-wrapper" style="width:100%;">
  43. <?php } ?>
  44. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  45. <?php the_content(); ?>
  46. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Page', 'wallstreet' ), 'after' => '</div>' ) ); ?>
  47. <?php if($current_options['archive_page_meta_section_settings'] == false) { ?>
  48. <div class="blog-post-meta">
  49.  
  50. <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>
  51. <?php $tag_list = get_the_tag_list();
  52. if(!empty($tag_list)) { ?>
  53. <div class="blog-tags">
  54. <i class="fa fa-tags"></i><?php the_tags('', ', ', ''); ?>
  55. </div>
  56. <?php } ?>
  57. <?php $cat_list = get_the_category_list();
  58. if(!empty($cat_list)) { ?>
  59. <div class="blog-tags">
  60. <i class="fa fa-star"></i><?php the_category(', '); ?>
  61. </div>
  62. <?php } ?>
  63. </div>
  64. <?php } ?>
  65. </div>
  66. </div>
  67. </div>
  68.  
  69. <!--Blog Author-->
  70. <div class="blog-author">
  71. <div class="media">
  72. <div class="pull-left">
  73. <?php echo get_avatar( get_the_author_meta( 'ID') , 94); ?>
  74. </div>
  75. <div class="media-body">
  76. <h6><?php the_author(); ?></h6>
  77. <p> <?php the_author_meta( 'description' ); ?> </p>
  78. <ul class="blog-author-social">
  79. <?php
  80. $facebook_profile = get_the_author_meta( 'facebook_profile' );
  81. if ( $facebook_profile && $facebook_profile != '' ) {
  82. echo '<li class="facebook"><a href="' . esc_url($facebook_profile) . '"><i class="fa fa-facebook"></i></a></li>';
  83. }
  84.  
  85. $linkedin_profile = get_the_author_meta( 'linkedin_profile' );
  86. if ( $linkedin_profile && $linkedin_profile != '' ) {
  87. echo '<li class="linkedin"><a href="' . esc_url($linkedin_profile) . '"><i class="fa fa-linkedin"></i></a></li>';
  88. }
  89. $twitter_profile = get_the_author_meta( 'twitter_profile' );
  90. if ( $twitter_profile && $twitter_profile != '' ) {
  91. echo '<li class="twitter"><a href="' . esc_url($twitter_profile) . '"><i class="fa fa-twitter"></i></a></li>';
  92. }
  93. $google_profile = get_the_author_meta( 'google_profile' );
  94. if ( $google_profile && $google_profile != '' ) {
  95. echo '<li class="googleplus"><a href="' . esc_url($google_profile) . '" rel="author"><i class="fa fa-google-plus"></i></a></li>';
  96. }
  97. ?>
  98. </ul>
  99. </div>
  100. </div>
  101. </div>
  102. <!--/Blog Author-->
  103. <?php } ?>
  104. <?php comments_template('',true); ?>
  105. <?php } ?>
  106. </div>
  107. <?php //get_sidebar(); ?>
  108. <!--/Blog Area-->
  109. </div>
  110. </div>
  111. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment