From: Chuck Scott
Date: Thu, 25 Jul 2019 18:56:38 +0000 (-0400)
Subject: Updating UI snippets and other work
X-Git-Tag: v3.0.0^2~9
X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=441df2cf03b04da727143e4c3b3c1ffb73c90dc3;p=WP-Plugins%2Fglm-serverstats.git
Updating UI snippets and other work
Merged changes in the UI snippets in the main member plugin to this plugin where appropriate.
Made minor fixes and changes to certain UI snippets.
Fixed problems with usage and configure admin pages and forms.
---
diff --git a/index.php b/index.php
index 9e5bcc4..8f4b6da 100755
--- a/index.php
+++ b/index.php
@@ -106,6 +106,7 @@ 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',
@@ -114,7 +115,6 @@ function glmServerStatsScripts()
);
wp_enqueue_style('glm-usage-foundation6-css');
-
wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
// wp_enqueue_style('glm-server-stats-admin-css', GLM_SERVERSTATS_PLUGIN_CSS_URL.'/admin.css');
diff --git a/models/adminServerStatsConfig.php b/models/adminServerStatsConfig.php
index 357c9cd..5e3749e 100755
--- a/models/adminServerStatsConfig.php
+++ b/models/adminServerStatsConfig.php
@@ -120,7 +120,7 @@ class adminServerStatsConfig extends glmServerStatsBandwidthSupport
.'required to provide you with a consistent user experience. We don\'t store '
.'personally identifying or other sensitive information in these Cookies and '
.'these Cookies are erased when you close your Web Browser unless otherwise '
- .'stated when you click "Show more".
If you\'re on a public computer,'
+ .'stated when you click "Show more".
If you\'re on a public computer, '
.'be sure to close all Web Browsers when you\'re done!
LOGGED IN USERS: We don't store passwords you use to log in as plain text, instead they're encrypted
before being stored in our systems. When you enter that password again to log in, we encrypt that and and
- match it to the encrypted password that had been stored. There is no way to decrypt the stored passwords.
- Still, you should try to avoid using the same password for everything you log into, should not make those
- passwords easily accessible to anyone else, and you should always use more complex passwords that don't
- include words or names people would associate with you.
+ match it to the encrypted password that had been stored. There is no way to decrypt the stored passwords,
+ but it may be possilbe for others to guess simple passwords. You should always use more complex passwords
+ that don't include words or names people would associate with you. You should also try to avoid using the
+ same password for everything you log into and should not make those passwords easily accessible to anyone else.
Monthly traffic totals for the past year. The dotted line is our current/planned billing level.
-
+
Montlhy maximum disk space used for past year. The dotted line is our current/planned billing level.
-
+
Detail traffic for past 24 hours.
-
+
Daily traffic for past two months.
-
+
@@ -475,6 +496,7 @@
$('.datePrintInclude').hide();
location.href='#selectedSite';
+ location.href='#glmPageTop';
});
diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html
index 3b3417f..447ad0c 100755
--- a/views/adminServerStatsConfig.html
+++ b/views/adminServerStatsConfig.html
@@ -9,11 +9,17 @@
{* Beginning of user interface using view UI elements *}
-
+ {include file="ui/f6/form-end.html"}
{* End of user interface using view UI elements *}
@@ -398,21 +372,14 @@
jQuery(document).ready(function($) {
-{if $forceReload}
- alert('Redirecting due to menu change. Click "OK" to continue.');
- window.location.href = '{$adminUrl}{$reloadUrl}';
-{/if}
+ {if $forceReload}
+ alert('Redirecting due to menu change. Click "OK" to continue.');
+ window.location.href = '{$adminUrl}{$reloadUrl}';
+ {/if}
// Flash certain elements for a short time after display
$(".glm-flash-updated").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500);
- location.href='#selectedSite';
- window.setTimeout( function() {
- location.href='#glmPageTop';
- }, 500);
-
-
-
});
diff --git a/views/ui/f6/bitmap.html b/views/ui/f6/bitmap.html
new file mode 100644
index 0000000..4f6d0a9
--- /dev/null
+++ b/views/ui/f6/bitmap.html
@@ -0,0 +1,61 @@
+{*
+ Foundation 6 Bitmap Field
+ All parameters are required.
+ Only 0ne of $data or $field may be used.
+ Do not list fields if they're false. (We're not checking for false)
+
+ {$ui = [
+ 'value' => string Value of the element
+ 'field' => string Name of field that holds the data if not using data abstract,
+ 'label' => string Label text for this field,
+ 'active' => string Text for active state
+ 'inactive' => string text for inactive state
+ 'required' => boolean True if required,
+ 'helpText' => string Help text for this input,
+ 'errortext' => string Error text that appears when the field doesn't validate,
+ 'dataError' => string Error from data Abstract Class
+ ]}
+*}
+
+*}
diff --git a/views/ui/f6/callout.html b/views/ui/f6/callout.html
new file mode 100644
index 0000000..a28b94d
--- /dev/null
+++ b/views/ui/f6/callout.html
@@ -0,0 +1,18 @@
+{*
+ Foundation 6 Callout Notice
+
+ {$ui = [
+ 'label' => string Label text for this Callout,
+ 'active' => string True or False if this notice is active
+ 'type' => string Success, Warning, Alert, Primary or Secondary
+ ]}
+*}
+{if $ui.active}
+
+
+
{$ui.label}
+
+{/if}
+
diff --git a/views/ui/f6/checkbox.html b/views/ui/f6/checkbox.html
index decb533..af36c45 100644
--- a/views/ui/f6/checkbox.html
+++ b/views/ui/f6/checkbox.html
@@ -8,7 +8,7 @@
'required' => boolean True if required,
'helpText' => string Help text for this input,
'errorText' => string Error text that appears when the field doesn't validate,
- 'dataError' => string Error from data Abstract Class,
+ 'dataError' => string Error from data Abstract Class, or other supplied error string
'tip' => string Tool Tip text
]}
*}
@@ -17,10 +17,11 @@
diff --git a/views/ui/f6/form-start.html b/views/ui/f6/form-start.html
index b1ec936..7218e68 100644
--- a/views/ui/f6/form-start.html
+++ b/views/ui/f6/form-start.html
@@ -1,38 +1,46 @@
{*
Foundation 6 UI - Form Start
+
+ WARNING: There may be a problem with using Form Start after Grid Start. Was seeing improper spacing.
+
+ Found that using ".position().top -10" was better since it places the top of the window 10px above the
+ box containing the validate message while using ".offset()" caused it to position in the middle of the
+ validate message.
{$ui = [
'action' => string Required URL
- 'method' => string Required Method "POST" or "GET"
+ 'method' => string Required Method "post" or "get"
'id' => string Form id
- 'File' => boolean If including file upload set to true
+ 'file' => boolean If including file upload set to true
'validate' => boolean If true, include Abide Form Validation
'validateFocusMsg' => boolean If true focuses on validateMessage on error
'validateID' => string Unique text that will be added to the validate message container to ensure that it is unique
- 'validateMessage' => string Message to show when validattion error, If not provided will use "There are some errors in your form."
+ 'validateMessage' => string Message to show for a validation error, Defaults to "There are some errors in your form."
]}
*}
-{$validateMessage = "There are some errors in your form."}
-{if !empty($ui.validate)}{$validateMessage = $ui.validateMessage}{/if}
-