From: Chuck Scott Date: Mon, 5 Aug 2019 20:55:06 +0000 (-0400) Subject: Because Steve Needed Me To... X-Git-Tag: v3.0.0^2~6 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3ed2e6343842fec18fa6690a4a5af8d506275372;p=WP-Plugins%2Fglm-serverstats.git Because Steve Needed Me To... --- diff --git a/index.php b/index.php index 8f4b6da..f8be78c 100755 --- a/index.php +++ b/index.php @@ -106,7 +106,6 @@ function glmServerStatsScripts() GLM_SERVERSTATS_PLUGIN_VERSION, true ); - wp_enqueue_script('glm-usage-foundation6-js', false, array('jquery'), false, true); wp_register_style( 'glm-usage-foundation6-css', GLM_SERVERSTATS_PLUGIN_URL . 'css/foundation-6.min.css', @@ -123,7 +122,7 @@ function glmServerStatsScripts() wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css'); // Register and enqueue DateTimePicker - wp_register_script( + wp_enqueue_script( 'glm-members-admin-datetimepicker', GLM_SERVERSTATS_PLUGIN_URL . 'js/datetimepicker/build/jquery.datetimepicker.full.min.js', array( @@ -131,7 +130,6 @@ function glmServerStatsScripts() ), GLM_MEMBERS_PLUGIN_VERSION ); - wp_enqueue_script('glm-members-admin-datetimepicker', false, array('jquery'), false, true); wp_register_style( 'glm-members-admin-datetimepicker-css', GLM_SERVERSTATS_PLUGIN_URL . 'js/datetimepicker/jquery.datetimepicker.css', diff --git a/setup/commonHooks.php b/setup/commonHooks.php index 7a65fdf..c68b514 100644 --- a/setup/commonHooks.php +++ b/setup/commonHooks.php @@ -37,7 +37,7 @@ * and be able to connect to the server usage statistics database. */ add_filter('glm-serverstats-is-provider', function() { - return ((strpos(GLM_SERVERSTATS_SITE_BASE_URL, GLM_SERVERSTATS_PROVIDER_1) !== false || strpos(GLM_SERVERSTATS_SITE_BASE_URL, GLM_SERVERSTATS_PROVIDER_2) !== false)); + return ((strpos(GLM_SERVERSTATS_SITE_BASE_URL, GLM_SERVERSTATS_PROVIDER_1) !== false || strpos(GLM_SERVERSTATS_SITE_BASE_URL, GLM_SERVERSTATS_PROVIDER_2) !== false) && current_user_can( 'administrator' )); }, 10, 2 diff --git a/views/adminServerStats.html b/views/adminServerStats.html index dacfc0d..36a9358 100755 --- a/views/adminServerStats.html +++ b/views/adminServerStats.html @@ -241,10 +241,14 @@ {include file="ui/f6/form-end.html"} +
Customer Section
+ + {else} + +
Website Data Usage
+ {/if} {* /is provider *} -
Customer Section
-
@@ -438,7 +442,7 @@
- Montlhy maximum disk space used for past year. The dotted line is our current/planned billing level. + Monthly maximum disk space used for past year. The dotted line is our current/planned billing level.
diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html index f8e7ba4..138ceb2 100755 --- a/views/adminServerStatsConfig.html +++ b/views/adminServerStatsConfig.html @@ -211,7 +211,8 @@ 'max' => 90, 'width' => 5, 'helpText' => 'Number of days after user accepts the cookie pop-up that it will display again. - Do not set to a real high number. Consider 10-30 days. Set to 0 to test Cookie Popups.' + Do not set to a real high number. Consider 10-30 days. Set to 0 to test Cookie Popups.', + 'errorText' => 'Must be between 0 and 90 days!' ]} {include file="ui/f6/number.html"} diff --git a/views/ui/f6/form-start.html b/views/ui/f6/form-start.html index 7218e68..0cccdfa 100644 --- a/views/ui/f6/form-start.html +++ b/views/ui/f6/form-start.html @@ -31,12 +31,9 @@
{if !empty($ui.validateFocusMsg)}