Version Description
- new feature (Shortcode instead of widget)
- [ahc_stats_widget] Please read the plugin description for more details
Download this release
Release Info
Developer | osamaesh |
Plugin | Visitors Traffic Real Time Statistics |
Version | 5.5 |
Comparing to | |
See all releases |
Code changes from version 5.4 to 5.5
- Visitors-Traffic-Real-Time-Statistics.php +1 -1
- functions.php +53 -0
- readme.txt +35 -2
Visitors-Traffic-Real-Time-Statistics.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Visitor Traffic Real Time Statistics
|
|
4 |
Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
|
5 |
Author: wp-buy
|
6 |
Author URI: https://www.wp-buy.com/
|
7 |
-
Version: 5.
|
8 |
Text Domain: visitors-traffic-real-time-statistics
|
9 |
Domain Path: /languages
|
10 |
*/
|
4 |
Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
|
5 |
Author: wp-buy
|
6 |
Author URI: https://www.wp-buy.com/
|
7 |
+
Version: 5.5
|
8 |
Text Domain: visitors-traffic-real-time-statistics
|
9 |
Domain Path: /languages
|
10 |
*/
|
functions.php
CHANGED
@@ -1,5 +1,58 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
function vtrts_free_top_bar_enqueue_style()
|
4 |
{
|
5 |
|
1 |
<?php
|
2 |
|
3 |
+
add_shortcode( 'ahc_stats_widget', 'ahc_stats_widget_func');
|
4 |
+
//[ahc_stats_widget title="" fontsize="16" fonttype="" display_today_visitors=true display_today_pageviwes=true display_total_visitors=true display_total_pageviwes=true ]
|
5 |
+
|
6 |
+
function ahc_stats_widget_func( $instance = [] )
|
7 |
+
{
|
8 |
+
|
9 |
+
$args = shortcode_atts( array(
|
10 |
+
|
11 |
+
'fontsize' => '14',
|
12 |
+
'title' => '',
|
13 |
+
'fonttype' => '',
|
14 |
+
'display_today_visitors' => "true",
|
15 |
+
'display_today_pageviwes' => "true",
|
16 |
+
'display_total_visitors' => "true",
|
17 |
+
'display_total_pageviwes' => "true"
|
18 |
+
|
19 |
+
|
20 |
+
), $instance );
|
21 |
+
|
22 |
+
|
23 |
+
$ret = '';
|
24 |
+
|
25 |
+
|
26 |
+
$ahc_sum_stats = ahcfree_get_summary_statistics();
|
27 |
+
$ret .= isset($args['title']) ? '<h3 class="ahc_stats_widget_title">'.esc_html( $args['title']).'</h3>' : '';
|
28 |
+
|
29 |
+
|
30 |
+
// This is where you run the code and display the output
|
31 |
+
$ret .= '<ul class="ahc_stats_widget" style="list-style:none; font-family: '.esc_attr($args['fonttype']).' !important; font-size:' . esc_attr($args['fontsize']) . 'px !important">';
|
32 |
+
|
33 |
+
if ($args['display_today_visitors'] != 'false' && $args['display_today_visitors'] != false) {
|
34 |
+
$ret .= '<li><b>'.__("Today's visitors:", 'visitors-traffic-real-time-statistics') .'</b><span>' . ahcfree_NumFormat(intval($ahc_sum_stats['today']['visitors'])) . '</span></li>';
|
35 |
+
}
|
36 |
+
if ($args['display_today_pageviwes'] != 'false' && $args['display_today_pageviwes'] != false) {
|
37 |
+
$ret .= '<li><b>'.__("Today's page views", 'visitors-traffic-real-time-statistics') .' </b><span>' . ahcfree_NumFormat(intval($ahc_sum_stats['today']['visits'])) . '</span></li>';
|
38 |
+
}
|
39 |
+
|
40 |
+
if ($args['display_total_visitors'] !='false' && $args['display_total_visitors'] !=false) {
|
41 |
+
$ret .= '<li><b>'.__("Total visitors", 'visitors-traffic-real-time-statistics') .' </b><span>' . ahcfree_NumFormat(intval($ahc_sum_stats['total']['visitors'])) . '</span></li>';
|
42 |
+
}
|
43 |
+
|
44 |
+
if ($args['display_total_pageviwes'] !='false' && $args['display_total_visitors'] !=false) {
|
45 |
+
$ret .= '<li><b>'.__("Total page views", 'visitors-traffic-real-time-statistics') .' </b><span>' . ahcfree_NumFormat(intval($ahc_sum_stats['total']['visits'])) . '</span></li>';
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
$ret .= '</ul>';
|
50 |
+
|
51 |
+
|
52 |
+
return $ret;
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
function vtrts_free_top_bar_enqueue_style()
|
57 |
{
|
58 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: wp-buy, osamaesh
|
3 |
Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
|
4 |
Requires at least: 3.0.1
|
5 |
-
Tested up to: 5.9.
|
6 |
-
Stable tag: 5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -16,6 +16,18 @@ This plugin will help you to track your visitors, browsers, operating systems, v
|
|
16 |
When it comes to ease of use, Visitor Traffic Real Time Statistics comes in first, You will have a real Counter and statistics plugin for your WordPress website..
|
17 |
This plugin will help you to track your visitors, browsers, operating systems, visits and much more in one dashboard page..
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
<strong>Visitor Traffic Real Time Statistics Basic version includes: </strong>
|
21 |
<ul>
|
@@ -26,6 +38,8 @@ This plugin will help you to track your visitors, browsers, operating systems, v
|
|
26 |
<li>Browsers statistics will help you to see the most popular browser</li>
|
27 |
<li>Recent visitors and the visitor source , also you can see the referrer link </li>
|
28 |
<li>Top referring sites & the visitors count for each one</li>
|
|
|
|
|
29 |
</ul>
|
30 |
|
31 |
<p></p>
|
@@ -99,6 +113,20 @@ Notes:
|
|
99 |
* If you're using any caching plugins, Don't forget to clear your website cache.
|
100 |
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
= GDPR Compliant? =
|
104 |
All the data is saved locally in your WordPress, it’s not necessary to create a data processing contract with an external company!
|
@@ -150,6 +178,11 @@ This plugin supports IPv6; however, PHP must be compiled with IPv6 support enabl
|
|
150 |
|
151 |
== Changelog ==
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
= 5.4 =
|
154 |
1. Bug fixing - fix conflict with Dokan plugin
|
155 |
|
2 |
Contributors: wp-buy, osamaesh
|
3 |
Tags: visitor, traffic, statistics, analytics, stats, online, Visit, WordPress analytics ,visitors online, count visitor, google analytics, analytics, GeoIP, Geo locations, analytics dashboard, visits, chart, browser, blog, today, yesterday, week, month, wp Statistics, year, post, page, sidebar, summary, feedburner, hits, pagerank, google, histats, alexa, live visit, counter, diagram, graph
|
4 |
Requires at least: 3.0.1
|
5 |
+
Tested up to: 5.9.2
|
6 |
+
Stable tag: 5.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
16 |
When it comes to ease of use, Visitor Traffic Real Time Statistics comes in first, You will have a real Counter and statistics plugin for your WordPress website..
|
17 |
This plugin will help you to track your visitors, browsers, operating systems, visits and much more in one dashboard page..
|
18 |
|
19 |
+
And you can use one the summary statistics shortcodes:
|
20 |
+
|
21 |
+
* **[ahc_stats_widget]** adds a front-end widget to display the site statistics
|
22 |
+
* **[ahc_stats_widget title="" fontsize="16" fonttype="" display_today_visitors=true display_today_pageviwes=true display_total_visitors=true display_total_pageviwes=true ]** adds a front-end widget to display the site statistics with custom parametrs
|
23 |
+
* **title** The widget title, keep it empty to display the widget without a title
|
24 |
+
* **fontsize** the widget font size, default is 14 (in px)
|
25 |
+
* **fonttype** the widget font type, default is empty (the theme font type will be applied
|
26 |
+
* **display_today_visitors** true or false (Display today's visitors count, default is true
|
27 |
+
* **display_today_pageviwes** true or false (Display today's page views (visits) count, default is true
|
28 |
+
* **display_total_visitors** true or false (Display total visitors count, default is true
|
29 |
+
* **display_total_pageviwes** true or false (Display total visits count, default is true
|
30 |
+
|
31 |
|
32 |
<strong>Visitor Traffic Real Time Statistics Basic version includes: </strong>
|
33 |
<ul>
|
38 |
<li>Browsers statistics will help you to see the most popular browser</li>
|
39 |
<li>Recent visitors and the visitor source , also you can see the referrer link </li>
|
40 |
<li>Top referring sites & the visitors count for each one</li>
|
41 |
+
<li>Shortcode support</li>
|
42 |
+
|
43 |
</ul>
|
44 |
|
45 |
<p></p>
|
113 |
* If you're using any caching plugins, Don't forget to clear your website cache.
|
114 |
|
115 |
|
116 |
+
= Shortcodes for summary statistics =
|
117 |
+
You can use one of the following shortcodes:
|
118 |
+
|
119 |
+
* **[ahc_stats_widget]** adds a front-end widget to display the site statistics
|
120 |
+
* **[ahc_stats_widget title="" fontsize="16" fonttype="" display_today_visitors=true display_today_pageviwes=true display_total_visitors=true display_total_pageviwes=true ]** adds a front-end widget to display the site statistics with custom parametrs
|
121 |
+
* **title** The widget title, keep it empty to display the widget without a title
|
122 |
+
* **fontsize** the widget font size, default is 14 (in px)
|
123 |
+
* **fonttype** the widget font type, default is empty (the theme font type will be applied
|
124 |
+
* **display_today_visitors** true or false (Display today's visitors count, default is true
|
125 |
+
* **display_today_pageviwes** true or false (Display today's page views (visits) count, default is true
|
126 |
+
* **display_total_visitors** true or false (Display total visitors count, default is true
|
127 |
+
* **display_total_pageviwes** true or false (Display total visits count, default is true
|
128 |
+
|
129 |
+
|
130 |
|
131 |
= GDPR Compliant? =
|
132 |
All the data is saved locally in your WordPress, it’s not necessary to create a data processing contract with an external company!
|
178 |
|
179 |
== Changelog ==
|
180 |
|
181 |
+
= 5.5 =
|
182 |
+
1. new feature (Shortcode instead of widget)
|
183 |
+
2. [ahc_stats_widget] Please read the plugin description for more details
|
184 |
+
|
185 |
+
|
186 |
= 5.4 =
|
187 |
1. Bug fixing - fix conflict with Dokan plugin
|
188 |
|