@@ -14,37 +14,37 @@ |
||
14 | 14 | class About_Admin_Page_Init extends EE_Admin_Page_Init |
15 | 15 | { |
16 | 16 | |
17 | - public function __construct() |
|
18 | - { |
|
19 | - // define some events related constants |
|
20 | - define('EE_ABOUT_PG_SLUG', 'espresso_about'); |
|
21 | - define('EE_ABOUT_LABEL', __('About', 'event_espresso')); |
|
22 | - define('EE_ABOUT_ADMIN', EE_ADMIN_PAGES . 'about' . DS); |
|
23 | - define('EE_ABOUT_ADMIN_URL', admin_url('admin.php?page=' . EE_ABOUT_PG_SLUG)); |
|
24 | - define('EE_ABOUT_TEMPLATE_PATH', EE_ABOUT_ADMIN . 'templates' . DS); |
|
25 | - define('EE_ABOUT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'about/assets/'); |
|
26 | - parent::__construct(); |
|
27 | - } |
|
17 | + public function __construct() |
|
18 | + { |
|
19 | + // define some events related constants |
|
20 | + define('EE_ABOUT_PG_SLUG', 'espresso_about'); |
|
21 | + define('EE_ABOUT_LABEL', __('About', 'event_espresso')); |
|
22 | + define('EE_ABOUT_ADMIN', EE_ADMIN_PAGES . 'about' . DS); |
|
23 | + define('EE_ABOUT_ADMIN_URL', admin_url('admin.php?page=' . EE_ABOUT_PG_SLUG)); |
|
24 | + define('EE_ABOUT_TEMPLATE_PATH', EE_ABOUT_ADMIN . 'templates' . DS); |
|
25 | + define('EE_ABOUT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'about/assets/'); |
|
26 | + parent::__construct(); |
|
27 | + } |
|
28 | 28 | |
29 | - protected function _set_init_properties() |
|
30 | - { |
|
31 | - $this->label = __('About Event Espresso', 'event_espresso'); |
|
32 | - } |
|
29 | + protected function _set_init_properties() |
|
30 | + { |
|
31 | + $this->label = __('About Event Espresso', 'event_espresso'); |
|
32 | + } |
|
33 | 33 | |
34 | - protected function _set_menu_map() |
|
35 | - { |
|
36 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
37 | - array( |
|
38 | - 'menu_group' => 'extras', |
|
39 | - 'menu_order' => 40, |
|
40 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
41 | - 'parent_slug' => 'espresso_events', |
|
42 | - 'menu_slug' => 'espresso_about', |
|
43 | - 'menu_label' => EE_ABOUT_LABEL, |
|
44 | - 'capability' => 'manage_options', |
|
45 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
46 | - 'admin_init_page' => $this, |
|
47 | - ) |
|
48 | - ); |
|
49 | - } |
|
34 | + protected function _set_menu_map() |
|
35 | + { |
|
36 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
37 | + array( |
|
38 | + 'menu_group' => 'extras', |
|
39 | + 'menu_order' => 40, |
|
40 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
41 | + 'parent_slug' => 'espresso_events', |
|
42 | + 'menu_slug' => 'espresso_about', |
|
43 | + 'menu_label' => EE_ABOUT_LABEL, |
|
44 | + 'capability' => 'manage_options', |
|
45 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
46 | + 'admin_init_page' => $this, |
|
47 | + ) |
|
48 | + ); |
|
49 | + } |
|
50 | 50 | } |
@@ -19,10 +19,10 @@ |
||
19 | 19 | // define some events related constants |
20 | 20 | define('EE_ABOUT_PG_SLUG', 'espresso_about'); |
21 | 21 | define('EE_ABOUT_LABEL', __('About', 'event_espresso')); |
22 | - define('EE_ABOUT_ADMIN', EE_ADMIN_PAGES . 'about' . DS); |
|
23 | - define('EE_ABOUT_ADMIN_URL', admin_url('admin.php?page=' . EE_ABOUT_PG_SLUG)); |
|
24 | - define('EE_ABOUT_TEMPLATE_PATH', EE_ABOUT_ADMIN . 'templates' . DS); |
|
25 | - define('EE_ABOUT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'about/assets/'); |
|
22 | + define('EE_ABOUT_ADMIN', EE_ADMIN_PAGES.'about'.DS); |
|
23 | + define('EE_ABOUT_ADMIN_URL', admin_url('admin.php?page='.EE_ABOUT_PG_SLUG)); |
|
24 | + define('EE_ABOUT_TEMPLATE_PATH', EE_ABOUT_ADMIN.'templates'.DS); |
|
25 | + define('EE_ABOUT_ASSETS_URL', EE_ADMIN_PAGES_URL.'about/assets/'); |
|
26 | 26 | parent::__construct(); |
27 | 27 | } |
28 | 28 |
@@ -15,105 +15,105 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
23 | - 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
24 | - 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
|
25 | - 'options' => array( |
|
26 | - 'position' => array( |
|
27 | - 'target' => 'mouse', |
|
28 | - ), |
|
29 | - ), |
|
30 | - ), |
|
31 | - 1 => array( |
|
32 | - 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
33 | - 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
34 | - 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
|
35 | - 'options' => array( |
|
36 | - 'position' => array( |
|
37 | - 'target' => 'mouse', |
|
38 | - ), |
|
39 | - ), |
|
40 | - ), |
|
41 | - 2 => array( |
|
42 | - 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
43 | - 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
44 | - 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
|
45 | - 'options' => array( |
|
46 | - 'position' => array( |
|
47 | - 'target' => 'mouse', |
|
48 | - ), |
|
49 | - ), |
|
50 | - ), |
|
51 | - 3 => array( |
|
52 | - 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
53 | - 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
54 | - 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
|
55 | - 'options' => array( |
|
56 | - 'position' => array( |
|
57 | - 'target' => 'mouse', |
|
58 | - ), |
|
59 | - ), |
|
60 | - ), |
|
61 | - 4 => array( |
|
62 | - 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
63 | - 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
64 | - 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
|
65 | - 'options' => array( |
|
66 | - 'position' => array( |
|
67 | - 'target' => 'mouse', |
|
68 | - ), |
|
69 | - ), |
|
70 | - ), |
|
71 | - 5 => array( |
|
72 | - 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
73 | - 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
74 | - 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
|
75 | - 'options' => array( |
|
76 | - 'position' => array( |
|
77 | - 'target' => 'mouse', |
|
78 | - ), |
|
79 | - ), |
|
80 | - ), |
|
81 | - 6 => array( |
|
82 | - 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
83 | - 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
84 | - 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
|
85 | - 'options' => array( |
|
86 | - 'position' => array( |
|
87 | - 'target' => 'mouse', |
|
88 | - ), |
|
89 | - ), |
|
90 | - ), |
|
91 | - ); |
|
92 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
23 | + 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
24 | + 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
|
25 | + 'options' => array( |
|
26 | + 'position' => array( |
|
27 | + 'target' => 'mouse', |
|
28 | + ), |
|
29 | + ), |
|
30 | + ), |
|
31 | + 1 => array( |
|
32 | + 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
33 | + 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
34 | + 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
|
35 | + 'options' => array( |
|
36 | + 'position' => array( |
|
37 | + 'target' => 'mouse', |
|
38 | + ), |
|
39 | + ), |
|
40 | + ), |
|
41 | + 2 => array( |
|
42 | + 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
43 | + 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
44 | + 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
|
45 | + 'options' => array( |
|
46 | + 'position' => array( |
|
47 | + 'target' => 'mouse', |
|
48 | + ), |
|
49 | + ), |
|
50 | + ), |
|
51 | + 3 => array( |
|
52 | + 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
53 | + 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
54 | + 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
|
55 | + 'options' => array( |
|
56 | + 'position' => array( |
|
57 | + 'target' => 'mouse', |
|
58 | + ), |
|
59 | + ), |
|
60 | + ), |
|
61 | + 4 => array( |
|
62 | + 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
63 | + 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
64 | + 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
|
65 | + 'options' => array( |
|
66 | + 'position' => array( |
|
67 | + 'target' => 'mouse', |
|
68 | + ), |
|
69 | + ), |
|
70 | + ), |
|
71 | + 5 => array( |
|
72 | + 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
73 | + 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
74 | + 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
|
75 | + 'options' => array( |
|
76 | + 'position' => array( |
|
77 | + 'target' => 'mouse', |
|
78 | + ), |
|
79 | + ), |
|
80 | + ), |
|
81 | + 6 => array( |
|
82 | + 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
83 | + 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
84 | + 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
|
85 | + 'options' => array( |
|
86 | + 'position' => array( |
|
87 | + 'target' => 'mouse', |
|
88 | + ), |
|
89 | + ), |
|
90 | + ), |
|
91 | + ); |
|
92 | + } |
|
93 | 93 | |
94 | 94 | |
95 | - /** |
|
96 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
97 | - * |
|
98 | - * @param EEM_Message constant $status What status is set (by class) |
|
99 | - * @return string The status legend with the related status highlighted |
|
100 | - */ |
|
101 | - private function _message_status_legend($status) |
|
102 | - { |
|
95 | + /** |
|
96 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
97 | + * |
|
98 | + * @param EEM_Message constant $status What status is set (by class) |
|
99 | + * @return string The status legend with the related status highlighted |
|
100 | + */ |
|
101 | + private function _message_status_legend($status) |
|
102 | + { |
|
103 | 103 | |
104 | - $status_array = array( |
|
105 | - 'sent_status' => EEM_Message::status_sent, |
|
106 | - 'idle_status' => EEM_Message::status_idle, |
|
107 | - 'failed_status' => EEM_Message::status_failed, |
|
108 | - 'resend_status' => EEM_Message::status_resend, |
|
109 | - 'incomplete_status' => EEM_Message::status_incomplete, |
|
110 | - 'retry_status' => EEM_Message::status_retry, |
|
111 | - ); |
|
104 | + $status_array = array( |
|
105 | + 'sent_status' => EEM_Message::status_sent, |
|
106 | + 'idle_status' => EEM_Message::status_idle, |
|
107 | + 'failed_status' => EEM_Message::status_failed, |
|
108 | + 'resend_status' => EEM_Message::status_resend, |
|
109 | + 'incomplete_status' => EEM_Message::status_incomplete, |
|
110 | + 'retry_status' => EEM_Message::status_retry, |
|
111 | + ); |
|
112 | 112 | |
113 | - if (defined('WP_DEBUG') && WP_DEBUG) { |
|
114 | - $status_array['debug_only_status'] = EEM_Message::status_debug_only; |
|
115 | - } |
|
113 | + if (defined('WP_DEBUG') && WP_DEBUG) { |
|
114 | + $status_array['debug_only_status'] = EEM_Message::status_debug_only; |
|
115 | + } |
|
116 | 116 | |
117 | - return EEH_Template::status_legend($status_array, $status); |
|
118 | - } |
|
117 | + return EEH_Template::status_legend($status_array, $status); |
|
118 | + } |
|
119 | 119 | } |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->_qtipsa = array( |
21 | 21 | 0 => array( |
22 | - 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
23 | - 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
22 | + 'content_id' => 'message_status-'.EEM_Message::status_sent, |
|
23 | + 'target' => '.msg-status-'.EEM_Message::status_sent, |
|
24 | 24 | 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
25 | 25 | 'options' => array( |
26 | 26 | 'position' => array( |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | ), |
30 | 30 | ), |
31 | 31 | 1 => array( |
32 | - 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
33 | - 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
32 | + 'content_id' => 'message_status-'.EEM_Message::status_idle, |
|
33 | + 'target' => '.msg-status-'.EEM_Message::status_idle, |
|
34 | 34 | 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
35 | 35 | 'options' => array( |
36 | 36 | 'position' => array( |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | ), |
40 | 40 | ), |
41 | 41 | 2 => array( |
42 | - 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
43 | - 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
42 | + 'content_id' => 'message_status-'.EEM_Message::status_failed, |
|
43 | + 'target' => '.msg-status-'.EEM_Message::status_failed, |
|
44 | 44 | 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
45 | 45 | 'options' => array( |
46 | 46 | 'position' => array( |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | 3 => array( |
52 | - 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
53 | - 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
52 | + 'content_id' => 'message_status-'.EEM_Message::status_resend, |
|
53 | + 'target' => '.msg-status-'.EEM_Message::status_resend, |
|
54 | 54 | 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
55 | 55 | 'options' => array( |
56 | 56 | 'position' => array( |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | ), |
60 | 60 | ), |
61 | 61 | 4 => array( |
62 | - 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
63 | - 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
62 | + 'content_id' => 'message_status-'.EEM_Message::status_incomplete, |
|
63 | + 'target' => '.msg-status-'.EEM_Message::status_incomplete, |
|
64 | 64 | 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
65 | 65 | 'options' => array( |
66 | 66 | 'position' => array( |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | ), |
70 | 70 | ), |
71 | 71 | 5 => array( |
72 | - 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
73 | - 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
72 | + 'content_id' => 'message_status-'.EEM_Message::status_retry, |
|
73 | + 'target' => '.msg-status-'.EEM_Message::status_retry, |
|
74 | 74 | 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
75 | 75 | 'options' => array( |
76 | 76 | 'position' => array( |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | ), |
80 | 80 | ), |
81 | 81 | 6 => array( |
82 | - 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
83 | - 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
82 | + 'content_id' => 'message_status-'.EEM_Message::status_debug_only, |
|
83 | + 'target' => '.msg-status-'.EEM_Message::status_debug_only, |
|
84 | 84 | 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
85 | 85 | 'options' => array( |
86 | 86 | 'position' => array( |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <p><strong><?php _e('Messengers', 'event_espresso'); ?></strong></p> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - __( |
|
5 | - 'Messengers are the vehicles that deliver messages to individuals (recipients). By default, every install of Event Espresso has the %sEmail%s messenger active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd party API\'s etc.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<strong>', |
|
9 | - '</strong>' |
|
10 | - ); ?> |
|
4 | + __( |
|
5 | + 'Messengers are the vehicles that deliver messages to individuals (recipients). By default, every install of Event Espresso has the %sEmail%s messenger active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd party API\'s etc.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<strong>', |
|
9 | + '</strong>' |
|
10 | + ); ?> |
|
11 | 11 | </p> |
12 | 12 | \ No newline at end of file |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <p><strong><?php esc_html_e('Message Templates', 'event_espresso'); ?></strong></p> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'Message Templates are the %1$sformat%2$s of the messages going out. Think of them as a “form letter”. Templates tell the Messages system how to style your messages and the content (information) they will have when they are delivered.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<em>', |
|
9 | - '</em>' |
|
10 | - ); ?></p> |
|
4 | + esc_html__( |
|
5 | + 'Message Templates are the %1$sformat%2$s of the messages going out. Think of them as a “form letter”. Templates tell the Messages system how to style your messages and the content (information) they will have when they are delivered.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<em>', |
|
9 | + '</em>' |
|
10 | + ); ?></p> |
|
11 | 11 | <p> |
12 | 12 | <?php esc_html_e( |
13 | - 'There is a template created for each Messenger / Message Type and context combination. For example, messages that are sent for Payment Confirmation have a template for Event Administrator and a different one for Primary Registrant. Whereas, messages that are sent for the Registration confirmation have 3 templates: one for Event Administrator, one for the Primary Registrant, and another for each additional Registrant(s).', |
|
14 | - 'event_espresso' |
|
15 | - ); ?></p> |
|
13 | + 'There is a template created for each Messenger / Message Type and context combination. For example, messages that are sent for Payment Confirmation have a template for Event Administrator and a different one for Primary Registrant. Whereas, messages that are sent for the Registration confirmation have 3 templates: one for Event Administrator, one for the Primary Registrant, and another for each additional Registrant(s).', |
|
14 | + 'event_espresso' |
|
15 | + ); ?></p> |
|
16 | 16 | <p> |
17 | 17 | <?php esc_html_e( |
18 | - 'With the Event Espresso Messages system, every Messenger, Message Type, and context will have a global template created with some default content on creation. You have the ability to edit the global template that will be used for all events you create. Additionally, you have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").', |
|
19 | - 'event_espresso' |
|
20 | - ); ?></p> |
|
21 | 18 | \ No newline at end of file |
19 | + 'With the Event Espresso Messages system, every Messenger, Message Type, and context will have a global template created with some default content on creation. You have the ability to edit the global template that will be used for all events you create. Additionally, you have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").', |
|
20 | + 'event_espresso' |
|
21 | + ); ?></p> |
|
22 | 22 | \ No newline at end of file |
@@ -1,27 +1,27 @@ |
||
1 | 1 | <div class="<?php echo $messenger; ?>-content"> |
2 | 2 | <?php echo $content; ?> |
3 | 3 | <?php |
4 | - if (empty($inactive_message_types) && empty($active_message_types)) : |
|
5 | - echo '<p>' |
|
6 | - . __( |
|
7 | - 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
|
8 | - 'event_espresso' |
|
9 | - ) . '</p>'; |
|
10 | - else : ?> |
|
4 | + if (empty($inactive_message_types) && empty($active_message_types)) : |
|
5 | + echo '<p>' |
|
6 | + . __( |
|
7 | + 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
|
8 | + 'event_espresso' |
|
9 | + ) . '</p>'; |
|
10 | + else : ?> |
|
11 | 11 | <p class="active-on-message <?php echo $hide_on_message; ?>"> |
12 | 12 | <?php printf( |
13 | - __( |
|
14 | - 'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', |
|
15 | - 'event_espresso' |
|
16 | - ), |
|
17 | - '<strong>', |
|
18 | - '</strong>' |
|
19 | - ); ?> |
|
13 | + __( |
|
14 | + 'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', |
|
15 | + 'event_espresso' |
|
16 | + ), |
|
17 | + '<strong>', |
|
18 | + '</strong>' |
|
19 | + ); ?> |
|
20 | 20 | <p> |
21 | 21 | <div <?php |
22 | - if ($active) : |
|
23 | - ?> id="active-message-types"<?php |
|
24 | - endif; ?> |
|
22 | + if ($active) : |
|
23 | + ?> id="active-message-types"<?php |
|
24 | + endif; ?> |
|
25 | 25 | class="mt-tab-container <?php echo $hide_on_message; ?>"> |
26 | 26 | <ul class="messenger-activation"> |
27 | 27 | <?php echo $active_message_types; ?> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | . __( |
7 | 7 | 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
8 | 8 | 'event_espresso' |
9 | - ) . '</p>'; |
|
9 | + ).'</p>'; |
|
10 | 10 | else : ?> |
11 | 11 | <p class="active-on-message <?php echo $hide_on_message; ?>"> |
12 | 12 | <?php printf( |
@@ -7,8 +7,11 @@ |
||
7 | 7 | 'This messenger is not currently used with any message types for templates but merely adds to the shortcodes available for templates on other messenger and message types.', |
8 | 8 | 'event_espresso' |
9 | 9 | ) . '</p>'; |
10 | - else : ?> |
|
11 | - <p class="active-on-message <?php echo $hide_on_message; ?>"> |
|
10 | + else { |
|
11 | + : ?> |
|
12 | + <p class="active-on-message <?php echo $hide_on_message; |
|
13 | + } |
|
14 | + ?>"> |
|
12 | 15 | <?php printf( |
13 | 16 | __( |
14 | 17 | 'Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', |
@@ -6,18 +6,18 @@ discard block |
||
6 | 6 | <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post"> |
7 | 7 | <input type="hidden" id="evt_id" name="EVT_ID" value="<?php echo ($EVT_ID) ? $EVT_ID : ''; ?>"/> |
8 | 8 | <?php |
9 | - if (isset($hidden_fields)) { |
|
10 | - echo $hidden_fields; |
|
11 | - } ?> |
|
9 | + if (isset($hidden_fields)) { |
|
10 | + echo $hidden_fields; |
|
11 | + } ?> |
|
12 | 12 | <!--active_messengers --> |
13 | 13 | <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label> |
14 | 14 | <select name="MTP_messenger" id="MTP-messenger"> |
15 | 15 | <?php |
16 | - foreach ($active_messengers as $messenger => $values) : ?> |
|
16 | + foreach ($active_messengers as $messenger => $values) : ?> |
|
17 | 17 | <option value="<?php echo $messenger; ?>"> |
18 | 18 | <?php echo ucwords( |
19 | - str_replace('_', ' ', $messenger) |
|
20 | - ); ?></option> |
|
19 | + str_replace('_', ' ', $messenger) |
|
20 | + ); ?></option> |
|
21 | 21 | <?php endforeach; ?> |
22 | 22 | </select> |
23 | 23 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | <?php foreach ($active_message_types as $message_type => $values) : ?> |
27 | 27 | <option value="<?php echo $message_type; ?>"> |
28 | 28 | <?php echo ucwords( |
29 | - str_replace('_', ' ', $message_type) |
|
30 | - ); ?></option> |
|
29 | + str_replace('_', ' ', $message_type) |
|
30 | + ); ?></option> |
|
31 | 31 | <?php endforeach; ?> |
32 | 32 | </select> |
33 | 33 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv"> |
2 | 2 | |
3 | - <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name . ' Custom Template' : ''; ?></h4> |
|
3 | + <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name.' Custom Template' : ''; ?></h4> |
|
4 | 4 | <p><?php echo $action_message; ?></p> |
5 | 5 | |
6 | 6 | <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post"> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | </select> |
33 | 33 | |
34 | 34 | <!-- events if we don't have an EVENT_ID --> |
35 | - <?php if (! empty($active_events)) : ?> |
|
35 | + <?php if ( ! empty($active_events)) : ?> |
|
36 | 36 | <label for="EVT_ID_select"><?php _e('Select Event', 'event_espresso'); ?></label> |
37 | 37 | <select name="EVT_ID" id="EVT_ID_select"> |
38 | 38 | <?php foreach ($active_events as $event) : ?> |
@@ -12,7 +12,7 @@ |
||
12 | 12 | <span class="ee-messages-shortcodes-chooser js-open-list-trigger dashicons dashicons-menu"> |
13 | 13 | <ul id="ee_shortcode_chooser_<?php echo $fieldname; ?>" class="ee_shortcode_chooser_container hidden"> |
14 | 14 | <?php |
15 | - foreach ($shortcodes as $shortcode => $label) : ?> |
|
15 | + foreach ($shortcodes as $shortcode => $label) : ?> |
|
16 | 16 | <li> |
17 | 17 | <span class="js-shortcode-selection" data-value="<?php echo esc_attr($shortcode); ?>" |
18 | 18 | data-linked-input-id="<?php echo esc_attr($linked_input_id); ?>"><?php echo $shortcode; ?></span> |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @type string $fieldname The name of the field the chooser is associated with. |
9 | 9 | * @type string $linked_input_id The name of the input that the shortcode gets inserted to. |
10 | 10 | */ |
11 | -if (! empty($shortcodes)) : ?> |
|
11 | +if ( ! empty($shortcodes)) : ?> |
|
12 | 12 | <span class="ee-messages-shortcodes-chooser js-open-list-trigger dashicons dashicons-menu"> |
13 | 13 | <ul id="ee_shortcode_chooser_<?php echo $fieldname; ?>" class="ee_shortcode_chooser_container hidden"> |
14 | 14 | <?php |
@@ -3,16 +3,16 @@ discard block |
||
3 | 3 | <div id="espresso-ajax-loading" class="ajax-loader-grey"> |
4 | 4 | <span class="ee-spinner ee-spin"></span><span class="hidden"> |
5 | 5 | <?php |
6 | - _e( |
|
7 | - 'loading...', |
|
8 | - 'event_espresso' |
|
9 | - ); ?></span> |
|
6 | + _e( |
|
7 | + 'loading...', |
|
8 | + 'event_espresso' |
|
9 | + ); ?></span> |
|
10 | 10 | </div> |
11 | 11 | <span id="on-off-nonce-<?php echo $messenger; ?>" class="hidden"><?php echo $nonce; ?></span> |
12 | 12 | <div class="switch"> |
13 | 13 | <?php |
14 | - $checked = $on_off_status ? ' checked="checked"' : ''; |
|
15 | - ?> |
|
14 | + $checked = $on_off_status ? ' checked="checked"' : ''; |
|
15 | + ?> |
|
16 | 16 | <input id="ee-on-off-toggle-<?php echo $messenger; ?>" type="checkbox" |
17 | 17 | class="ee-on-off-toggle ee-toggle-round-flat"<?php echo $checked; ?> |
18 | 18 | value="<?php echo $on_off_action; ?>"> |
@@ -27,9 +27,9 @@ discard block |
||
27 | 27 | <form method="POST" action="" class="mt-settings-form"> |
28 | 28 | <?php echo $template_form_fields; ?> |
29 | 29 | <?php |
30 | - foreach ($hidden_fields as $name => $field) { |
|
31 | - echo $field['field']; |
|
32 | - } ?> |
|
30 | + foreach ($hidden_fields as $name => $field) { |
|
31 | + echo $field['field']; |
|
32 | + } ?> |
|
33 | 33 | <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" class="button-secondary no-drag"/> |
34 | 34 | </form> |
35 | 35 | </div> |
@@ -7,9 +7,9 @@ |
||
7 | 7 | <form method="POST" action="" class="mt-settings-form<?php echo $show_form; ?>"> |
8 | 8 | <?php echo $template_form_fields; ?> |
9 | 9 | <?php |
10 | - foreach ($hidden_fields as $name => $field) { |
|
11 | - echo $field['field']; |
|
12 | - } ?> |
|
10 | + foreach ($hidden_fields as $name => $field) { |
|
11 | + echo $field['field']; |
|
12 | + } ?> |
|
13 | 13 | <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" |
14 | 14 | class="button-secondary mt-settings-submit no-drag"/> |
15 | 15 | </form> |