From f32f0f26ebdf62dae625541df68d0cc6732d035b Mon Sep 17 00:00:00 2001 From: Ryan Kozak Date: Thu, 17 Aug 2017 13:53:10 -0700 Subject: [PATCH 1/5] Added admin option to disable the scrollbar when the age gateway is present --- age-verify.php | 10 ++++----- includes/admin/class-age-verify-admin.php | 6 ++++- includes/admin/settings.php | 27 ++++++++++++++++++++--- includes/class-age-verify.php | 11 ++++++++- readme.txt | 7 ++++-- 5 files changed, 49 insertions(+), 12 deletions(-) diff --git a/age-verify.php b/age-verify.php index a503d5f..c7d95db 100755 --- a/age-verify.php +++ b/age-verify.php @@ -4,17 +4,17 @@ * * This file loads the main plugin class and gets things running. * - * @since 0.2.6 + * @since 0.3.1 * * @package Age_Verify */ /** - * Plugin Name: Age Verify + * Plugin Name: Age Verify Fork * Description: A simple way to ask visitors for their age before viewing your site. - * Author: Chase Wiseman - * Author URI: http://chasewiseman.com - * Version: 0.3.0 + * Author: Ryan Kozak + * Author URI: https://ryankozak.com + * Version: 0.3.1 * Text Domain: age-verify * Domain Path: /languages */ diff --git a/includes/admin/class-age-verify-admin.php b/includes/admin/class-age-verify-admin.php index 43f98bb..223f0d1 100755 --- a/includes/admin/class-age-verify-admin.php +++ b/includes/admin/class-age-verify-admin.php @@ -2,7 +2,7 @@ /** * Define the admin class * - * @since 0.2.6 + * @since 0.3.1 * * @package Age_Verify\Admin */ @@ -171,6 +171,10 @@ public function register_settings() { add_settings_field( '_av_styling', __( 'Styling', 'age-verify' ), 'av_settings_callback_styling_field', 'age-verify', 'av_settings_display' ); register_setting ( 'age-verify', '_av_styling', 'intval' ); + // Disable Scrollbar + add_settings_field( '_av_scroll', __( 'Scroll', 'age-verify' ), 'av_settings_callback_scroll_field', 'age-verify', 'av_settings_display' ); + register_setting ( 'age-verify', '_av_scroll', 'intval' ); + // Overlay Color add_settings_field( '_av_overlay_color', __( 'Overlay Color', 'age-verify' ), 'av_settings_callback_overlay_color_field', 'age-verify', 'av_settings_display' ); register_setting ( 'age-verify', '_av_overlay_color', array( $this, 'validate_color' ) ); diff --git a/includes/admin/settings.php b/includes/admin/settings.php index 356a9ed..2cb38e0 100755 --- a/includes/admin/settings.php +++ b/includes/admin/settings.php @@ -6,14 +6,12 @@ /** * Define the settings page. * - * @since 0.1 + * @since 0.3.1 */ function av_settings_page() { ?>
- -

@@ -204,6 +202,29 @@ function av_settings_callback_styling_field() { ?> + +
+ + + + +
+ + + + + +
diff --git a/readme.txt b/readme.txt index df92bd9..73f0bf2 100755 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,8 @@ === Age Verify === -Contributors: ChaseWiseman +Contributors: Ryan Kozak, ChaseWiseman Tags: age, restrict, verify Requires at least: 3.2 -Tested up to: 4.4.1 +Tested up to: 4.8.1 Stable tag: 0.3.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -26,6 +26,9 @@ Whatever your reasons, you may need your site's visitors to confirm their age be == Changelog == += 0.3.1 = +* Option to disable scrollbar when gateway is present. + = 0.3.0 = * New: French and Italian translations * Tweak: Use strings for the textdomain and change to 'age-verify' From d60f435c93fbc24cd64eb994d1fb515589f2f42c Mon Sep 17 00:00:00 2001 From: Ryan Kozak Date: Thu, 17 Aug 2017 14:00:56 -0700 Subject: [PATCH 2/5] created README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d0aadc9 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ + +# Age Verify +[![WordPress](https://img.shields.io/wordpress/v/akismet.svg)](https://wordpress.org/download/) + [![version](https://img.shields.io/badge/stable-v0.1.0-4A8F80.svg)](https://wordpress.org/plugins/wp-drinking-age/) + [![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/gpl-2.0.html) + + +## Description +This plugin is a fork of Chase Wiseman's popular [age-verify plugin](https://github.com/ChaseWiseman/age-verify), adding an additional option to the admin panel for users to disable the browser's scrollbar when the gateway is present. + + +## Installation + 1. Upload the plugin file to '/wp-content/plugins/' directory or upload the [zip](https://github.com/d0n601/WP-Drinking-Age/archive/master.zip) file through the plugins section of the admin panel + 2. Activate the plugin through 'Plugins' menu in WordPress admin + 3. Adjust plugin's settings by going to **Settings->WP Drinking Age** + 4. Now enjoy WP Drinking Age Gateway! + From 1b124cb51af2f8f0836c8a5b5078c9d001fcf5b2 Mon Sep 17 00:00:00 2001 From: Ryan Kozak Date: Thu, 17 Aug 2017 14:01:37 -0700 Subject: [PATCH 3/5] update version number in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0aadc9..83bddea 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Age Verify [![WordPress](https://img.shields.io/wordpress/v/akismet.svg)](https://wordpress.org/download/) - [![version](https://img.shields.io/badge/stable-v0.1.0-4A8F80.svg)](https://wordpress.org/plugins/wp-drinking-age/) + [![version](https://img.shields.io/badge/stable-v0.3.1-4A8F80.svg)](https://wordpress.org/plugins/wp-drinking-age/) [![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/gpl-2.0.html) From 1369ae75333efd76cc66a163371d12edd14153cc Mon Sep 17 00:00:00 2001 From: Ryan Kozak Date: Thu, 17 Aug 2017 14:03:30 -0700 Subject: [PATCH 4/5] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83bddea..604d5bf 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ This plugin is a fork of Chase Wiseman's popular [age-verify plugin](https://git ## Installation - 1. Upload the plugin file to '/wp-content/plugins/' directory or upload the [zip](https://github.com/d0n601/WP-Drinking-Age/archive/master.zip) file through the plugins section of the admin panel + 1. Upload the plugin file to '/wp-content/plugins/' directory or upload the [zip](https://github.com/d0n601/age-verify/archive/master.zip) file through the plugins section of the admin panel 2. Activate the plugin through 'Plugins' menu in WordPress admin - 3. Adjust plugin's settings by going to **Settings->WP Drinking Age** - 4. Now enjoy WP Drinking Age Gateway! + 3. Adjust plugin's settings by going to **Settings->Age Verify** + 4. Now enjoy your Age Gateway! From de434a262999e6980f4066118c92ed578a35e31d Mon Sep 17 00:00:00 2001 From: Ryan Kozak Date: Fri, 18 Aug 2017 12:54:58 -0700 Subject: [PATCH 5/5] Add gitignore. Change media query to allow a bit larger phones --- .gitignore | 1 + includes/assets/styles.css | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/includes/assets/styles.css b/includes/assets/styles.css index 965892a..f242d48 100755 --- a/includes/assets/styles.css +++ b/includes/assets/styles.css @@ -49,8 +49,8 @@ border-radius: 3px; } -/* Minimum width of 400 pixels. */ -@media screen and (min-width: 400px) { +/* Minimum width of 416 pixels. */ +@media screen and (min-width: 416px) { #av-overlay { position: relative;