-
Notifications
You must be signed in to change notification settings - Fork 1
/
push_notifications.php
29 lines (22 loc) · 1.64 KB
/
push_notifications.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div id="ml_push_notifications" class="tabs-panel ml-compact">
<?php if(strlen(wp2android::get_option('ml_pb_app_id')) <= 0 && strlen(wp2android::get_option('ml_pb_secret_key')) <= 0): ?>
<div id="ml_admin_push" style="padding-top:30px">
<p>This page will be accessible once you have <a target='_blank' href="http://www.wp2android.wps.edu.vn/publish/?utm_source=wp-plugin-admin&utm_medium=web&utm_campaign=plugin-admin-push">purchased your app</a> and <a href="./admin.php?page=wp2android_settings&tab=license">entered a valid license key</a>. Note notifications cannot be tested using the preview app, as they will only be available once your app is published.
<br/><br/>
You'll be able to send manual push notification messages to your users, attaching posts and pages to every message. You'll also find here a convenient log of all messages previously sent.</p>
<p>Any questions on push notifications? <a class="ml-intercom" href="mailto:h89uu5zu@incoming.intercom.io">Ask us anything</a>.</p>
</div>
<?php else: ?>
<form method="post" action="<?php echo admin_url('admin.php?page=wp2android_push&tab=notifications'); ?>">
<?php wp_nonce_field('form-push_notifications'); ?>
<h3>Send manual message</h3>
<div id="success-message" class="updated" style="display: none;">Your message has been sent!</div>
<?php ml_push_notification_manual_send(); ?>
<h3>Notification history</h3>
<!-- NOTIFICATIONS LIST -->
<div id="ml_push_notification_history">
<?php ml_push_notification_history_ajax_load(); ?>
</div>
</form>
<?php endif; ?>
</div>