OneSignal – Free Web Push Notifications - Version 1.3.0

Version Description

  • Added popup settings to localize prompt text. Updated fonts to render better on Firefox and Safari.
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.3.0

onesignal-admin.php CHANGED
@@ -78,7 +78,15 @@ class OneSignal_Admin {
78
  $onesignal_wp_settings['app_rest_api_key'] = $config['app_rest_api_key'];
79
 
80
  $onesignal_wp_settings['safari_web_id'] = $config['safari_web_id'];
81
-
 
 
 
 
 
 
 
 
82
 
83
  OneSignal::save_onesignal_settings($onesignal_wp_settings);
84
 
@@ -119,7 +127,7 @@ function change_footer_admin() {
119
  wp_enqueue_script( 'jquery.min', plugin_dir_url( __FILE__ ) . 'views/javascript/jquery.min.js');
120
  wp_enqueue_script( 'semantic-ui', plugin_dir_url( __FILE__ ) . 'views/javascript/semantic-ui.js');
121
  wp_enqueue_script( 'intercom', plugin_dir_url( __FILE__ ) . 'views/javascript/intercom.js');
122
- wp_enqueue_script( 'site', plugin_dir_url( __FILE__ ) . 'views/javascript/site.js');
123
 
124
  }
125
 
78
  $onesignal_wp_settings['app_rest_api_key'] = $config['app_rest_api_key'];
79
 
80
  $onesignal_wp_settings['safari_web_id'] = $config['safari_web_id'];
81
+
82
+ $onesignal_wp_settings['prompt_action_message'] = $config['prompt_action_message'];
83
+ $onesignal_wp_settings['prompt_example_notification_title_desktop'] = $config['prompt_example_notification_title_desktop'];
84
+ $onesignal_wp_settings['prompt_example_notification_message_desktop'] = $config['prompt_example_notification_message_desktop'];
85
+ $onesignal_wp_settings['prompt_example_notification_title_mobile'] = $config['prompt_example_notification_title_mobile'];
86
+ $onesignal_wp_settings['prompt_example_notification_message_mobile'] = $config['prompt_example_notification_message_mobile'];
87
+ $onesignal_wp_settings['prompt_example_notification_caption'] = $config['prompt_example_notification_caption'];
88
+ $onesignal_wp_settings['prompt_cancel_button_text'] = $config['prompt_cancel_button_text'];
89
+ $onesignal_wp_settings['prompt_accept_button_text'] = $config['prompt_accept_button_text'];
90
 
91
  OneSignal::save_onesignal_settings($onesignal_wp_settings);
92
 
127
  wp_enqueue_script( 'jquery.min', plugin_dir_url( __FILE__ ) . 'views/javascript/jquery.min.js');
128
  wp_enqueue_script( 'semantic-ui', plugin_dir_url( __FILE__ ) . 'views/javascript/semantic-ui.js');
129
  wp_enqueue_script( 'intercom', plugin_dir_url( __FILE__ ) . 'views/javascript/intercom.js');
130
+ wp_enqueue_script( 'site', plugin_dir_url( __FILE__ ) . 'views/javascript/site-admin.js');
131
 
132
  }
133
 
