public static function pvc_stats_counter($post_id, $increase_views = false) { global $wpdb; global $pvc_settings; $load_by_ajax_update_class = ''; if ($increase_views) { $load_by_ajax_update_class = 'pvc_load_by_ajax_update'; } // get the stats and $html = '<div class="pvc_clear"></div>'; if ($pvc_settings['enable_ajax_load'] == 'yes') { $stats_html = '<p id="pvc_stats_' . $post_id . '" class="pvc_stats ' . $load_by_ajax_update_class . '" element-id="' . $post_id . '"><img src="' . A3_PVC_URL . '/ajax-loader.gif" border=0 /></p>'; } else { $stats_html = '<p class="pvc_stats" element-id="' . $post_id . '">' . A3_PVC::pvc_get_stats($post_id) . '</p>'; } $html .= apply_filters('pvc_filter_stats', $stats_html, $post_id); $html .= '<div class="pvc_clear"></div>'; return $html; }