Compare commits
11 Commits
c622b362ab
...
ebcdf86bde
Author | SHA1 | Date | |
---|---|---|---|
ebcdf86bde | |||
f38eeaf658 | |||
23329d11fc | |||
28f24e2ffb | |||
461689a968 | |||
f6582bf2f7 | |||
46155009ca | |||
13d4d12b9f | |||
3ca6eee604 | |||
c9605278f2 | |||
addb476031 |
16
README.md
16
README.md
@ -1,13 +1,9 @@
|
|||||||
# Content Warning v3
|
# Content Warning v3
|
||||||
[](https://wordpress.org/plugins/content-warning-v2/)
|
|
||||||
[](https://wordpress.org/plugins/content-warning-v2/)
|
|
||||||
[](http://wordpress.org/)
|
|
||||||
[](https://wordpress.org/plugins/content-warning-v2/)
|
|
||||||

|

|
||||||
[](https://github.com/JayWood/content-warning-v3/issues)
|
[](https://github.com/JayWood/content-warning-v3/issues)
|
||||||
|
|
||||||
**Current Version:** 3.7
|
**Current Version:** 3.7.1
|
||||||
**Tested Up To:** 4.6.1
|
**Tested Up To:** 4.7.3
|
||||||
**Author:** [Jay Wood](http://github.com/JayWood)
|
**Author:** [Jay Wood](http://github.com/JayWood)
|
||||||
**Author URI:** http://plugish.com
|
**Author URI:** http://plugish.com
|
||||||
**License:** GPLv2+
|
**License:** GPLv2+
|
||||||
@ -31,7 +27,7 @@ This plugin allows you to do the following:
|
|||||||
|
|
||||||
|
|
||||||
[Report an issue](https://github.com/JayWood/content-warning-v3/issues) | [Make a pull request](https://github.com/JayWood/content-warning-v3/pulls)
|
[Report an issue](https://github.com/JayWood/content-warning-v3/issues) | [Make a pull request](https://github.com/JayWood/content-warning-v3/pulls)
|
||||||
[Check the Youtube Video](https://www.youtube.com/watch?v=0_ZNojpYuwk) | [Download from Official Wordpress.org](http://wordpress.org/plugins/content-warning-v2)
|
[Check the Youtube Video](https://www.youtube.com/watch?v=0_ZNojpYuwk)
|
||||||
|
|
||||||
**NOTE:**
|
**NOTE:**
|
||||||
|
|
||||||
@ -75,6 +71,12 @@ Please do not contact me with questions like this. If you cannot be descriptive
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 3.7.2
|
||||||
|
* Removed some rogue logging methods.
|
||||||
|
|
||||||
|
### 3.7.1
|
||||||
|
* Fixed category saving in options Fixes [#59](https://github.com/JayWood/content-warning-v3/issues/59)
|
||||||
|
|
||||||
### 3.7
|
### 3.7
|
||||||
* Fixed an opacity bug where if user set opacity to 0, it was ignored. This should no longer happen.
|
* Fixed an opacity bug where if user set opacity to 0, it was ignored. This should no longer happen.
|
||||||
* Move to the settings API, drop JW Simple Options framework ( I was a newbie when I made it ). Fixes [#45](https://github.com/JayWood/content-warning-v3/issues/45)
|
* Move to the settings API, drop JW Simple Options framework ( I was a newbie when I made it ). Fixes [#45](https://github.com/JayWood/content-warning-v3/issues/45)
|
||||||
|
@ -4,7 +4,7 @@ Plugin Name: Content Warning v2
|
|||||||
Plugin URI: http://plugish.com/plugins/content-warning-v2
|
Plugin URI: http://plugish.com/plugins/content-warning-v2
|
||||||
Description: A WordPress Plugin to allow site owners to display an acceptance dialog. Used mainly for NSFW websites, this plugin provides a dialog popup to warn viewers of it's possible content.
|
Description: A WordPress Plugin to allow site owners to display an acceptance dialog. Used mainly for NSFW websites, this plugin provides a dialog popup to warn viewers of it's possible content.
|
||||||
Author: Jerry Wood Jr.
|
Author: Jerry Wood Jr.
|
||||||
Version: 3.7
|
Version: 3.7.2
|
||||||
Author URI: http://plugish.com
|
Author URI: http://plugish.com
|
||||||
Text Domain: content-warning-v2
|
Text Domain: content-warning-v2
|
||||||
Domain Path: /lang
|
Domain Path: /lang
|
||||||
@ -45,7 +45,7 @@ class ContentWarning_v2 {
|
|||||||
*/
|
*/
|
||||||
public static $instance = null;
|
public static $instance = null;
|
||||||
|
|
||||||
const VERSION = '3.7';
|
const VERSION = '3.7.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rather or not scripts should be minified
|
* Rather or not scripts should be minified
|
||||||
@ -135,7 +135,7 @@ class ContentWarning_v2 {
|
|||||||
if ( $cat_gated ) {
|
if ( $cat_gated ) {
|
||||||
// Return the category cookie name like _cat_###
|
// Return the category cookie name like _cat_###
|
||||||
return '_cat_' . $cat_gated;
|
return '_cat_' . $cat_gated;
|
||||||
} else if ( $this->is_gated( $post->post_parent ) ) {
|
} elseif ( $this->is_gated( $post->post_parent ) ) {
|
||||||
return $post->post_parent;
|
return $post->post_parent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -145,7 +145,7 @@ class ContentWarning_v2 {
|
|||||||
if ( $cat_gated ) {
|
if ( $cat_gated ) {
|
||||||
// Return the category cookie name like _cat_###
|
// Return the category cookie name like _cat_###
|
||||||
return '_cat_' . $cat_gated;
|
return '_cat_' . $cat_gated;
|
||||||
} else if ( $this->is_gated( $post->ID ) ) {
|
} elseif ( $this->is_gated( $post->ID ) ) {
|
||||||
return $post->ID;
|
return $post->ID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,6 @@ function cwv3_get_css() {
|
|||||||
$custom_css = get_option( 'cwv3_css', '' );
|
$custom_css = get_option( 'cwv3_css', '' );
|
||||||
$opacity = get_option( 'cwv3_bg_opacity', '1' );
|
$opacity = get_option( 'cwv3_bg_opacity', '1' );
|
||||||
|
|
||||||
error_log( print_r( $opacity, 1 ) );
|
|
||||||
|
|
||||||
$bg_image_css = ! empty( $image ) ? 'background: url( '. esc_url( $image ) . ' ) no-repeat top center;' : '';
|
$bg_image_css = ! empty( $image ) ? 'background: url( '. esc_url( $image ) . ' ) no-repeat top center;' : '';
|
||||||
$bg_color_css = ! empty( $color ) ? 'background-color: ' . $color . ';' : '';
|
$bg_color_css = ! empty( $color ) ? 'background-color: ' . $color . ';' : '';
|
||||||
|
|
||||||
|
@ -244,8 +244,6 @@ class CWV2_Settings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$option_value = get_option( $field_id, $field_id, $default );
|
$option_value = get_option( $field_id, $field_id, $default );
|
||||||
error_log( print_r( $option_value, 1 ) );
|
|
||||||
|
|
||||||
$attributes = '';
|
$attributes = '';
|
||||||
|
|
||||||
if ( ! empty( $options ) ) {
|
if ( ! empty( $options ) ) {
|
||||||
@ -333,9 +331,8 @@ class CWV2_Settings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$option_value = get_option( $field_id, $field_id, $default );
|
$option_value = get_option( $field_id, $field_id, $default );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<select name="<?php echo $field_id; ?>" id="<?php echo $field_id; ?>" class="cwv2_select2 widefat" multiple="multiple">
|
<select name="<?php echo $field_id; ?>[]" id="<?php echo $field_id; ?>" class="cwv2_select2 widefat" multiple="multiple">
|
||||||
<?php foreach ( $options as $k => $v ) : ?>
|
<?php foreach ( $options as $k => $v ) : ?>
|
||||||
<option value="<?php echo $k; ?>" <?php $this->selected_array( $option_value, $k ); ?>><?php echo $v; ?></option>
|
<option value="<?php echo $k; ?>" <?php $this->selected_array( $option_value, $k ); ?>><?php echo $v; ?></option>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
10
readme.txt
10
readme.txt
@ -3,8 +3,8 @@ Contributors: Phyrax
|
|||||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U5M6JBDKGF3EJ
|
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U5M6JBDKGF3EJ
|
||||||
Tags: warning, message, lading page, front page, enter page, adult content, consent, age verification, validation
|
Tags: warning, message, lading page, front page, enter page, adult content, consent, age verification, validation
|
||||||
Requires at least: 3.5
|
Requires at least: 3.5
|
||||||
Tested up to: 4.6.1
|
Tested up to: 4.7.3
|
||||||
Stable tag: 3.7
|
Stable tag: 3.7.2
|
||||||
|
|
||||||
A plugin that provides a warning box with a ton more options completely re-written from the ground up.
|
A plugin that provides a warning box with a ton more options completely re-written from the ground up.
|
||||||
== Description ==
|
== Description ==
|
||||||
@ -105,6 +105,12 @@ Please do not contact me with questions like this. If you cannot be descriptive
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 3.7.2 =
|
||||||
|
* Removed some rogue logging methods.
|
||||||
|
|
||||||
|
= 3.7.1 =
|
||||||
|
* Fixed category saving in options Fixes [#59](https://github.com/JayWood/content-warning-v3/issues/59)
|
||||||
|
|
||||||
= 3.7 =
|
= 3.7 =
|
||||||
* Fixed an opacity bug where if user set opacity to 0, it was ignored. This should no longer happen.
|
* Fixed an opacity bug where if user set opacity to 0, it was ignored. This should no longer happen.
|
||||||
* Move to the settings API, drop JW Simple Options framework ( I was a newbie when I made it ). Fixes [#45](https://github.com/JayWood/content-warning-v3/issues/45)
|
* Move to the settings API, drop JW Simple Options framework ( I was a newbie when I made it ). Fixes [#45](https://github.com/JayWood/content-warning-v3/issues/45)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<wpml-config>
|
<wpml-config>
|
||||||
<admin-texts>
|
<admin_texts>
|
||||||
<key name="cwv3_exit_txt"/>
|
<key name="cwv3_exit_txt"/>
|
||||||
<key name="cwv3_enter_txt"/>
|
<key name="cwv3_enter_txt"/>
|
||||||
<key name="cwv3_den_title"/>
|
<key name="cwv3_den_title"/>
|
||||||
|
Reference in New Issue
Block a user