diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaa58cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,66 @@ +ChromePhp.php +onesignal-free-web-push-notifications.zip +views/images/settings/ParseToOneSignal.png +.vscode/ + +.map +**/*.map +onesignal-free-push-notifications.zip + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties + +# Created by .ignore support plugin (hsz.mobi) + +.DS_Store + +onesignal-extra.php + +docker-instance-files/* +# Expection to the rule as we need this files to modify plugin upload limits +!uploads.ini diff --git a/onesignal.php b/onesignal.php index f90e3e1..9ea54bc 100644 --- a/onesignal.php +++ b/onesignal.php @@ -6,7 +6,7 @@ * Plugin Name: OneSignal Push Notifications * Plugin URI: https://onesignal.com/ * Description: Free web push notifications. - * Version: 3.0.1 + * Version: 3.0.2 * Author: OneSignal * Author URI: https://onesignal.com * License: MIT @@ -54,4 +54,15 @@ // Initialize V2 admin and public components add_action('init', ['OneSignal_Admin', 'init']); add_action('init', ['OneSignal_Public', 'init']); + add_action('admin_notices', 'migration_notice'); +} + +function migration_notice() { + // Only show the notice on the Plugins page + $screen = get_current_screen(); + if ($screen && $screen->id === 'plugins') { + echo '
+

OneSignal Migration Needed: All OneSignal prompt configurations are moving to OneSignal.com. See the plugin page for more info.

+
'; + } } diff --git a/readme.txt b/readme.txt index 7698050..ceb5b29 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://onesignal.com Tags: push notification, push notifications, desktop notifications, mobile notifications, chrome push, android, android notification, android notifications, android push, desktop notification, firefox, firefox push, mobile, mobile notification, notification, notifications, notify, onesignal, push, push messages, safari, safari push, web push, chrome Requires at least: 3.8 Tested up to: 6.7 -Stable tag: 3.0.1 +Stable tag: 3.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -64,6 +64,9 @@ OneSignal is trusted by over 1.8M+ developers and marketing strategists. We powe == Changelog == += 3.0.2 = +- Adding an admin notice and updated styles to encourage settings migration. + = 3.0.1 = WARNING: this update contains changes that may break specific setups, as detailed below: diff --git a/v2/views/config.php b/v2/views/config.php index 4bf33ba..d0a3c25 100644 --- a/v2/views/config.php +++ b/v2/views/config.php @@ -65,11 +65,15 @@ diff --git a/v2/views/css/site.css b/v2/views/css/site.css index 96807f9..3f570c3 100644 --- a/v2/views/css/site.css +++ b/v2/views/css/site.css @@ -846,7 +846,7 @@ header[class=onesignal] #logo-onesignal { background-color: #3A3DB2; color: white; border: none; - padding: 0.5em 1em; + padding: 1em 1em; font-size: 1.1rem; font-family: "Lato"; font-weight: 500;