Version Description
- Bug fixing in the plugin accessibility
Download this release
Release Info
Developer | osamaesh |
Plugin | Visitors Traffic Real Time Statistics |
Version | 5.1 |
Comparing to | |
See all releases |
Code changes from version 4.9 to 5.1
- Visitors-Traffic-Real-Time-Statistics.php +5 -1
- functions.php +2 -2
- overview.php +2 -1
- readme.txt +6 -1
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:
|
8 |
Text Domain: visitors-traffic-real-time-statistics
|
9 |
Domain Path: /languages
|
10 |
*/
|
@@ -148,6 +148,9 @@ add_action('admin_enqueue_scripts', 'vtrts_free_top_bar_enqueue_style');
|
|
148 |
add_action('admin_menu', 'ahcfree_add_external_links_as_submenu');
|
149 |
|
150 |
function ahcfree_add_external_links_as_submenu() {
|
|
|
|
|
|
|
151 |
global $submenu;
|
152 |
$menu_slug = "ahc_hits_counter_menu_free"; // used as "key" in menus
|
153 |
|
@@ -155,5 +158,6 @@ function ahcfree_add_external_links_as_submenu() {
|
|
155 |
If (is_multisite()) $search_url = "network/plugin-install.php?s=wp-buy&tab=search&type=author";
|
156 |
|
157 |
$submenu[$menu_slug][] = array('<span style="color:#f18500">' . __( 'More Plugins', 'MorePlugins' ) . '</span>', 'manage_options', admin_url($search_url));
|
|
|
158 |
}
|
159 |
?>
|
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.1
|
8 |
Text Domain: visitors-traffic-real-time-statistics
|
9 |
Domain Path: /languages
|
10 |
*/
|
148 |
add_action('admin_menu', 'ahcfree_add_external_links_as_submenu');
|
149 |
|
150 |
function ahcfree_add_external_links_as_submenu() {
|
151 |
+
|
152 |
+
if(current_user_can('manage_options'))
|
153 |
+
{
|
154 |
global $submenu;
|
155 |
$menu_slug = "ahc_hits_counter_menu_free"; // used as "key" in menus
|
156 |
|
158 |
If (is_multisite()) $search_url = "network/plugin-install.php?s=wp-buy&tab=search&type=author";
|
159 |
|
160 |
$submenu[$menu_slug][] = array('<span style="color:#f18500">' . __( 'More Plugins', 'MorePlugins' ) . '</span>', 'manage_options', admin_url($search_url));
|
161 |
+
}
|
162 |
}
|
163 |
?>
|
functions.php
CHANGED
@@ -476,13 +476,13 @@ function ahcfree_create_admin_menu_link()
|
|
476 |
$current_use_roles_ = $current_user->roles;
|
477 |
$current_use_roles_ = strtolower($current_use_roles_[0]);
|
478 |
|
479 |
-
if (!in_array($current_use_roles_, $roles_arr)
|
480 |
return;
|
481 |
}
|
482 |
|
483 |
|
484 |
|
485 |
-
add_menu_page('Visitor Traffic Real Time Statistics Free', 'Visitor Traffic', '
|
486 |
add_submenu_page('ahc_hits_counter_menu_free', 'Settings', 'Settings', 'manage_options', 'ahc_hits_counter_settings', 'ahcfree_create_plugin_settings_page');
|
487 |
add_submenu_page('ahc_hits_counter_menu_free', 'Contact Support', 'Help', 'manage_options', 'ahc_hits_counter_help', 'ahcfree_create_plugin_help_page');
|
488 |
|
476 |
$current_use_roles_ = $current_user->roles;
|
477 |
$current_use_roles_ = strtolower($current_use_roles_[0]);
|
478 |
|
479 |
+
if (!in_array($current_use_roles_, $roles_arr) ) {
|
480 |
return;
|
481 |
}
|
482 |
|
483 |
|
484 |
|
485 |
+
add_menu_page('Visitor Traffic Real Time Statistics Free', 'Visitor Traffic', 'read', 'ahc_hits_counter_menu_free', 'ahcfree_create_plugin_overview_page', plugins_url('/images/vtrts.png', AHCFREE_PLUGIN_MAIN_FILE));
|
486 |
add_submenu_page('ahc_hits_counter_menu_free', 'Settings', 'Settings', 'manage_options', 'ahc_hits_counter_settings', 'ahcfree_create_plugin_settings_page');
|
487 |
add_submenu_page('ahc_hits_counter_menu_free', 'Contact Support', 'Help', 'manage_options', 'ahc_hits_counter_help', 'ahcfree_create_plugin_help_page');
|
488 |
|
overview.php
CHANGED
@@ -115,7 +115,8 @@ $mystart_date = $mystart_date->format('Y-m-d');
|
|
115 |
</div>
|
116 |
<div class="row">
|
117 |
<div class="col-lg-8">
|
118 |
-
<h1><img height="55px" src="<?php echo esc_url(plugins_url('/images/logo.png', AHCFREE_PLUGIN_MAIN_FILE)); ?>"> Visitor Traffic Real Time Statistics free  
|
|
|
119 |
|
120 |
</div>
|
121 |
<div class="col-lg-4">
|
115 |
</div>
|
116 |
<div class="row">
|
117 |
<div class="col-lg-8">
|
118 |
+
<h1><img height="55px" src="<?php echo esc_url(plugins_url('/images/logo.png', AHCFREE_PLUGIN_MAIN_FILE)); ?>"> Visitor Traffic Real Time Statistics free
|
119 |
+
<?php if(current_user_can('manage_options')){?><a title="change settings" href="admin.php?page=ahc_hits_counter_settings"><img src="<?php echo esc_url(plugins_url('/images/settings.jpg', AHCFREE_PLUGIN_MAIN_FILE)) ?>" /></a><?php }?></h1>
|
120 |
|
121 |
</div>
|
122 |
<div class="col-lg-4">
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.1
|
6 |
-
Stable tag:
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -150,6 +150,11 @@ This plugin supports IPv6; however, PHP must be compiled with IPv6 support enabl
|
|
150 |
|
151 |
== Changelog ==
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
= 4.9 =
|
154 |
1. Settings page - bug fixing
|
155 |
|
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.1
|
6 |
+
Stable tag: 5.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
150 |
|
151 |
== Changelog ==
|
152 |
|
153 |
+
|
154 |
+
= 5.1 =
|
155 |
+
1. Bug fixing in the plugin accessibility
|
156 |
+
|
157 |
+
|
158 |
= 4.9 =
|
159 |
1. Settings page - bug fixing
|
160 |
|