Fix CSS issue with image not showing and css overrides not loading.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||

|

|
||||||
[](https://github.com/JayWood/content-warning-v3/issues)
|
[](https://github.com/JayWood/content-warning-v3/issues)
|
||||||
|
|
||||||
**Current Version:** 3.6.5
|
**Current Version:** 3.6.6
|
||||||
**Tested Up To:** 4.3
|
**Tested Up To:** 4.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
|
||||||
@ -79,6 +79,9 @@ Please do not contact me with questions like this. If you cannot be descriptive
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 3.6.6
|
||||||
|
* Fixed CSS issues for background images and css overrides
|
||||||
|
|
||||||
### 3.6.5
|
### 3.6.5
|
||||||
* Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. [Issue #29](https://github.com/JayWood/content-warning-v3/issues/29)
|
* Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. [Issue #29](https://github.com/JayWood/content-warning-v3/issues/29)
|
||||||
* New filter for display condition - [See Wiki](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation#hide-the-dialog-on-certain-pages-regardless-of-cookies) - [Issue #26](https://github.com/JayWood/content-warning-v3/issues/26)
|
* New filter for display condition - [See Wiki](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation#hide-the-dialog-on-certain-pages-regardless-of-cookies) - [Issue #26](https://github.com/JayWood/content-warning-v3/issues/26)
|
||||||
|
@ -4,7 +4,7 @@ Plugin Name: Content Warning v2
|
|||||||
Plugin URI: http://plugish.com/plugins/content-warning-v3
|
Plugin URI: http://plugish.com/plugins/content-warning-v3
|
||||||
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.6.5
|
Version: 3.6.6
|
||||||
Author URI: http://plugish.com
|
Author URI: http://plugish.com
|
||||||
Text Domain: cwv3
|
Text Domain: cwv3
|
||||||
*/
|
*/
|
||||||
|
@ -24,7 +24,7 @@ function cwv3_get_css() {
|
|||||||
$custom_css = get_option( 'cwv3_css', '' );
|
$custom_css = get_option( 'cwv3_css', '' );
|
||||||
$opacity = get_option( 'cwv3_bg_opacity', '' );
|
$opacity = get_option( 'cwv3_bg_opacity', '' );
|
||||||
|
|
||||||
$bg_image_css = ! empty( $image ) ? 'background-image: url( '. esc_url( $img ) . ' ) no-repeat top center;' : '';
|
$bg_image_css = ! empty( $image ) ? 'background-image: url( '. esc_url( $image ) . ' ) no-repeat top center;' : '';
|
||||||
$bg_color_css = ! empty( $color ) ? 'background-color: ' . $color['color'] . ';' : '';
|
$bg_color_css = ! empty( $color ) ? 'background-color: ' . $color['color'] . ';' : '';
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
@ -40,6 +40,7 @@ function cwv3_get_css() {
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
<?php echo $custom_css; ?>
|
||||||
<?php do_action( 'cwv3_after_css' ); ?>
|
<?php do_action( 'cwv3_after_css' ); ?>
|
||||||
</style>
|
</style>
|
||||||
<!-- END CWV3-CSS -->
|
<!-- END CWV3-CSS -->
|
||||||
|
@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|||||||
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.3
|
Tested up to: 4.3
|
||||||
Stable tag: 3.6.5
|
Stable tag: 3.6.6
|
||||||
|
|
||||||
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 ==
|
||||||
@ -99,6 +99,9 @@ Please do not contact me with questions like this. If you cannot be descriptive
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 3.6.6 =
|
||||||
|
* Fixed CSS issues for background images and css overrides
|
||||||
|
|
||||||
= 3.6.5 =
|
= 3.6.5 =
|
||||||
* Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. [Issue #29](https://github.com/JayWood/content-warning-v3/issues/29)
|
* Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. [Issue #29](https://github.com/JayWood/content-warning-v3/issues/29)
|
||||||
* New filter for display condition - [See Wiki](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation#hide-the-dialog-on-certain-pages-regardless-of-cookies) - [Issue #26](https://github.com/JayWood/content-warning-v3/issues/26)
|
* New filter for display condition - [See Wiki](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation#hide-the-dialog-on-certain-pages-regardless-of-cookies) - [Issue #26](https://github.com/JayWood/content-warning-v3/issues/26)
|
||||||
|
Reference in New Issue
Block a user