Guest User

Untitled

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