@@ -1,31 +1,31 @@ |
||
1 | 1 | |
2 | 2 | <ul class="subsubsub"> |
3 | - <?php foreach ( $view_RLs as $vw ) : ?> |
|
4 | - <li class="<?php echo $vw['slug']; ?>"><a class="<?php echo $vw['class']; ?>" href="<?php echo $vw['url'];?>"><?php echo $vw['label']; ?><span class="count">(<?php echo $vw['count']; ?>)</span></a></li> |
|
3 | + <?php foreach ($view_RLs as $vw) : ?> |
|
4 | + <li class="<?php echo $vw['slug']; ?>"><a class="<?php echo $vw['class']; ?>" href="<?php echo $vw['url']; ?>"><?php echo $vw['label']; ?><span class="count">(<?php echo $vw['count']; ?>)</span></a></li> |
|
5 | 5 | <?php endforeach; ?> |
6 | 6 | <li> |
7 | 7 | </li> |
8 | 8 | </ul> |
9 | 9 | <div class="clear"></div> |
10 | 10 | <div id="ee-messenger-filters-dv"> |
11 | - <form id="ee-messenger-filters-frm" action="<?php echo $ee_msg_overview_url;?>" method="post" name="ee-messenger-filters-frm"> |
|
11 | + <form id="ee-messenger-filters-frm" action="<?php echo $ee_msg_overview_url; ?>" method="post" name="ee-messenger-filters-frm"> |
|
12 | 12 | <select name="ee_messenger_filter_by" id="ee_messenger_filter_by"> |
13 | - <?php foreach ( $active_messengers as $messenger => $args ) : ?> |
|
14 | - <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger) ); ?></option> |
|
13 | + <?php foreach ($active_messengers as $messenger => $args) : ?> |
|
14 | + <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger)); ?></option> |
|
15 | 15 | <?php endforeach; ?> |
16 | 16 | </select> |
17 | 17 | <input id="submit-ee-messenger-filters-sbmt" class="button-secondary" type="submit" value="Filter Messenger"> |
18 | 18 | |
19 | 19 | <select name="ee_message_type_filter_by" id="ee_message_type_filter_by"> |
20 | - <?php foreach ( $active_message_types as $message_type => $args ) : ?> |
|
21 | - <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type) ); ?></option> |
|
20 | + <?php foreach ($active_message_types as $message_type => $args) : ?> |
|
21 | + <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type)); ?></option> |
|
22 | 22 | <?php endforeach; ?> |
23 | 23 | </select> |
24 | 24 | <input id="submit-ee-message-type-filters-sbmt" class="button-secondary" type="submit" value="Filter Message Type"> |
25 | 25 | </form> |
26 | 26 | </div> |
27 | 27 | |
28 | - <form id="ee-messages-overview-frm" action="<?php echo $ee_msg_overview_url;?>" method="get"> |
|
28 | + <form id="ee-messages-overview-frm" action="<?php echo $ee_msg_overview_url; ?>" method="get"> |
|
29 | 29 | <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> |
30 | 30 | <input type="hidden" id="per_page" name="per_page" value="" /> |
31 | 31 | <?php echo $list_table->display(); ?> |
@@ -1,32 +1,32 @@ |
||
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"> |
7 | 7 | <input type="hidden" id="evt_id" name="EVT_ID" value="<?php echo ($EVT_ID) ? $EVT_ID : ''; ?>" /> |
8 | - <?php if ( isset( $hidden_fields ) ) echo $hidden_fields; ?> |
|
8 | + <?php if (isset($hidden_fields)) echo $hidden_fields; ?> |
|
9 | 9 | |
10 | 10 | <!--active_messengers --> |
11 | 11 | <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label> |
12 | 12 | <select name="MTP_messenger" id="MTP-messenger"> |
13 | - <?php foreach ( $active_messengers as $messenger => $values ) : ?> |
|
14 | - <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger) ); ?></option> |
|
13 | + <?php foreach ($active_messengers as $messenger => $values) : ?> |
|
14 | + <option value="<?php echo $messenger; ?>"><?php echo ucwords(str_replace('_', ' ', $messenger)); ?></option> |
|
15 | 15 | <?php endforeach; ?> |
16 | 16 | </select> |
17 | 17 | |
18 | 18 | <label for="MTP_message_type"><?php _e('Select Message Type', 'event_espresso'); ?></label> |
19 | 19 | <select name="MTP_message_type" id="MTP-message-type"> |
20 | - <?php foreach ( $active_message_types as $message_type => $values ) : ?> |
|
21 | - <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type) ); ?></option> |
|
20 | + <?php foreach ($active_message_types as $message_type => $values) : ?> |
|
21 | + <option value="<?php echo $message_type; ?>"><?php echo ucwords(str_replace('_', ' ', $message_type)); ?></option> |
|
22 | 22 | <?php endforeach; ?> |
23 | 23 | </select> |
24 | 24 | |
25 | 25 | <!-- events if we don't have an EVENT_ID --> |
26 | - <?php if ( !empty( $active_events ) ) : ?> |
|
26 | + <?php if ( ! empty($active_events)) : ?> |
|
27 | 27 | <label for="EVT_ID_select"><?php _e('Select Event', 'event_espresso'); ?></label> |
28 | 28 | <select name="EVT_ID" id="EVT_ID_select"> |
29 | - <?php foreach ( $active_events as $event ) : ?> |
|
29 | + <?php foreach ($active_events as $event) : ?> |
|
30 | 30 | <option value="<?php echo $event->event_id; ?>"><?php echo $event->event_name; ?></option> |
31 | 31 | <?php endforeach; ?> |
32 | 32 | </select> |
@@ -5,7 +5,10 @@ |
||
5 | 5 | |
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 | - <?php if ( isset( $hidden_fields ) ) echo $hidden_fields; ?> |
|
8 | + <?php if ( isset( $hidden_fields ) ) { |
|
9 | + echo $hidden_fields; |
|
10 | +} |
|
11 | +?> |
|
9 | 12 | |
10 | 13 | <!--active_messengers --> |
11 | 14 | <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label> |
@@ -19,8 +19,11 @@ |
||
19 | 19 | <textarea id="ee-msg-non-global-fields-MTP_description" class="large-text" name="ee_msg_non_global_fields[MTP_description]"><?php echo $MTP->description(); ?></textarea> |
20 | 20 | </p> |
21 | 21 | </div> |
22 | - <?php else: ?> |
|
23 | - <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); ?>"> |
|
22 | + <?php else { |
|
23 | + : ?> |
|
24 | + <input type="hidden" name="ee_msg_non_global_fields[MTP_name]" value="<?php echo $MTP->name(); |
|
25 | +} |
|
26 | +?>"> |
|
24 | 27 | <input type="hidden" name="ee_msg_non_global_fields[MTP_description]" value="<?php echo $MTP->description(); ?>"> |
25 | 28 | <?php endif; ?> |
26 | 29 | <!-- we need to loop through the template_fields so we know our structure --> |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv"> |
2 | 2 | |
3 | - <h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name . ' Custom Template' : ''; ?></h3> |
|
3 | + <h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name.' Custom Template' : ''; ?></h3> |
|
4 | 4 | <input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo $context; ?>" /> |
5 | 5 | <!-- if this is not a global template then let's show the name and description fields --> |
6 | - <?php if ( ! $MTP->is_global() ) : ?> |
|
6 | + <?php if ( ! $MTP->is_global()) : ?> |
|
7 | 7 | <div class="non-global-mtp-fields"> |
8 | 8 | <p> |
9 | 9 | <?php _e('This is a custom template. Custom Templates have an editable name and description to help you differentiate between templates.', 'event_espresso'); ?> |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | <?php endif; ?> |
26 | 26 | <!-- we need to loop through the template_fields so we know our structure --> |
27 | 27 | <?php |
28 | - if ( isset($template_fields) && !empty($template_fields) && !is_wp_error($template_fields) ) { |
|
28 | + if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) { |
|
29 | 29 | echo $template_fields; |
30 | 30 | } else { |
31 | 31 | ?> |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <div class="<?php echo $messenger; ?>-content"> |
2 | - <?php if ( empty( $inactive_message_types ) && empty( $active_message_types ) ) : echo '<p>' . __('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.') . '</p>'; else : ?> |
|
2 | + <?php if (empty($inactive_message_types) && empty($active_message_types)) : echo '<p>'.__('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.').'</p>'; else : ?> |
|
3 | 3 | <p class="inactive-on-message <?php echo $hide_on_message; ?>"> |
4 | 4 | <?php _e('Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', 'event_espresso'); ?> |
5 | 5 | <p> |
6 | 6 | <p class="inactive-off-message <?php echo $hide_off_message; ?>"> |
7 | 7 | <?php _e('This messenger is currently inactive. Once the messenger is activated any inactive message types associated with the messenger will be shown here.', 'event_espresso'); ?> |
8 | 8 | </p> |
9 | - <div<?php if ( $active ) : ?> id="inactive-message-types"<?php endif; ?> class="inactive-message-types mt-tab-container ui-widget-content-ui-state-default <?php echo $hide_on_message; ?>"> |
|
9 | + <div<?php if ($active) : ?> id="inactive-message-types"<?php endif; ?> class="inactive-message-types mt-tab-container ui-widget-content-ui-state-default <?php echo $hide_on_message; ?>"> |
|
10 | 10 | <ul class="messenger-activation"> |
11 | 11 | <?php echo $inactive_message_types; ?> |
12 | 12 | </ul> |
@@ -1,6 +1,9 @@ |
||
1 | 1 | <div class="<?php echo $messenger; ?>-content"> |
2 | - <?php if ( empty( $inactive_message_types ) && empty( $active_message_types ) ) : echo '<p>' . __('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.') . '</p>'; else : ?> |
|
3 | - <p class="inactive-on-message <?php echo $hide_on_message; ?>"> |
|
2 | + <?php if ( empty( $inactive_message_types ) && empty( $active_message_types ) ) : echo '<p>' . __('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.') . '</p>'; else { |
|
3 | + : ?> |
|
4 | + <p class="inactive-on-message <?php echo $hide_on_message; |
|
5 | +} |
|
6 | +?>"> |
|
4 | 7 | <?php _e('Below are message types that are currently inactive with this messenger. Drag them over to the messenger box to activate them.', 'event_espresso'); ?> |
5 | 8 | <p> |
6 | 9 | <p class="inactive-off-message <?php echo $hide_off_message; ?>"> |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <div class="<?php echo $messenger; ?>-content"> |
2 | 2 | <?php echo $content; ?> |
3 | - <?php if ( empty( $inactive_message_types ) && empty( $active_message_types ) ) : echo '<p>' . __('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.') . '</p>'; else : ?> |
|
3 | + <?php if (empty($inactive_message_types) && empty($active_message_types)) : echo '<p>'.__('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.').'</p>'; else : ?> |
|
4 | 4 | <p class="active-on-message <?php echo $hide_on_message; ?>"> |
5 | - <?php printf( __('Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', 'event_espresso'), '<strong>', '</strong>' ); ?> |
|
5 | + <?php printf(__('Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', 'event_espresso'), '<strong>', '</strong>'); ?> |
|
6 | 6 | <p> |
7 | - <div <?php if ( $active ) : ?> id="active-message-types"<?php endif; ?> class="mt-tab-container <?php echo $hide_on_message; ?>"> |
|
7 | + <div <?php if ($active) : ?> id="active-message-types"<?php endif; ?> class="mt-tab-container <?php echo $hide_on_message; ?>"> |
|
8 | 8 | <ul class="messenger-activation"> |
9 | 9 | <?php echo $active_message_types; ?> |
10 | 10 | </ul> |
@@ -1,7 +1,10 @@ |
||
1 | 1 | <div class="<?php echo $messenger; ?>-content"> |
2 | 2 | <?php echo $content; ?> |
3 | - <?php if ( empty( $inactive_message_types ) && empty( $active_message_types ) ) : echo '<p>' . __('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.') . '</p>'; else : ?> |
|
4 | - <p class="active-on-message <?php echo $hide_on_message; ?>"> |
|
3 | + <?php if ( empty( $inactive_message_types ) && empty( $active_message_types ) ) : echo '<p>' . __('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.') . '</p>'; else { |
|
4 | + : ?> |
|
5 | + <p class="active-on-message <?php echo $hide_on_message; |
|
6 | +} |
|
7 | +?>"> |
|
5 | 8 | <?php printf( __('Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.', 'event_espresso'), '<strong>', '</strong>' ); ?> |
6 | 9 | <p> |
7 | 10 | <div <?php if ( $active ) : ?> id="active-message-types"<?php endif; ?> class="mt-tab-container <?php echo $hide_on_message; ?>"> |
@@ -19,7 +19,7 @@ |
||
19 | 19 | <span id="has_form_class" class="hidden"><?php echo trim($show_hide_edit_form); ?></span> |
20 | 20 | <form method="POST" action="" class="mt-settings-form"> |
21 | 21 | <?php echo $template_form_fields; ?> |
22 | - <?php foreach ( $hidden_fields as $name => $field ) { |
|
22 | + <?php foreach ($hidden_fields as $name => $field) { |
|
23 | 23 | echo $field['field']; |
24 | 24 | } ?> |
25 | 25 | <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" class="button-secondary no-drag" /> |
@@ -8,10 +8,10 @@ |
||
8 | 8 | <p><?php _e('There are two ways to determine whether a messenger is active or not. The first way is via the messenger tab itself.', 'event_espresso'); ?></p> |
9 | 9 | <p><?php echo $img1; _e('The green colored gear indicates that this messenger is currently active.', 'event_espresso'); echo $img2; _e('Here the white colored gear indicates the messenger is inactive. This is very helpful for seeing at a glance all the messengers that are active when you first view the page.', 'event_espresso'); ?></p> |
10 | 10 | <p><?php _e('The second way to determine whether a messenger is active or not is via the "on/off" button in the top right corner of the active messenger displayed content:', 'event_espresso'); ?></p> |
11 | -<p><?php echo $img3; printf( __('On means of course that the messenger is active and %s means the messenger is inactive.', 'event_espresso'), $img4 ); ?></p> |
|
12 | -<p><?php _e( 'Incidentally, the on/off toggle is also what you use to activate or deactivate a messenger.', 'event_espresso' ); ?></p> |
|
13 | -<p><?php _e( 'What happens when you click the toggle to activate is the messenger is activated and the system determines what default message types are activated with the messenger. Then, if there are any default settings for either the messenger or message types those settings are saved. Next, the system will generate any default templates (if none have been generated before, if there are previously generated templates then they are reactivated). Finally, you will see the display change to reflect that the messenger is active. If the messenger has settings you can modify them then. Any message types that have settings will also automatically expand so you can see the default settings and make any changes as necessary to fit your needs. Usually the defaults are sufficient however.', 'event_espresso'); ?></p> |
|
14 | -<p><?php _e( 'When you deactivate a messenger, the system will first check if there are any custom event templates for that messenger. If there are you will be unable to deactivate the messenger. This is a fail safe to make sure you know that no messages will go out for those specific events so you don\'t accidentally deactivate. If this check passes, then the system will deactivate any global templates for that messenger (note the templates are not erased, they just become inactive, so if you decide to reactivate the messenger later all your customizations are preserved). Then the display will change to reflect the deactivation.', 'event_espresso'); ?></p> |
|
15 | -<p><?php printf( __('%sVery important!%s Although customizations made to global templates are preserved when a messenger is deactivated, any settings for that messenger (or the message types that were attached to it) are lost on deactivation. Keep that in mind. Also, once you deactivate a messenger, no more messages will be delivered using that messenger for any of your events.', 'event_espresso'), '<strong>', '</strong>' ); ?></p> |
|
11 | +<p><?php echo $img3; printf(__('On means of course that the messenger is active and %s means the messenger is inactive.', 'event_espresso'), $img4); ?></p> |
|
12 | +<p><?php _e('Incidentally, the on/off toggle is also what you use to activate or deactivate a messenger.', 'event_espresso'); ?></p> |
|
13 | +<p><?php _e('What happens when you click the toggle to activate is the messenger is activated and the system determines what default message types are activated with the messenger. Then, if there are any default settings for either the messenger or message types those settings are saved. Next, the system will generate any default templates (if none have been generated before, if there are previously generated templates then they are reactivated). Finally, you will see the display change to reflect that the messenger is active. If the messenger has settings you can modify them then. Any message types that have settings will also automatically expand so you can see the default settings and make any changes as necessary to fit your needs. Usually the defaults are sufficient however.', 'event_espresso'); ?></p> |
|
14 | +<p><?php _e('When you deactivate a messenger, the system will first check if there are any custom event templates for that messenger. If there are you will be unable to deactivate the messenger. This is a fail safe to make sure you know that no messages will go out for those specific events so you don\'t accidentally deactivate. If this check passes, then the system will deactivate any global templates for that messenger (note the templates are not erased, they just become inactive, so if you decide to reactivate the messenger later all your customizations are preserved). Then the display will change to reflect the deactivation.', 'event_espresso'); ?></p> |
|
15 | +<p><?php printf(__('%sVery important!%s Although customizations made to global templates are preserved when a messenger is deactivated, any settings for that messenger (or the message types that were attached to it) are lost on deactivation. Keep that in mind. Also, once you deactivate a messenger, no more messages will be delivered using that messenger for any of your events.', 'event_espresso'), '<strong>', '</strong>'); ?></p> |
|
16 | 16 | <h3><?php _e('3. Activating or Deactivating Message Types', 'event_espresso'); ?></h3> |
17 | 17 | <p><?php _e('There may be times where you just want to deactivate (or activate new) message types for a particular messenger. The messages system makes it super easy to do so. To deactivate, what you do is drag the message type box from the "active area" below the messenger description (of an active messenger) into the "inactive" area in the right sidebar. To activate you do the reverse. Just remember that when you deactivate a message type, if that message type has any settings, the settings will be lost. However, any message templates that match the messenger and message type you deactivated will be preserved, they are just marked "inactive" in the database', 'event_espresso'); ?></p> |
18 | 18 | \ No newline at end of file |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <h2><?php _e('What are Messengers?', 'event_espresso'); ?></h2> |
2 | -<p><?php printf( __('Messengers are the vehicles that deliver messages to people. By default, every Event Espresso install has the %sEmail%s messenger already active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd Party API\'s etc.', 'event_espresso'), '<strong>', '</strong>' ); ?></p> |
|
3 | 2 | \ No newline at end of file |
3 | +<p><?php printf(__('Messengers are the vehicles that deliver messages to people. By default, every Event Espresso install has the %sEmail%s messenger already active. The Email messenger is a vehicle for delivering messages. Other possible vehicles might be any social media applications, 3rd Party API\'s etc.', 'event_espresso'), '<strong>', '</strong>'); ?></p> |
|
4 | 4 | \ No newline at end of file |
@@ -5,7 +5,7 @@ |
||
5 | 5 | <div class"mt-settings"> |
6 | 6 | <form method="POST" action="" class="mt-settings-form<?php echo $show_form; ?>"> |
7 | 7 | <?php echo $template_form_fields; ?> |
8 | - <?php foreach ( $hidden_fields as $name => $field ) { |
|
8 | + <?php foreach ($hidden_fields as $name => $field) { |
|
9 | 9 | echo $field['field']; |
10 | 10 | } ?> |
11 | 11 | <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" class="button-secondary mt-settings-submit no-drag" /> |