Updates (for now)

This commit is contained in:
2024-05-07 19:18:54 -07:00
parent ebcdf86bde
commit e0bdae07dc
120 changed files with 3174 additions and 1778 deletions

View File

@ -1,12 +1,12 @@
# Content Warning v3
![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)
[![Issues](https://img.shields.io/github/issues/JayWood/content-warning-v3.svg)](https://git.oldgate.org/sophia/wp-cw/issues)
**Current Version:** 3.7.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+
**Author:** [Jay Wood](http://github.com/JayWood)
**Author URI:** ~~http://plugish.com~~
**License:** GPLv2+
A WordPress Plugin to allow site owners to display an acceptance dialog to their users and have that follow them throughout the site. This plugin allows you to do redirect users if they decline,
and show popups only on single posts, pages, or categories. ie. if a user accepts on `Post A`, but no `Post B`, you can force them to accept on a per-post/page/category basis. You can also set
@ -25,9 +25,8 @@ This plugin allows you to do the following:
* Customize the background color via a simple color selector, along with it's opacity
* Blanket protect misc. pages like search and archives
[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)
[Report an issue](https://git.oldgate.org/sophia/wp-cw/issues) | [Make a pull request](https://git.oldgate.org/sophia/wp-cw/pulls)
~~[Check the Youtube Video](https://www.youtube.com/watch?v=0_ZNojpYuwk)~~
**NOTE:**
@ -48,6 +47,7 @@ This plugin allows you to do the following:
1. Save, and you're all good.
### Old Method
1. Upload `content-warning-v2` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
@ -55,7 +55,7 @@ This plugin allows you to do the following:
This plugin is tested and proven to work with WordPress 3.4
### The plugin is broken, fix it.
### The plugin is broken, fix it
Please do not contact me with questions like this. If you cannot be descriptive with your problem I cannot help you.
@ -63,81 +63,3 @@ Please do not contact me with questions like this. If you cannot be descriptive
* If your browser does not have cookies enabled, the plugin will not store your response.
* Also, if you're using google chrome, this is a bug that unfortunately I have been unable to squash. Hitting F5 or refresh will fix it.
## Upgrade Notice
### 3.7
* Upgrading to 3.7 will de-activate your plugin. This is because the name of the main plugin file was changed for localization purposes. Your settings are still saved you just have to re-activate the plugin.
## 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)
* Use Select2 for categories
* Use a better check method for checkboxes and multi-select - fixes [#49](https://github.com/JayWood/content-warning-v3/issues/49)
* Set opacity step to 0.1 - Fixes [#55](https://github.com/JayWood/content-warning-v3/issues/55)
### 3.6.9
* Small cleanup
* Force text color to be black - fixes [#43](https://github.com/JayWood/content-warning-v3/issues/43)
* Use `COOKIEPATH` instead of `SITECOOKIEPATH` constants, compatibility fix for sub-folder installs - fixes [#42](https://github.com/JayWood/content-warning-v3/issues/42)
### 3.6.8
* Use background-image css property instead of just background - thanks to [95CivicSi](https://github.com/95CivicSi)
### 3.6.7
* Fixed conditional being too strict [#34](https://github.com/JayWood/content-warning-v3/issues/34)
* Fixed plugin homepage link [#31](https://github.com/JayWood/content-warning-v3/issues/31)
* Removed uninstall hook for now - Options API needs to be updated
* Fixed denial toggle to actually remove denial text if it was once on, but now off.
### 3.6.6
* Fixed CSS issues for background images and css overrides6
### 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)
* 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)
### 3.6.4
* Fixed denial redirects. [Issue #28](https://github.com/JayWood/content-warning-v3/issues/28)
* Fixed multiple undefined index errors on admin
* Changed yes/no on post columns to locked dash-icon, less clutter
* Clean up meta saving logic
* Added @since tags for future development
* Better PHP documentation
* Add /lang directory for I18n
* Update Tested Up To version
* [Development Documentation](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation)
* Passified all PHPcs complaints
### 3.6.3
* Category fix, fixes [#18](https://github.com/JayWood/content-warning-v3/issues/18)
* Alphabetize method names, because why not!?
* Few docblock changes
### 3.6.2
* Dialog re-sizing fixes.
### 3.6.1
* Cookie HOTFIX
### 3.6.0
* Split methods and hooks from main class file, will prevent overhead, also separates admin from front-end.
* Moved to use of cookie.js
* Created API file for methods.
* New filters & actions for developers
* Began development of API file, currently only support JS outputs.
* **NEW** Filters for content outputs, see `inc/api.php` more to come.
* Switched CSS priority, to allow custom css to override bg image and opacity
* Converted sass file to nested sass and uses classes instead of IDs
* [stacyk](https://github.com/stacyk) - Made buttons visible on popup at all times.
* [stacyk](https://github.com/stacyk) - CSS Fixes for new popup.
* New Popup coding, dropped colorbox in favor of my own popup code. ( Less bloat )
* BIG THANKS to Stacy for helping me with some initial CSS issues.