Guest User

Untitled

a guest
Feb 17th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. function get_views() {
  2. $buffy = '';
  3. if (td_util::get_option('tds_p_show_views') != 'hide') {
  4. $buffy .= '<div class="td-post-views">';
  5. $buffy .= '<i class="td-icon-views"></i>';
  6. // WP-Post Views Counter
  7. if (function_exists('the_views')) {
  8. $post_views = the_views(false);
  9. $buffy .= $post_views;
  10. }
  11. // Default Theme Views Counter
  12. else {
  13. $buffy .= '<span class="td-nr-views-' . $this->post->ID . '">' . td_page_views::get_page_views($this->post->ID) .'</span>';
  14. }
  15.  
  16. $buffy .= '</div>';
  17. }
  18. return $buffy;
  19. }
Add Comment
Please, Sign In to add comment