Compare commits

...

11 Commits

Author SHA1 Message Date
JayWood
ebcdf86bde
Strip links to .org, plugin is no longer mine. 2018-11-04 18:33:35 -05:00
Jay Wood
f38eeaf658 Bump tested up to versions 2017-03-24 11:12:26 -04:00
Jay Wood
23329d11fc Merge branch 'development' of github.com:JayWood/content-warning-v3 into development 2016-11-04 09:46:00 -04:00
Jay Wood
28f24e2ffb Bump version, update changelogs 2016-11-04 09:45:36 -04:00
Jay Wood
461689a968 Merge branch 'bug/category-array-fix' into development 2016-11-04 09:42:38 -04:00
Jay Wood
f6582bf2f7 Fix phpCS complaint 2016-11-04 09:42:32 -04:00
Jay Wood
46155009ca Remove error logs 2016-11-04 09:39:44 -04:00
Jay Wood
13d4d12b9f Versioning 2016-10-15 16:28:24 -04:00
Jay Wood
3ca6eee604 Quick fix for category arrays - #59 2016-10-15 16:19:39 -04:00
JayWood
c9605278f2 Merge pull request #60 from slawekniewiadomski/patch-1
Fix e(): <admin-texts></admin_texts>
2016-10-04 23:00:42 -04:00
slawek_n
addb476031 Fix e(): <admin-texts></admin_texts>
Fixed error where tags aren't matching "-" instead of "_"
2016-10-05 00:35:20 +02:00
6 changed files with 23 additions and 20 deletions

View File

@ -1,13 +1,9 @@
# Content Warning v3
[![Rating](https://img.shields.io/wordpress/plugin/r/content-warning-v2.svg)](https://wordpress.org/plugins/content-warning-v2/)
[![Plugin Version](https://img.shields.io/wordpress/plugin/v/content-warning-v2.svg)](https://wordpress.org/plugins/content-warning-v2/)
[![Tested Version](https://img.shields.io/wordpress/v/content-warning-v2.svg)](http://wordpress.org/)
[![Plugin Downloads](https://img.shields.io/wordpress/plugin/dt/content-warning-v2.svg)](https://wordpress.org/plugins/content-warning-v2/)
![License](https://img.shields.io/badge/License-GPLv2-orange.svg)
[![Issues](https://img.shields.io/github/issues/JayWood/content-warning-v3.svg)](https://github.com/JayWood/content-warning-v3/issues)
**Current Version:** 3.7
**Tested Up To:** 4.6.1
**Current Version:** 3.7.1
**Tested Up To:** 4.7.3
**Author:** [Jay Wood](http://github.com/JayWood)
**Author URI:** http://plugish.com
**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)
[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:**
@ -75,6 +71,12 @@ Please do not contact me with questions like this. If you cannot be descriptive
## 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
* 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)

View File

@ -4,7 +4,7 @@ Plugin Name: 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.
Author: Jerry Wood Jr.
Version: 3.7
Version: 3.7.2
Author URI: http://plugish.com
Text Domain: content-warning-v2
Domain Path: /lang
@ -45,7 +45,7 @@ class ContentWarning_v2 {
*/
public static $instance = null;
const VERSION = '3.7';
const VERSION = '3.7.2';
/**
* Rather or not scripts should be minified
@ -135,7 +135,7 @@ class ContentWarning_v2 {
if ( $cat_gated ) {
// Return the category cookie name like _cat_###
return '_cat_' . $cat_gated;
} else if ( $this->is_gated( $post->post_parent ) ) {
} elseif ( $this->is_gated( $post->post_parent ) ) {
return $post->post_parent;
}
}
@ -145,7 +145,7 @@ class ContentWarning_v2 {
if ( $cat_gated ) {
// Return the category cookie name like _cat_###
return '_cat_' . $cat_gated;
} else if ( $this->is_gated( $post->ID ) ) {
} elseif ( $this->is_gated( $post->ID ) ) {
return $post->ID;
}
}

View File

@ -24,8 +24,6 @@ function cwv3_get_css() {
$custom_css = get_option( 'cwv3_css', '' );
$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_color_css = ! empty( $color ) ? 'background-color: ' . $color . ';' : '';

View File

@ -244,8 +244,6 @@ class CWV2_Settings {
}
$option_value = get_option( $field_id, $field_id, $default );
error_log( print_r( $option_value, 1 ) );
$attributes = '';
if ( ! empty( $options ) ) {
@ -333,9 +331,8 @@ class CWV2_Settings {
}
$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 ) : ?>
<option value="<?php echo $k; ?>" <?php $this->selected_array( $option_value, $k ); ?>><?php echo $v; ?></option>
<?php endforeach; ?>

View File

@ -3,8 +3,8 @@ Contributors: Phyrax
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
Requires at least: 3.5
Tested up to: 4.6.1
Stable tag: 3.7
Tested up to: 4.7.3
Stable tag: 3.7.2
A plugin that provides a warning box with a ton more options completely re-written from the ground up.
== Description ==
@ -105,6 +105,12 @@ Please do not contact me with questions like this. If you cannot be descriptive
== 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 =
* 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)

View File

@ -1,5 +1,5 @@
<wpml-config>
<admin-texts>
<admin_texts>
<key name="cwv3_exit_txt"/>
<key name="cwv3_enter_txt"/>
<key name="cwv3_den_title"/>