Guest User

Untitled

a guest
Oct 19th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function get_modules_views()
  2. {
  3. $buffy = '';
  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. } // 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.  
  17. return $buffy;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment