Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_views() {
- $buffy = '';
- $buffy .= '<div class="td-post-views">';
- $buffy .= '<i class="td-icon-views"></i>';
- // WP-Post Views Counter
- if (function_exists('the_views')) {
- $post_views = the_views(false);
- $buffy .= $post_views;
- }
- // Default Theme Views Counter
- else {
- $buffy .= '<span class="td-nr-views-' . $this->post->ID . '">' . td_page_views::get_page_views($this->post->ID) .'</span>';
- }
- $buffy .= '</div>';
- return $buffy;
- }
Advertisement
Add Comment
Please, Sign In to add comment