Guest User

Untitled

a guest
Jun 18th, 2015
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. <?php
  2. // function for post meta
  3. if ( ! function_exists( 'corpbiz_post_meta_content' ) ) :
  4.  
  5. function corpbiz_post_meta_content()
  6. {
  7. $current_options = wp_parse_args( get_option( 'corpbiz_options', array() ), theme_data_setup() );
  8. ?>
  9. <div class="post_title_wrapper">
  10. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  11. <?php $current_options=get_option('corpbiz_options');
  12. if($current_options['blog_meta_section_settings'] != 'off') { ?>
  13. <div class="post_detail">
  14. <a href="<?php echo get_month_link(get_post_time('Y'),get_post_time('m')); ?>"><i class="fa fa-calendar"></i> <?php echo get_the_date('M j, Y'); ?> </a>
  15. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="fa fa-user"></i> <?php _e('Posted by: &nbsp;','corpbiz'); ?> <?php the_author(); ?></a>
  16. <a href="<?php comments_link(); ?>"><i class="fa fa-comments"></i> <?php comments_number( 'No Comments', '1 Comment', '% Comments' ); ?> </a>
  17. <?php $tag_list = get_the_tag_list();
  18. if(!empty($tag_list)) { ?>
  19. <div class="post_tags">
  20. <i class="fa fa-tags"></i><?php the_tags('', ', ', '<br />'); ?>
  21. </div>
  22. <?php } ?>
  23. </div>
  24. <?php } ?>
  25. </div>
  26. <?php } endif;
  27. // This Function Check whether Sidebar active or Not
  28. if(!function_exists( 'corpbiz_post_layout_class' )) :
  29.  
  30. function corpbiz_post_layout_class(){
  31. if(is_active_sidebar('sidebar-primary'))
  32. { echo 'col-md-8'; }
  33. else
  34. { echo 'col-md-12'; }
  35.  
  36. } endif;
  37. if(!function_exists( 'corpbiz_post_link' )) :
  38. function corpbiz_post_link() { ?>
  39. <div class="blog_pagination">
  40. <?php if(get_previous_posts_link() ): ?>
  41. <?php previous_posts_link(); ?>
  42. <?php endif; ?>
  43. <?php if ( get_next_posts_link() ): ?>
  44. <?php next_posts_link(); ?>
  45. <?php endif; ?>
  46. </div>
  47. <?php } endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment