OneSignal – Free Web Push Notifications - Version 2.2.6

Version Description

  • Add missing style sheets that should have been in previous version.
Download this release

Release Info

Developer OneSignal
Plugin Icon 128x128 OneSignal – Free Web Push Notifications
Version 2.2.6
Comparing to
See all releases

Code changes from version 2.2.5 to 2.2.6

Files changed (3) hide show
  1. css/onsignal-amp-style.css +83 -0
  2. onesignal.php +1 -1
  3. readme.txt +5 -1
css/onsignal-amp-style.css ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * The file contains CSS for Subscribe and Unsubscribe button on AMP endpoints which will be enqued only at AMP endpoints.
3
+ *
4
+ /*
5
+ Created on : Jul 14, 2021, 11:57:12 PM
6
+ Author : milind
7
+ */
8
+
9
+ amp-web-push-widget button.subscribe.subscribe, amp-web-push-widget button.unsubscribe {
10
+ margin: 0;
11
+ padding: 0;
12
+ border: 0;
13
+ cursor: pointer;
14
+ outline: none;
15
+ position: fixed;
16
+ bottom: 20px;
17
+ right: 20px;
18
+ z-index: 999;
19
+ background-color: transparent;
20
+ height: 48px;
21
+ width: 48px;
22
+ }
23
+
24
+ amp-web-push-widget button.unsubscribe{
25
+ opacity: 0.5;
26
+ }
27
+
28
+ amp-web-push-widget button.unsubscribe:hover {
29
+ opacity: 1;
30
+ }
31
+
32
+ amp-web-push-widget button.subscribe svg.onesignal-bell-svg, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg {
33
+ width: 100%;
34
+ height: 100%;
35
+ overflow: visible;
36
+ }
37
+
38
+ amp-web-push-widget button.subscribe svg.onesignal-bell-svg .background, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg .background {
39
+ fill: #e54b4d;
40
+ }
41
+
42
+ amp-web-push-widget button.subscribe svg.onesignal-bell-svg .foreground, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg .foreground {
43
+ fill: #ffffff;
44
+ }
45
+
46
+ amp-web-push-widget button.subscribe svg.onesignal-bell-svg .stroke, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg .stroke {
47
+ fill: none;
48
+ stroke: #ffffff;
49
+ stroke-width: 3px;
50
+ stroke-miterlimit: 10;
51
+ }
52
+
53
+ /* Tooltip text */
54
+ amp-web-push-widget button.subscribe .tooltiptext, amp-web-push-widget button.unsubscribe .tooltiptext {
55
+ visibility: hidden;
56
+ min-width: 350px;
57
+ background-color: black;
58
+ color: #fff;
59
+ text-align: center;
60
+ padding: 5px 0;
61
+ border-radius: 6px;
62
+ top: 5px;
63
+ right: 120%;
64
+ position: absolute;
65
+ z-index: 1;
66
+ font-size: 1em;
67
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
68
+ }
69
+
70
+ amp-web-push-widget button.subscribe .tooltiptext::after, amp-web-push-widget button.unsubscribe .tooltiptext::after {
71
+ content: "";
72
+ position: absolute;
73
+ top: 50%;
74
+ left: 100%;
75
+ margin-top: -5px;
76
+ border-width: 5px;
77
+ border-style: solid;
78
+ border-color: transparent transparent transparent black;
79
+ }
80
+
81
+ amp-web-push-widget button.subscribe:hover .tooltiptext, amp-web-push-widget button.unsubscribe:hover .tooltiptext {
82
+ visibility: visible;
83
+ }
onesignal.php CHANGED
@@ -6,7 +6,7 @@ defined('ABSPATH') or die('This page may not be accessed directly.');
6
  * Plugin Name: OneSignal Push Notifications
7
  * Plugin URI: https://onesignal.com/
8
  * Description: Free web push notifications.
9
- * Version: 2.2.5
10
  * Author: OneSignal
11
  * Author URI: https://onesignal.com
12
  * License: MIT
6
  * Plugin Name: OneSignal Push Notifications
7
  * Plugin URI: https://onesignal.com/
8
  * Description: Free web push notifications.
9
+ * Version: 2.2.6
10
  * Author: OneSignal
11
  * Author URI: https://onesignal.com
12
  * License: MIT
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://onesignal.com
4
  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
5
  Requires at least: 3.8
6
  Tested up to: 5.9
7
- Stable tag: 2.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,6 +67,10 @@ HTTPS Setup Video: [youtube https://www.youtube.com/watch?v=BeTZ2KgytC0]
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 2.2.5 =
71
 
72
  - Adds AMP Support. Now works with the official AMP Wordpress Plugin.
4
  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
5
  Requires at least: 3.8
6
  Tested up to: 5.9
7
+ Stable tag: 2.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Changelog ==
69
 
70
+ = 2.2.6 =
71
+
72
+ - Add missing style sheets that should have been in previous version.
73
+
74
  = 2.2.5 =
75
 
76
  - Adds AMP Support. Now works with the official AMP Wordpress Plugin.