PluginProbe
WANotifier for Forms and Actions / 2.1.3
WANotifier for Forms and Actions v2.1.3
3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 1.0.3 All 66 releases
notifier / views / admin-triggers.php

admin-triggers.php in WANotifier for Forms and Actions 2.1.3, at views/admin-triggers.php

42 lines 981 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Triggers CPT Meta Box
4 *
5 * @package WA_Notifier
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11 global $post_id;
12 ?>
13 <div class="meta-fields">
14 <div class="general-fields">
15 <div>
16 <?php
17 notifier_wp_select(
18 array(
19 'id' => NOTIFIER_PREFIX . 'trigger',
20 'value' => get_post_meta( $post_id, NOTIFIER_PREFIX . 'trigger', true),
21 'label' => 'Select Trigger',
22 'description' => 'Select the trigger when you want to fire a Natification from WANotifier.com.',
23 'options' => Notifier_Notification_Triggers::get_notification_triggers_dropdown()
24 )
25 );
26 ?>
27 </div>
28 <?php
29 $send_to_conditions = array (
30 array (
31 'field' => NOTIFIER_PREFIX . 'trigger',
32 'operator' => '!=',
33 'value' => ''
34 )
35 );
36 ?>
37 <div class="form-field notifier-trigger-merge-tags" data-conditions="<?php echo esc_attr ( json_encode( $send_to_conditions ) ); ?>">
38
39 </div>
40 </div>
41 </div>
42