* Plugin Name: GLM Bandwidth
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Website Bandwidth Display and Reporting
- * Version: 2.2.1
+ * Version: 2.2.2
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmServerStats
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.2.1
+ * @version 2.2.2
*/
// Check that we're being called by WordPress.
die();
}
-define('GLM_SERVERSTATS_PLUGIN_VERSION', '2.2.1');
+define('GLM_SERVERSTATS_PLUGIN_VERSION', '2.2.2');
// Required to be able to get user capabilities when being called as a filter from the main plugin
require_once ABSPATH . 'wp-includes/pluggable.php';
$serverstatsConfig = get_option(GLM_SERVERSTATS_PLUGIN_CONFIG_OPTION);
?>
<style>
- #siteCookieDialog {
- style="display: none;
- font-size: 16px;
+ #cookieNoticeBox {
+ position: absolute;
+ top: 20px;
+ right: 30px;
+ width: 60%;
+ margin: 0 auto;
+ background: white;
+ padding: 15px;
+ border: 2px solid black;
+ border-radius: 20px/20px;
+ background-clip: padding-box;
+ text-align: left;
+ z-index: 99999 !important;
}
- #siteCookieDialog .cookieButton {
- background-color: WhiteSmoke;
- border: 1px solid gray;
- padding: 4px;
- margin: 4px;
+ #cookieNoticeBox .title {
+ font-size: 1.5em;
+ padding-bottom: .5em;
+ border-bottom: 2px solid black;
+ margin-bottom: .5em;
}
- #siteCookieDialog p {
- }
- #siteCookieDialog $cookieMoreInfo {
+ #cookieNoticeBox .button {
+ color: black;
+ background-color: lightgrey;
+ padding: 8px 20px;
+ z-index: 20;
+ left: 0;
+ top: 0;
+ margin: 0;
+ border-radius: 4px;
}
</style>
-<div id="siteCookieDialog" class="opensearchserver.ignore">
+<div id="cookieNoticeBox" class="opensearchserver.ignore hidden">
+ <div class="title">Please read!<br></div>
<p>
This site uses temporary "Session Cookies" to store limited information that's required to provide
you with a consistent user experience. We don't store personally identifying or other sensitive
</p>
<?php if ($serverstatsConfig['cookie_message'] != '') { echo '<p>'.$serverstatsConfig['cookie_message'].'</p>'; } ?>
<p>
- <a id="showMorePrivacyInfo" class="cookieButton">Show more</a>
- <a id="privacyGotIt" class="cookieButton">Got it!</a>
+ <a id="showMorePrivacyInfo" class="button">Show more</a>
+ <a id="cookieNoticeBoxClose" class="button">Got it!</a>
</p>
<div id="cookieMoreInfo" style="display: none;">
<?php if ($serverstatsConfig['cookie_opt_gdpr']) { ?>
<script type="text/javascript">
jQuery(function($){
- // Setup dialog box
- $( "#siteCookieDialog" ).dialog({
- title: 'Please Note: This site uses Cookies',
- position: { at: "center top+20%"},
- autoOpen: false,
- modal: true,
- width: '80%'
- });
-
- // Show submit dialog box
- $( "#siteCookieDialog" ).dialog( "open" );
-
var showMorePrivacyInfo = false;
$("#showMorePrivacyInfo").on('click', function() {
if (showMorePrivacyInfo) {
}
});
- $("#privacyGotIt").on('click', function() {
- $( "#siteCookieDialog" ).dialog( "close" );
+ $("#cookieNoticeBoxClose").on('click', function() {
+ $("#cookieNoticeBox").hide();
});
});