onesignal-public.php CHANGED
@@ -25,7 +25,7 @@ class OneSignal_Public {
25
  <script>
26
  var OneSignal = OneSignal || [];
27
 
28
- function initOneSignal() {
29
  OneSignal.SERVICE_WORKER_UPDATER_PATH = "OneSignalSDKUpdaterWorker.js.php";
30
  OneSignal.SERVICE_WORKER_PATH = "OneSignalSDKWorker.js.php";
31
  OneSignal.SERVICE_WORKER_PARAM = { scope: '/' };
@@ -60,13 +60,25 @@ class OneSignal_Public {
60
  if (@$onesignal_wp_settings["safari_web_id"]) {
61
  echo "oneSignal_options['safari_web_id'] = \"" . $onesignal_wp_settings["safari_web_id"] . "\";\n";
62
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  ?>
64
 
65
  OneSignal.init(oneSignal_options);
66
- }
67
 
68
  function documentInitOneSignal() {
69
- OneSignal.push(initOneSignal);
70
  var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
71
  var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications', {modalPrompt: true}]); event.preventDefault(); };
72
  for(var i = 0; i < oneSignal_elements.length; i++)
25
  <script>
26
  var OneSignal = OneSignal || [];
27
 
28
+ OneSignal.push( function() {
29
  OneSignal.SERVICE_WORKER_UPDATER_PATH = "OneSignalSDKUpdaterWorker.js.php";
30
  OneSignal.SERVICE_WORKER_PATH = "OneSignalSDKWorker.js.php";
31
  OneSignal.SERVICE_WORKER_PARAM = { scope: '/' };
60
  if (@$onesignal_wp_settings["safari_web_id"]) {
61
  echo "oneSignal_options['safari_web_id'] = \"" . $onesignal_wp_settings["safari_web_id"] . "\";\n";
62
  }
63
+
64
+
65
+ if ($onesignal_wp_settings["subdomain"] != "") {
66
+ echo "oneSignal_options['promptOptions'] = { };\n";
67
+ echo "oneSignal_options['promptOptions']['actionMessage'] = '" . $onesignal_wp_settings["prompt_action_message"] . "';\n";
68
+ echo "oneSignal_options['promptOptions']['exampleNotificationTitleDesktop'] = '" . $onesignal_wp_settings["prompt_example_notification_title_desktop"] . "';\n";
69
+ echo "oneSignal_options['promptOptions']['exampleNotificationMessageDesktop'] = '" . $onesignal_wp_settings["prompt_example_notification_message_desktop"] . "';\n";
70
+ echo "oneSignal_options['promptOptions']['exampleNotificationTitleMobile'] = '" . $onesignal_wp_settings["prompt_example_notification_title_mobile"] . "';\n";
71
+ echo "oneSignal_options['promptOptions']['exampleNotificationMessageMobile'] = '" . $onesignal_wp_settings["prompt_example_notification_message_mobile"] . "';\n";
72
+ echo "oneSignal_options['promptOptions']['exampleNotificationCaption'] = '" . $onesignal_wp_settings["prompt_example_notification_caption"] . "';\n";
73
+ echo "oneSignal_options['promptOptions']['acceptButtonText'] = '" . $onesignal_wp_settings["prompt_accept_button_text"] . "';\n";
74
+ echo "oneSignal_options['promptOptions']['cancelButtonText'] = '" . $onesignal_wp_settings["prompt_cancel_button_text"] . "';\n";
75
+ }
76
  ?>
77
 
78
  OneSignal.init(oneSignal_options);
79
+ });
80
 
81
  function documentInitOneSignal() {
 
82
  var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
83
  var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications', {modalPrompt: true}]); event.preventDefault(); };
84
  for(var i = 0; i < oneSignal_elements.length; i++)
onesignal-settings.php CHANGED
@@ -17,7 +17,15 @@ class OneSignal {
17
  'default_icon' => "",
18
  'default_url' => "",
19
  'app_rest_api_key' => "",
20
- 'safari_web_id' => ""
 
 
 
 
 
 
 
 
21
  );
22
  }
23
  }
17
  'default_icon' => "",
18
  'default_url' => "",
19
  'app_rest_api_key' => "",
20
+ 'safari_web_id' => "",
21
+ 'prompt_action_message' => "",
22
+ 'prompt_example_notification_title_desktop' => "",
23
+ 'prompt_example_notification_message_desktop' => "",
24
+ 'prompt_example_notification_title_mobile' => "",
25
+ 'prompt_example_notification_message_mobile' => "",
26
+ 'prompt_example_notification_caption' => "",
27
+ 'prompt_accept_button_text' => "",
28
+ 'prompt_cancel_button_text' => ""
29
  );
30
  }
31
  }
onesignal.php CHANGED
@@ -2,8 +2,8 @@
2
  /**
3
  * Plugin Name: OneSignal Push Notifications
4
  * Plugin URI: https://onesignal.com/
5
- * Description:
6
- * Version: 1.2.0
7
  * Author: OneSignal
8
  * Author URI: https://onesignal.com
9
  * License: MIT
2
  /**
3
  * Plugin Name: OneSignal Push Notifications
4
  * Plugin URI: https://onesignal.com/
5
+ * Description:
6
+ * Version: 1.3.0
7
  * Author: OneSignal
8
  * Author URI: https://onesignal.com
9
  * License: MIT
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://onesignal.com
4
  Tags: chrome, safari, push, push notifications, safari, chrome push, safari push, notifications, web push, notification, notify, mavericks, firefox push, android, android push, android notifications, mobile notifications, mobile, desktop notifications, gcm, push messages, onesignal
5
  Requires at least: 3.8
6
  Tested up to: 4.3.1
7
- Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -45,6 +45,9 @@ Features:
45
  3. Follow the instructions on the new OneSignal Wordpress menu option to get started.
46
 
47
  == Changelog ==
 
 
 
48
  = 1.2.0 =
49
  - Graphical redesign of the plugin. Much better instructions.
50
 
4
  Tags: chrome, safari, push, push notifications, safari, chrome push, safari push, notifications, web push, notification, notify, mavericks, firefox push, android, android push, android notifications, mobile notifications, mobile, desktop notifications, gcm, push messages, onesignal
5
  Requires at least: 3.8
6
  Tested up to: 4.3.1
7
+ Stable tag: 1.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
45
  3. Follow the instructions on the new OneSignal Wordpress menu option to get started.
46
 
47
  == Changelog ==
48
+ = 1.3.0 =
49
+ - Added popup settings to localize prompt text. Updated fonts to render better on Firefox and Safari.
50
+
51
  = 1.2.0 =
52
  - Graphical redesign of the plugin. Much better instructions.
53
 
views/config.php CHANGED
@@ -555,6 +555,52 @@ if (array_key_exists('app_id', $_POST)) {
555
  <input type="text" name="safari_web_id" placeholder="web.com.example" value="<?php echo @$onesignal_wp_settings['safari_web_id']; ?>">
556
  </div>
557
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  <div class="ui dividing header">
559
  <i class="alarm outline icon"></i>
560
  <div class="content">
555
  <input type="text" name="safari_web_id" placeholder="web.com.example" value="<?php echo @$onesignal_wp_settings['safari_web_id']; ?>">
556
  </div>
557
  </div>
558
+ <?php if (!empty($onesignal_wp_settings['subdomain'])): ?>
559
+ <div class="ui dividing header">
560
+ <i class="external icon"></i>
561
+ <div class="content">
562
+ HTTP Popup Settings
563
+ </div>
564
+ </div>
565
+ <div class="ui borderless shadowless segment" style="position: relative;">
566
+ <p class="lato">These settings modify the popup message and button text for all users. Use this to localize the popup to your language. All fields here are limited in the length of text they can display; use the Preview Popup button to preview your changes.</p>
567
+ <div class="field">
568
+ <button class="ui gray button" type="button" onclick="showHttpPopup()">Preview Popup</button>
569
+ </div>
570
+ <div class="field">
571
+ <label>Action Message</label>
572
+ <input type="text" name="prompt_action_message" placeholder="wants to show notifications:" value="<?php echo @$onesignal_wp_settings['prompt_action_message']; ?>">
573
+ </div>
574
+ <div class="field">
575
+ <label>Example Notification Title (Desktop)</label>
576
+ <input type="text" name="prompt_example_notification_title_desktop" placeholder="This is an example notification" value="<?php echo @$onesignal_wp_settings['prompt_example_notification_title_desktop']; ?>">
577
+ </div>
578
+ <div class="field">
579
+ <label>Example Notification Message (Desktop)</label>
580
+ <input type="text" name="prompt_example_notification_message_desktop" placeholder="Notifications will appear on your desktop" value="<?php echo @$onesignal_wp_settings['prompt_example_notification_message_desktop']; ?>">
581
+ </div>
582
+ <div class="field">
583
+ <label>Example Notification Title (Mobile)</label>
584
+ <input type="text" name="prompt_example_notification_title_mobile" placeholder="Example notification" value="<?php echo @$onesignal_wp_settings['prompt_example_notification_title_mobile']; ?>">
585
+ </div>
586
+ <div class="field">
587
+ <label>Example Notification Message (Mobile)</label>
588
+ <input type="text" name="prompt_example_notification_message_mobile" placeholder="Notifications will appear on your device" value="<?php echo @$onesignal_wp_settings['prompt_example_notification_message_mobile']; ?>">
589
+ </div>
590
+ <div class="field">
591
+ <label>Example Notification Caption</label>
592
+ <input type="text" name="prompt_example_notification_caption" placeholder="(you can unsubscribe anytime)" value="<?php echo @$onesignal_wp_settings['prompt_example_notification_caption']; ?>">
593
+ </div>
594
+ <div class="field">
595
+ <label>Accept Button Text</label>
596
+ <input type="text" name="prompt_accept_button_text" placeholder="CONTINUE" value="<?php echo @$onesignal_wp_settings['prompt_accept_button_text']; ?>">
597
+ </div>
598
+ <div class="field">
599
+ <label>Cancel Button Text</label>
600
+ <input type="text" name="prompt_cancel_button_text" placeholder="NO THANKS" value="<?php echo @$onesignal_wp_settings['prompt_cancel_button_text']; ?>">
601
+ </div>
602
+ </div>
603
+ <?php endif; ?>
604
  <div class="ui dividing header">
605
  <i class="alarm outline icon"></i>
606
  <div class="content">
views/css/site.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700|Open+Sans:300,400,500,600,700");
2
  @font-face {
3
  font-family: "Lusitana";
4
  src: url("lusitana/Lusitana-Regular-OTF.ttf") format("opentype");
@@ -331,6 +331,10 @@ html {
331
  color: rgba(0, 0, 0, 0.87);
332
  font-smoothing: antialiased; }
333
 
 
 
 
 
334
  /*******************************
335
  Headers
336
  *******************************/
@@ -532,20 +536,30 @@ code {
532
  background-color: transparent; }
533
 
534
  em {
535
- font-family: "LusitanaItalic"; }
 
536
  em strong {
537
- font-family: 'LusitanaItalicBold'; }
 
 
538
 
539
  strong {
540
- font-family: "LusitanaBold"; }
 
 
541
  strong em {
542
- font-family: 'LusitanaItalicBold'; }
 
 
543
 
544
  p {
545
  font-size: 1.3rem;
546
  color: #333333; }
547
  p + dl {
548
  padding-top: 1em; }
 
 
 
549
 
550
  ol, ul {
551
  font-size: 1.3rem;
@@ -587,7 +601,8 @@ dl {
587
 
588
  label {
589
  font-family: 'Lato';
590
- font-size: 1.2rem !important; }
 
591
  label .alternate {
592
  margin: 0 0.85em;
593
  font-weight: 400; }
1
+ @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700|Open+Sans:300,400,500,600,700|Lato:300,400,700");
2
  @font-face {
3
  font-family: "Lusitana";
4
  src: url("lusitana/Lusitana-Regular-OTF.ttf") format("opentype");
331
  color: rgba(0, 0, 0, 0.87);
332
  font-smoothing: antialiased; }
333
 
334
+ * {
335
+ -webkit-font-smoothing: antialiased;
336
+ -moz-osx-font-smoothing: grayscale; }
337
+
338
  /*******************************
339
  Headers
340
  *******************************/
536
  background-color: transparent; }
537
 
538
  em {
539
+ font-family: "LusitanaItalic";
540
+ font-style: normal; }
541
  em strong {
542
+ font-family: 'LusitanaItalicBold';
543
+ font-style: normal;
544
+ font-weight: 100; }
545
 
546
  strong {
547
+ font-family: "LusitanaBold";
548
+ font-style: normal;
549
+ font-weight: 100; }
550
  strong em {
551
+ font-family: 'LusitanaItalicBold';
552
+ font-style: normal;
553
+ font-weight: 100; }
554
 
555
  p {
556
  font-size: 1.3rem;
557
  color: #333333; }
558
  p + dl {
559
  padding-top: 1em; }
560
+ p.lato {
561
+ font-family: 'Lato';
562
+ font-size: 1.2rem; }
563
 
564
  ol, ul {
565
  font-size: 1.3rem;
601
 
602
  label {
603
  font-family: 'Lato';
604
+ font-size: 1.2rem !important;
605
+ font-weight: 500; }
606
  label .alternate {
607
  margin: 0 0.85em;
608
  font-weight: 400; }
views/css/site.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AAoBQ,gHAAwG;ACpBhH,UAKC;EAJG,WAAW,EAAE,UAAU;EACvB,GAAG,EAAE,2DAA2D;EAChE,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,MAAM;AAEvB,UAKC;EAJG,WAAW,EAAE,cAAc;EAC3B,GAAG,EAAE,wDAAwD;EAC7D,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,MAAM;AAEvB,UAKC;EAJG,WAAW,EAAE,gBAAgB;EAC7B,GAAG,EAAE,0DAA0D;EAC/D,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,MAAM;AAEvB,UAKC;EAJG,WAAW,EAAE,oBAAoB;EACjC,GAAG,EAAE,8DAA8D;EACnE,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,MAAM;;;;;;;ACwBvB,QAAS;EACL,OAAO,EAzCO,GAAG;EA0CjB,MAAM,EAAE,MAAM;EAEd,WAAG;IACC,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,aAAa,EAAE,KAAK;IACpB,SAAS,EAAE,GAAG;IACd,WAAW,EA7CD,+CAA+C;IA8CzD,WAAW,EAAE,GAAG;IAChB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,MAAM;IACtB,YAAY,EAAE,MAAM;EAGxB,UAAE;IACE,WAAW,EArDD,+CAA+C;IAsDzD,WAAW,EAAE,GAAG;IAChB,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,OAAO;EAGlB,qBAAa;IACT,aAAa,EAAE,CAAC;EAGpB,aAAK;IACD,aAAa,EAAE,GAAG;EAGtB,mBAAa;IACT,UAAU,EAAE,IAAI;EAGpB,gBAAU;IACN,iBAAiB,EAlFD,OAAO;IAmFvB,MAAM,EAAE,iBAAgC;IACxC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EAAE,OAAO;MACd,MAAM,EAAE,OAAO;;AAK3B,KAAM;EACF,WAAW,EAAE,MAAM;EACnB,SAAS,EAAE,iBAAiB;EAE5B,gBAAW;IACP,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,GAAG;;AAIxB,QAAS;EACL,WAAW,EElYG,+CAA+C;;AFqYjE,KAAM;EACF,OAAO,EAAE,gBAAgB;EACzB,UAAU,EAAE,cAAc;EAC1B,aAAa,EAAE,gBAAgB;;AAGnC,cAAe;EACX,WAAW,EAAE,GAAG;EAChB,WAAW,EAAE,GAAG;EAEhB,iBAAG;IACC,cAAc,EAAE,SAAS;IACzB,WAAW,EAAE,GAAG;IAChB,UAAU,EAAE,CAAC;;AAIrB,YAAa;EACT,QAAQ,EAAE,QAAQ;EAClB,IAAI,EAAE,KAAK;EACX,GAAG,EAAE,KAAK;EAEV,sBAAY;IACR,gBAAgB,EAAE,6BAA6B;;AAIvD,SAAU;EACN,WAAW,EAAE,MAAM;;AAInB,aAAc;EACV,WAAW,EAAE,GAAG;;AAIxB,+EAAgF;EAC5E,MAAM,EAAE,KAAK;;AAGjB,UAAW;EACP,MAAM,EAAE,kBAAkB",
4
- "sources": ["site.scss","lusitana.scss","callout.scss","link.scss"],
5
- "names": [],
6
- "file": "site.css"
7
- }
 
 
 
 
 
 
 
views/css/site.scss DELETED
@@ -1,443 +0,0 @@
1
- @import "lusitana";
2
- @import "link";
3
- @import "callout";
4
-
5
- /*!
6
- * # Semantic UI 2.1.3 - Site
7
- * http://github.com/semantic-org/semantic-ui/
8
- *
9
- *
10
- * Copyright 2015 Contributors
11
- * Released under the MIT license
12
- * http://opensource.org/licenses/MIT
13
- *
14
- */
15
-
16
-
17
- /*******************************
18
- Page
19
- *******************************/
20
-
21
- @import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700|Open+Sans:300,400,500,600,700');
22
- html,
23
- body {
24
- height: 100%;
25
- }
26
- html {
27
- font-size: 14px;
28
- }
29
- #wpwrap {
30
- background-color: white;
31
- }
32
- #wpfooter {
33
- visibility: hidden;
34
- }
35
- .site.container {
36
- position: relative;
37
- margin: 0;
38
- padding: 0;
39
- margin-top: 1rem;
40
- overflow-x: hidden;
41
- min-width: 320px;
42
- background-color: white;
43
- font-family: 'Lusitana', 'Raleway', sans-serif;
44
- line-height: 1.4285em;
45
- color: rgba(0, 0, 0, 0.87);
46
- font-smoothing: antialiased;
47
- }
48
-
49
-
50
- /*******************************
51
- Headers
52
- *******************************/
53
-
54
- h1,
55
- h2,
56
- h3,
57
- h4,
58
- h5 {
59
- line-height: 1.2857em;
60
- margin: calc(2rem - 0.14285em ) 0em 1rem;
61
- font-weight: 600;
62
- padding: 0;
63
- font-family: $font-sourcesans;
64
- }
65
- h1 {
66
- min-height: 1rem;
67
- font-size: 2rem;
68
- }
69
- h2 {
70
- font-size: 1.714rem;
71
- }
72
- h3 {
73
- font-size: 1.28rem;
74
- }
75
- h4 {
76
- font-size: 1.071rem;
77
- }
78
- h5 {
79
- font-size: 1rem;
80
- }
81
- h1:first-child,
82
- h2:first-child,
83
- h3:first-child,
84
- h4:first-child,
85
- h5:first-child {
86
- margin-top: 0em;
87
- }
88
- h1:last-child,
89
- h2:last-child,
90
- h3:last-child,
91
- h4:last-child,
92
- h5:last-child {
93
- margin-bottom: 0em;
94
- }
95
-
96
-
97
- /*******************************
98
- Text
99
- *******************************/
100
-
101
- p {
102
- margin: 0em 0em 1em;
103
- line-height: 1.4285em;
104
- }
105
- p:first-child {
106
- margin-top: 0em;
107
- }
108
- p:last-child {
109
- margin-bottom: 0em;
110
- }
111
-
112
- /*-------------------
113
- Links
114
- --------------------*/
115
-
116
- a {
117
- color: #4183c4;
118
- text-decoration: none;
119
- }
120
- a:hover {
121
- color: #1e70bf;
122
- text-decoration: none;
123
- }
124
-
125
-
126
- /*******************************
127
- Highlighting
128
- *******************************/
129
-
130
-
131
- /* Site */
132
- ::-webkit-selection {
133
- background-color: #cce2ff;
134
- color: rgba(0, 0, 0, 0.87);
135
- }
136
- ::-moz-selection {
137
- background-color: #cce2ff;
138
- color: rgba(0, 0, 0, 0.87);
139
- }
140
- ::selection {
141
- background-color: #cce2ff;
142
- color: rgba(0, 0, 0, 0.87);
143
- }
144
-
145
- /* Form */
146
- textarea::-webkit-selection,
147
- input::-webkit-selection {
148
- background-color: rgba(100, 100, 100, 0.4);
149
- color: rgba(0, 0, 0, 0.87);
150
- }
151
- textarea::-moz-selection,
152
- input::-moz-selection {
153
- background-color: rgba(100, 100, 100, 0.4);
154
- color: rgba(0, 0, 0, 0.87);
155
- }
156
- textarea::selection,
157
- input::selection {
158
- background-color: rgba(100, 100, 100, 0.4);
159
- color: rgba(0, 0, 0, 0.87);
160
- }
161
-
162
-
163
- /*******************************
164
- Global Overrides
165
- *******************************/
166
-
167
-
168
-
169
- /*******************************
170
- Site Overrides
171
- *******************************/
172
-
173
- $header-height: 100px;
174
- $tab-height: 50px;
175
- $container-width: 70px;
176
- $dt-height: 35px;
177
- $dt-margin: 2em;
178
- $color-red: #e54d4a;
179
- $color-text: rgb(51, 51, 51);
180
-
181
- #wpcontent {
182
- padding-left: 0 !important;
183
- }
184
-
185
- .stackable.menu {
186
- padding-top: 0;
187
- }
188
-
189
- .ui.segment {
190
- padding-top: 0.5em;
191
- &.special {
192
- margin-left: -0.9em;
193
- margin-right: -0.90em;
194
- }
195
- &.padded {
196
- padding: 2em !important;
197
- }
198
- }
199
-
200
- .ui.menu {
201
- font-size: 1.2rem;
202
-
203
- .item {
204
- font-family: 'Open Sans', sans-serif;
205
- font-weight: 400;
206
-
207
- &.active {
208
- font-weight: 600 !important;
209
- }
210
- }
211
- }
212
-
213
- .debug {
214
- border: 1px solid magenta !important;
215
- }
216
-
217
- .borderless {
218
- border: none !important;
219
- }
220
-
221
- .bordered {
222
- border: unset !important;
223
- }
224
-
225
- .pull-left {
226
- float: left;
227
- }
228
-
229
- .pull-right {
230
- float: right;
231
- }
232
-
233
- .shadowless {
234
- box-shadow: none !important;
235
- }
236
-
237
- .shadowed {
238
- box-shadow: unset !important;
239
- }
240
-
241
- .img-responsive {
242
- display: block;
243
- max-width: 100%; // Part 1: Set a maximum relative to the parent
244
- height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
245
- }
246
-
247
- .marginless {
248
- margin: 0 !important;
249
- }
250
-
251
- .paddingless {
252
- padding: 0 !important;
253
- }
254
-
255
- .relative {
256
- position: relative;
257
- }
258
-
259
- .small-caps {
260
- text-transform: uppercase;
261
- font-size: 0.85rem;
262
- }
263
-
264
- .smaller {
265
- font-size: 0.85rem;
266
- }
267
-
268
- header {
269
- background: url('https://onesignal.com/assets/common/bg_gray.png');
270
- padding-top: $container-width / 2;
271
- padding-bottom: $container-width / 1.75;
272
- box-shadow: inset 0 -7px 9px -7px rgba(0,0,0,0.4);
273
- }
274
-
275
- .logo {
276
- &.onesignal {
277
- background: url('https://onesignal.com/assets/logo_onesignal_white.svg');
278
- background-repeat: no-repeat;
279
- background-size: 100% 100%;
280
- }
281
- }
282
-
283
- code {
284
- background: rgba($color-text, 0.05);
285
- padding: 0.25em;
286
- border-radius: 4px;
287
- font-size: 1.1rem;
288
-
289
- strong, em {
290
- font-family: monospace;
291
- }
292
-
293
- &.massive {
294
- font-size: 1.3rem;
295
- }
296
- }
297
-
298
- .segment {
299
- img {
300
- margin: 1em auto;
301
-
302
- & + p {
303
- margin-top: 3em;
304
- }
305
- }
306
- }
307
-
308
- .alternate {
309
- color: lighten($color-text, 40%) !important;
310
- background-color: transparent;
311
- }
312
-
313
- em {
314
- font-family: "LusitanaItalic";
315
-
316
- strong {
317
- font-family: 'LusitanaItalicBold';
318
- }
319
- }
320
-
321
- strong {
322
- font-family: "LusitanaBold";
323
-
324
- em {
325
- font-family: 'LusitanaItalicBold';
326
- }
327
- }
328
-
329
- p {
330
- font-size: 1.3rem;
331
- color:$color-text;
332
-
333
- & + dl {
334
- padding-top: 1em;
335
- }
336
- }
337
-
338
- ol,ul {
339
- font-size: 1.3rem;
340
- line-height: 1.4285em;
341
- color:$color-text;
342
- list-style: initial !important;
343
-
344
- li {
345
- font-size: inherit;
346
- line-height: inherit;
347
- margin: 0.5em 0;
348
- }
349
- }
350
-
351
- dl {
352
- margin: 0;
353
-
354
- dd {
355
- color:$color-text;
356
- padding-bottom: $dt-margin;
357
- padding-top: 0.22em;
358
- padding-left: 1em;
359
- }
360
-
361
- dt {
362
- padding-bottom: $dt-margin;
363
- border: 1px solid lighten($color-text, 30%);
364
- text-align: center;
365
- line-height: $dt-height - 1px;
366
- font-family: 'Open Sans', sans-serif;
367
- font-weight: 600;
368
- border-radius: 50%;
369
- color: $color-text;
370
- float: left;
371
- width: $dt-height;
372
- height: $dt-height;
373
- vertical-align: middle;
374
-
375
- &.unstyled {
376
- padding: initial;
377
- border: initial;
378
- text-align: initial;
379
- border-radius: initial;
380
- width: initial;
381
- height: initial;
382
- }
383
- }
384
- }
385
-
386
- label {
387
- font-family: 'Lato';
388
- font-size: 1.2rem !important;
389
-
390
- .alternate {
391
- margin: 0 0.85em;
392
- font-weight: 400;
393
- }
394
- }
395
-
396
- .divider {
397
- font-family: $font-sourcesans;
398
- }
399
-
400
- .grid {
401
- padding: 1em 0 !important;
402
- margin-top: 1em !important;
403
- margin-bottom: 1.5em !important;
404
- }
405
-
406
- .piled.segment {
407
- padding-top: 1em;
408
- font-weight: 400;
409
-
410
- h3 {
411
- text-transform: uppercase;
412
- font-weight: 600;
413
- margin-top: 0;
414
- }
415
- }
416
-
417
- .pinned.icon {
418
- position: absolute;
419
- left: 0.5em;
420
- top: 0.5em;
421
-
422
- &.lightgrey {
423
- background-color: rgba(0, 0, 0, 0.1) !important;
424
- }
425
- }
426
-
427
- .ui.popup {
428
- font-family: 'Lato';
429
- }
430
-
431
- i {
432
- &[role=popup] {
433
- margin-left: 1em;
434
- }
435
- }
436
-
437
- .wp-core-ui .button, .wp-core-ui .button-primary, .wp-core-ui .button-secondary {
438
- height: unset;
439
- }
440
-
441
- .ui.button {
442
- height: initial !important;
443
- }
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
 
 
1
+ $(function() {
2
+ $('.site .menu .item').tab();
3
+ $('form[role="configuration"] [type=checkbox]').checkbox();
4
+ $('form[role="configuration"] [role=popup]').popup({
5
+ hoverable: true,
6
+ position: 'right center'
7
+ });
8
+ $('.ui.sidebar')
9
+ .sidebar('toggle')
10
+ ;
11
+ });
12
+
13
+ function activateSetupTab(tab) {
14
+ $('.menu .item').tab('change tab', tab);
15
+ $('body').scrollTop(0);
16
+ }
17
+
18
+ function showSupportMessage(type) {
19
+ var message = "";
20
+ if (type === "not_sure_protocol") {
21
+ message = "Hello, I'm trying to set up the WordPress plugin. I need to enter a Site URL into my platform config, but I'm not sure whether I should use HTTP or HTTPS?";
22
+ } else if (type == 'chrome-push-settings') {
23
+ message = "Hello, I'm having some trouble configuring Chrome push settings from the WordPress plugin guide.";
24
+ } else if (type == 'safari-push-settings') {
25
+ message = "Hello, I'm having some trouble configuring Safari push settings from the WordPress plugin guide.";
26
+ }
27
+ Intercom('showNewMessage', message);
28
+ }
29
+
30
+
31
+ function showHttpPopup() {
32
+ subdomain = $('[name=subdomain]').val();
33
+ message_localization_opts = {
34
+ actionMessage: $('[name=prompt_action_message]').val(),
35
+ exampleNotificationTitleDesktop: $('[name=prompt_example_notification_title_desktop]').val(),
36
+ exampleNotificationMessageDesktop: $('[name=prompt_example_notification_message_desktop]').val(),
37
+ exampleNotificationTitleMobile: $('[name=prompt_example_notification_title_mobile]').val(),
38
+ exampleNotificationMessageMobile: $('[name=prompt_example_notification_message_mobile]').val(),
39
+ exampleNotificationCaption: $('[name=prompt_example_notification_caption]').val(),
40
+ acceptButtonText: $('[name=prompt_accept_button_text]').val(),
41
+ cancelButtonText: $('[name=prompt_cancel_button_text]').val()
42
+ };
43
+ var message_localization_opts_str = '';
44
+ if (message_localization_opts) {
45
+ var message_localization_params = ['actionMessage',
46
+ 'exampleNotificationTitleDesktop',
47
+ 'exampleNotificationMessageDesktop',
48
+ 'exampleNotificationTitleMobile',
49
+ 'exampleNotificationMessageMobile',
50
+ 'exampleNotificationCaption',
51
+ 'acceptButtonText',
52
+ 'cancelButtonText'];
53
+ for (var i = 0; i < message_localization_params.length; i++) {
54
+ var key = message_localization_params[i];
55
+ var value = message_localization_opts[key];
56
+ var encoded_value = encodeURIComponent(value);
57
+ if (value) {
58
+ message_localization_opts_str += '&' + key + '=' + encoded_value;
59
+ }
60
+ }
61
+ }
62
+ var domainPrefix = 'https://' + subdomain + '.onesignal.com/sdks/initOneSignalHttp';
63
+ if (window.popupPreviewWindow) {
64
+ window.popupPreviewWindow.close();
65
+ }
66
+ window.popupPreviewWindow = window.open(domainPrefix + "?" + message_localization_opts_str, "_blank", 'scrollbars=yes, width=' + 550 + ', height=' + 480 + ', top=' + 0 + ', left=' + 0);
67
+
68
+ if (popupPreviewWindow)
69
+ popupPreviewWindow.focus();
70
+ }