@@ -1,28 +1,28 @@ |
||
1 | 1 | <div id="admin-side-mbox-primary-registrant-dv" class="admin-side-mbox-dv"> |
2 | 2 | <p class="clearfix"> |
3 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Name', 'event_espresso'); ?></span><?php echo $fname . ' ' . $lname;?> |
|
3 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Name', 'event_espresso'); ?></span><?php echo $fname.' '.$lname; ?> |
|
4 | 4 | </p> |
5 | 5 | <p class="clearfix"> |
6 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Email', 'event_espresso'); ?></span><a href="mailto:<?php echo $email;?>"><?php echo $email;?></a> |
|
6 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Email', 'event_espresso'); ?></span><a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a> |
|
7 | 7 | </p> |
8 | 8 | <p class="clearfix"> |
9 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Phone #', 'event_espresso'); ?></span><?php echo $phone;?> |
|
9 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Phone #', 'event_espresso'); ?></span><?php echo $phone; ?> |
|
10 | 10 | </p> |
11 | 11 | <p class="clearfix"> |
12 | 12 | <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Address', 'event_espresso'); ?></span> |
13 | 13 | <div class="admin-side-mbox-text-dv"> |
14 | - <?php echo $formatted_address;?> |
|
14 | + <?php echo $formatted_address; ?> |
|
15 | 15 | </div> |
16 | 16 | </p> |
17 | 17 | </div> |
18 | 18 | |
19 | 19 | |
20 | 20 | <p class="contact-details-buttons"> |
21 | - <?php if ( $att_check instanceof EE_Attendee ) : ?> |
|
22 | - <a class="button button-small" href="<?php echo $att_edit_link; ?>" title="<?php echo esc_attr( $att_edit_label ); ?>"> |
|
21 | + <?php if ($att_check instanceof EE_Attendee) : ?> |
|
22 | + <a class="button button-small" href="<?php echo $att_edit_link; ?>" title="<?php echo esc_attr($att_edit_label); ?>"> |
|
23 | 23 | <span class="ee-icon ee-icon-user-edit"></span><?php echo $att_edit_label; ?> |
24 | 24 | </a> |
25 | - <?php if ( !empty( $create_link ) ) : ?> |
|
25 | + <?php if ( ! empty($create_link)) : ?> |
|
26 | 26 | <a class="button button-small" href="<?php echo $create_link; ?>" title="<?php esc_attr_e('This registration shares the contact details for the primary registration in this group. If you\'d like this registration to have its own details, you can do so by clicking this button', 'event_espresso'); ?>"> |
27 | 27 | <span class="ee-icon ee-icon-user-add-new"></span><?php echo $create_label; ?> |
28 | 28 | </a> |
@@ -1,2 +1,2 @@ |
||
1 | -<h1><span class="small-text not-bold"><?php _e( 'Adding Registration For: ', 'event_espresso' );?></span><?php echo $event_name;?></h1> |
|
1 | +<h1><span class="small-text not-bold"><?php _e('Adding Registration For: ', 'event_espresso'); ?></span><?php echo $event_name; ?></h1> |
|
2 | 2 | <?php echo $step_content; ?> |
3 | 3 | \ No newline at end of file |
@@ -2,13 +2,13 @@ |
||
2 | 2 | <h2 class="ee-new-registration-step-header"><?php echo $title ?></h2> |
3 | 3 | <div class="ee-new-registration-step-content"> |
4 | 4 | <?php echo $content; ?> |
5 | - <?php if ( $show_notification_toggle && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'registration_message_type' ) ) : ?> |
|
5 | + <?php if ($show_notification_toggle && EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'registration_message_type')) : ?> |
|
6 | 6 | <div class="ee-attention"> |
7 | - <label for="txn_reg_status_change" class="last"><?php _e( 'Send Related Messages?', 'event_espresso' );?></label> |
|
7 | + <label for="txn_reg_status_change" class="last"><?php _e('Send Related Messages?', 'event_espresso'); ?></label> |
|
8 | 8 | <input type="checkbox" value="1" name="txn_reg_status_change[send_notifications]" checked=checked> |
9 | 9 | <br/> |
10 | 10 | <br /> |
11 | - <p class="description"><?php _e( 'Send a notification to registrants after processing?', 'event_espresso' );?></p><br/> |
|
11 | + <p class="description"><?php _e('Send a notification to registrants after processing?', 'event_espresso'); ?></p><br/> |
|
12 | 12 | <label></label> |
13 | 13 | </div> |
14 | 14 | <?php endif; ?> |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <div id="reg-admin-approve-decline-reg-status-dv"> |
2 | 2 | |
3 | 3 | <h2 id="reg-admin-reg-details-reg-status-hdr"> |
4 | - <?php echo __( 'Current Registration Status : ', 'event_espresso' ); ?> |
|
4 | + <?php echo __('Current Registration Status : ', 'event_espresso'); ?> |
|
5 | 5 | <span class="<?php echo $reg_status_class; ?> bigger-text"><?php echo $reg_status_value; ?></span> |
6 | 6 | </h2> |
7 | 7 | |
8 | 8 | <h3 id="reg-admin-reg-details-reg-status-hdr"> |
9 | - <?php echo __( 'Change Registration Status to :', 'event_espresso' ); ?> |
|
9 | + <?php echo __('Change Registration Status to :', 'event_espresso'); ?> |
|
10 | 10 | </h3> |
11 | 11 | |
12 | 12 | <form id="reg_status_change_form" method="POST" action="<?php echo $form_url; ?>"> |
@@ -15,15 +15,15 @@ discard block |
||
15 | 15 | <input type="hidden" name="return" value="view_registration"> |
16 | 16 | <?php echo $nonce; ?> |
17 | 17 | <?php echo $status_buttons; ?> |
18 | - <?php if ( $attendee instanceof EE_Attendee && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'registration_message_type' ) ) : ?> |
|
18 | + <?php if ($attendee instanceof EE_Attendee && EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'registration_message_type')) : ?> |
|
19 | 19 | <span id="send-related-messages-dv"> |
20 | - <label for="txn-reg-status-send-notifications-inp" class="important-notice"><?php _e( '...and send related messages ?', 'event_espresso' ); ?> |
|
20 | + <label for="txn-reg-status-send-notifications-inp" class="important-notice"><?php _e('...and send related messages ?', 'event_espresso'); ?> |
|
21 | 21 | <input type="checkbox" value="1" id="txn-reg-status-send-notifications-inp" name="txn_reg_status_change[send_notifications]"> |
22 | 22 | </label> |
23 | 23 | <br/> |
24 | 24 | </span> |
25 | 25 | <br/> |
26 | - <p class="description"><?php _e( 'If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.', 'event_espresso' ); ?></p> |
|
26 | + <p class="description"><?php _e('If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.', 'event_espresso'); ?></p> |
|
27 | 27 | <?php endif; ?> |
28 | 28 | </form> |
29 | 29 | </div> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <div id="single-page-checkout" class="ui-widget"> |
2 | - <?php do_action( 'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header' )?> |
|
2 | + <?php do_action('AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header')?> |
|
3 | 3 | <div id="spco-attendee_information-dv" class="spco-step-dv"> |
4 | 4 | |
5 | 5 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | __('In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', 'event_espresso'), |
8 | 8 | '<br />', |
9 | 9 | '<span class="asterisk">*</span>' |
10 | - );?> |
|
10 | + ); ?> |
|
11 | 11 | </p> |
12 | 12 | |
13 | 13 | <?php |
@@ -15,20 +15,20 @@ discard block |
||
15 | 15 | $att_nmbr = 0; |
16 | 16 | $prev_event = ''; |
17 | 17 | |
18 | - if ( $event_queue['total_items'] > 0 ) { |
|
19 | - foreach ( $event_queue['items'] as $line_item => $item ) { |
|
18 | + if ($event_queue['total_items'] > 0) { |
|
19 | + foreach ($event_queue['items'] as $line_item => $item) { |
|
20 | 20 | $att_nmbr++; |
21 | - if ( $item['attendee_questions'] != '' ) { |
|
21 | + if ($item['attendee_questions'] != '') { |
|
22 | 22 | ?> |
23 | 23 | |
24 | - <div id="spco-attendee-panel-dv-<?php echo $line_item;?>" class="spco-attendee-panel-dv"> |
|
24 | + <div id="spco-attendee-panel-dv-<?php echo $line_item; ?>" class="spco-attendee-panel-dv"> |
|
25 | 25 | |
26 | - <?php if ( $item['ticket']->name() != $prev_event ) { ?> |
|
26 | + <?php if ($item['ticket']->name() != $prev_event) { ?> |
|
27 | 27 | <p class="spco-ticket-info-pg"> |
28 | 28 | <?php |
29 | - echo $item['ticket']->name() . ': ' . EEH_Template::format_currency( $item['ticket']->price(), FALSE, FALSE ); |
|
30 | - echo $item['ticket']->qty() ? ' x ' . $ticket_count[ $item['ticket']->ID() ] . __(' tickets', 'event_espresso') . ' = ' . EEH_Template::format_currency( $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ] ) : ''; |
|
31 | - echo $item['ticket']->description() ? '<br/>' . __('Ticket Details: ', 'event_espresso') . $item['ticket']->description() : ''; |
|
29 | + echo $item['ticket']->name().': '.EEH_Template::format_currency($item['ticket']->price(), FALSE, FALSE); |
|
30 | + echo $item['ticket']->qty() ? ' x '.$ticket_count[$item['ticket']->ID()].__(' tickets', 'event_espresso').' = '.EEH_Template::format_currency($item['ticket']->price() * $ticket_count[$item['ticket']->ID()]) : ''; |
|
31 | + echo $item['ticket']->description() ? '<br/>'.__('Ticket Details: ', 'event_espresso').$item['ticket']->description() : ''; |
|
32 | 32 | ?> |
33 | 33 | </p> |
34 | 34 | |
@@ -36,50 +36,50 @@ discard block |
||
36 | 36 | } |
37 | 37 | ?> |
38 | 38 | |
39 | - <fieldset id="spco-attendee-wrap-<?php echo $line_item;?>" class="spco-attendee-wrap-fs"> |
|
40 | - <legend class="spco-attendee-lgnd smaller-text lt-grey-text"><?php echo __('Registrant #', 'event_espresso') . $att_nmbr;?></legend> |
|
39 | + <fieldset id="spco-attendee-wrap-<?php echo $line_item; ?>" class="spco-attendee-wrap-fs"> |
|
40 | + <legend class="spco-attendee-lgnd smaller-text lt-grey-text"><?php echo __('Registrant #', 'event_espresso').$att_nmbr; ?></legend> |
|
41 | 41 | |
42 | 42 | <?php |
43 | 43 | //do an action before the questions output, including the item and count |
44 | - echo do_action( 'AHEE__registration_page_registration_questions__template___before_questions', $item, $att_nmbr ); |
|
44 | + echo do_action('AHEE__registration_page_registration_questions__template___before_questions', $item, $att_nmbr); |
|
45 | 45 | echo $item['attendee_questions']; |
46 | 46 | |
47 | - if ( $att_nmbr == 1 && $print_copy_info ) { ?> |
|
47 | + if ($att_nmbr == 1 && $print_copy_info) { ?> |
|
48 | 48 | |
49 | 49 | <input type="hidden" id="primary-attendee" name="qstn[primary_attendee]" value="<?php echo $prmy_att_input_name ?>" /> |
50 | 50 | |
51 | 51 | <div id="spco-copy-attendee-dv" class="hide-if-no-js"> |
52 | 52 | |
53 | 53 | <p class="spco-copy-all-attendee-pg"> |
54 | - <label class="wide"><?php _e('Use Registrant #1\'s information for ALL registrants', 'event_espresso');?> |
|
54 | + <label class="wide"><?php _e('Use Registrant #1\'s information for ALL registrants', 'event_espresso'); ?> |
|
55 | 55 | <input id="spco-copy-all-attendee-chk" class="spco-copy-all-attendee-chk ui-widget-content ui-corner-all" type="checkbox" value="copy-all"> |
56 | 56 | </label> |
57 | 57 | </p> |
58 | 58 | |
59 | 59 | <p class="spco-copy-attendee-pg"><?php _e('This option allows you to use the above information for all additional registrant question fields. <span>( Please note that some events may have additional questions that you may still be required to answer in order to complete your registration. )</span>', 'event_espresso'); ?></p> |
60 | 60 | |
61 | - <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('more options', 'event_espresso');?></a> |
|
61 | + <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('more options', 'event_espresso'); ?></a> |
|
62 | 62 | |
63 | 63 | <div id="more-attendee-copy-options-dv" class=""> |
64 | - <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('less options', 'event_espresso');?></a> |
|
64 | + <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('less options', 'event_espresso'); ?></a> |
|
65 | 65 | <p class="spco-copy-attendee-pg"> |
66 | 66 | <?php _e('The following checkboxes allow you to use the above information for only the selected additional event registrants.', 'event_espresso'); ?> |
67 | 67 | </p> |
68 | 68 | |
69 | 69 | <?php |
70 | - foreach ( $additional_event_attendees as $event_attendees ) { |
|
71 | - foreach ( $event_attendees as $attendee ) { |
|
70 | + foreach ($additional_event_attendees as $event_attendees) { |
|
71 | + foreach ($event_attendees as $attendee) { |
|
72 | 72 | |
73 | - if ( $attendee['event_hdr'] ) { ?> |
|
73 | + if ($attendee['event_hdr']) { ?> |
|
74 | 74 | <h6 class="spco-copy-attendee-event-hdr"><?php echo $attendee['event_hdr']; ?></h6> |
75 | 75 | <?php } ?> |
76 | 76 | |
77 | 77 | <p class="event_form_field spco-copy-attendee-chk-pg"> |
78 | - <label><?php echo __('Attendee #', 'event_espresso') . $attendee['att_nmbr'];?> |
|
78 | + <label><?php echo __('Attendee #', 'event_espresso').$attendee['att_nmbr']; ?> |
|
79 | 79 | <input type="checkbox" |
80 | - id="spco-copy-attendee-chk-<?php echo $attendee['input_id'];?>" |
|
81 | - class="spco-copy-attendee-chk <?php echo $css_class;?>" |
|
82 | - value="<?php echo $attendee['input_id'];?>" |
|
80 | + id="spco-copy-attendee-chk-<?php echo $attendee['input_id']; ?>" |
|
81 | + class="spco-copy-attendee-chk <?php echo $css_class; ?>" |
|
82 | + value="<?php echo $attendee['input_id']; ?>" |
|
83 | 83 | /> |
84 | 84 | </label> |
85 | 85 | </p> |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | <?php |
96 | 96 | $print_copy_info = FALSE; |
97 | 97 | |
98 | - } else if ( $att_nmbr == 1 ) { |
|
98 | + } else if ($att_nmbr == 1) { |
|
99 | 99 | ?> |
100 | 100 | <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text"> |
101 | 101 | <?php _e('The above information will be used for any additional tickets/registrants.', 'event_espresso'); ?> |
@@ -109,13 +109,13 @@ discard block |
||
109 | 109 | </div> |
110 | 110 | <?php |
111 | 111 | } else { |
112 | - if ( $att_nmbr == 1 ) { |
|
112 | + if ($att_nmbr == 1) { |
|
113 | 113 | ?> |
114 | - <div id="spco-attendee-panel-dv-<?php echo $line_item;?>" class="spco-attendee-panel-dv"> |
|
114 | + <div id="spco-attendee-panel-dv-<?php echo $line_item; ?>" class="spco-attendee-panel-dv"> |
|
115 | 115 | <h3 id="event_title-<?php echo $item['ticket']->ID() ?>" class="big-event-title-hdr"> |
116 | 116 | <?php echo $item['event']->name(); ?> |
117 | 117 | </h3> |
118 | - <fieldset id="spco-attendee-wrap-<?php echo $line_item;?>" class="spco-attendee-wrap-fs"> |
|
118 | + <fieldset id="spco-attendee-wrap-<?php echo $line_item; ?>" class="spco-attendee-wrap-fs"> |
|
119 | 119 | <h6><?php _e('No information is required to attend this event. Please proceed to the next Step', 'event_espresso'); ?></h6> |
120 | 120 | <input type="hidden" id="no-questions" name="qstn[]" value="0" /> |
121 | 121 | </fieldset> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
3 | 3 | exit('NO direct script access allowed'); |
4 | 4 | |
5 | 5 | /** |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | class Support_Admin_Page extends EE_Admin_Page { |
31 | 31 | |
32 | 32 | |
33 | - public function __construct( $routing = TRUE ) { |
|
34 | - parent::__construct( $routing ); |
|
33 | + public function __construct($routing = TRUE) { |
|
34 | + parent::__construct($routing); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | |
@@ -85,14 +85,14 @@ discard block |
||
85 | 85 | 'nav' => array( |
86 | 86 | 'label' => __('Shortcodes', 'event_espresso'), |
87 | 87 | 'order' => 30), |
88 | - 'metaboxes' => array_merge( $this->_default_espresso_metaboxes, array('_shortcodes_boxes' ) ), |
|
88 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_shortcodes_boxes')), |
|
89 | 89 | 'require_nonce' => FALSE |
90 | 90 | ), |
91 | 91 | 'contact_support' => array( |
92 | 92 | 'nav' => array( |
93 | 93 | 'label' => __('Support', 'event_espresso'), |
94 | 94 | 'order' => 40), |
95 | - 'metaboxes' => array_merge( $this->_default_espresso_metaboxes, array( '_support_boxes' ) ), |
|
95 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_support_boxes')), |
|
96 | 96 | 'require_nonce' => FALSE |
97 | 97 | ), |
98 | 98 | 'developers' => array( |
@@ -120,8 +120,8 @@ discard block |
||
120 | 120 | |
121 | 121 | |
122 | 122 | protected function _installation() { |
123 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_installation.template.php'; |
|
124 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( $template_path, '', TRUE); |
|
123 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_installation.template.php'; |
|
124 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template($template_path, '', TRUE); |
|
125 | 125 | $this->display_admin_page_with_sidebar(); |
126 | 126 | } |
127 | 127 | |
@@ -146,10 +146,10 @@ discard block |
||
146 | 146 | 'other_resources' => __('Other Resources', 'event_espresso') |
147 | 147 | ); |
148 | 148 | |
149 | - foreach ( $boxes as $box => $label ) { |
|
150 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_' . $box . '.template.php'; |
|
149 | + foreach ($boxes as $box => $label) { |
|
150 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_'.$box.'.template.php'; |
|
151 | 151 | $callback_args = array('template_path' => $template_path); |
152 | - add_meta_box( 'espresso_' . $box . '_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], "", TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args); |
|
152 | + add_meta_box('espresso_'.$box.'_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], "", TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args); |
|
153 | 153 | } |
154 | 154 | } |
155 | 155 | |
@@ -170,15 +170,15 @@ discard block |
||
170 | 170 | 'shortcodes_event_listings' => __('Event Listings', 'event_espresso'), |
171 | 171 | 'shortcodes_ticket_selector' => __('Event Ticket Selector', 'event_espresso'), |
172 | 172 | 'shortcodes_category' => __('Event Categories', 'event_espresso'), |
173 | - 'shortcodes_attendee' => __( 'Event Attendees', 'event_espresso' ) |
|
173 | + 'shortcodes_attendee' => __('Event Attendees', 'event_espresso') |
|
174 | 174 | /*'shortcodes_single_events' => __('Single Events', 'event_espresso'),*/ |
175 | 175 | /*'shortcodes_attendee_listings' => __('Attendee Listings', 'event_espresso'),*/ |
176 | 176 | ); |
177 | 177 | |
178 | - foreach ( $boxes as $box => $label ) { |
|
179 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_' . $box . '.template.php'; |
|
178 | + foreach ($boxes as $box => $label) { |
|
179 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_'.$box.'.template.php'; |
|
180 | 180 | $callback_args = array('template_path' => $template_path); |
181 | - add_meta_box( 'espresso_' . $box . '_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], "", TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args); |
|
181 | + add_meta_box('espresso_'.$box.'_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], "", TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
@@ -197,17 +197,17 @@ discard block |
||
197 | 197 | 'important_information' => __('Important Information', 'event_espresso') |
198 | 198 | ); |
199 | 199 | |
200 | - foreach ( $boxes as $box => $label ) { |
|
201 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'support_admin_details_' . $box . '.template.php'; |
|
200 | + foreach ($boxes as $box => $label) { |
|
201 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'support_admin_details_'.$box.'.template.php'; |
|
202 | 202 | $callback_args = array('template_path' => $template_path, 'template_args' => $this->_template_args); |
203 | - add_meta_box( 'espresso_' . $box . '_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], $metabox["args"]["template_args"], TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args); |
|
203 | + add_meta_box('espresso_'.$box.'_settings', $label, create_function('$post, $metabox', 'echo EEH_Template::display_template( $metabox["args"]["template_path"], $metabox["args"]["template_args"], TRUE );'), $this->_current_screen_id, 'normal', 'high', $callback_args); |
|
204 | 204 | } |
205 | 205 | } |
206 | 206 | |
207 | 207 | |
208 | 208 | protected function _developers() { |
209 | - $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH . 'developers_admin_details.template.php'; |
|
210 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template($template_path, array(), true ); |
|
209 | + $template_path = EE_SUPPORT_ADMIN_TEMPLATE_PATH.'developers_admin_details.template.php'; |
|
210 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template($template_path, array(), true); |
|
211 | 211 | $this->display_admin_page_with_sidebar(); |
212 | 212 | } |
213 | 213 |
@@ -6,8 +6,9 @@ |
||
6 | 6 | * @package Event Espresso |
7 | 7 | * @subpackage messages |
8 | 8 | */ |
9 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
9 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
10 | 10 | exit('NO direct script access allowed'); |
11 | +} |
|
11 | 12 | |
12 | 13 | /** |
13 | 14 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
3 | 3 | exit('NO direct script access allowed'); |
4 | 4 | |
5 | 5 | /** |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | |
33 | 33 | public function __construct() { |
34 | 34 | //define some help/support page related constants |
35 | - define( 'EE_SUPPORT_PG_SLUG', 'espresso_support' ); |
|
36 | - define( 'EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG )); |
|
37 | - define( 'EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
38 | - define( 'EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/' ); |
|
35 | + define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
36 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page='.EE_SUPPORT_PG_SLUG)); |
|
37 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'support/templates/'); |
|
38 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES.'support/'); |
|
39 | 39 | |
40 | 40 | parent::__construct(); |
41 | 41 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | protected function _set_menu_map() { |
48 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
48 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
49 | 49 | 'menu_group' => 'extras', |
50 | 50 | 'menu_order' => 30, |
51 | 51 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
@@ -6,8 +6,9 @@ |
||
6 | 6 | * @package Event Espresso |
7 | 7 | * @subpackage messages |
8 | 8 | */ |
9 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
9 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
10 | 10 | exit('NO direct script access allowed'); |
11 | +} |
|
11 | 12 | |
12 | 13 | /** |
13 | 14 | * |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | <?php _e('As with most open source programs (and closed licensed programs), the possibility exists that you may find the occasional bug or discover that something is not working as expected. Please don\'t panic! We are here to help you.', 'event_espresso'); ?> |
10 | 10 | </p> |
11 | 11 | <p> |
12 | - <?php printf( __('If your problems are not urgent, please post in our %ssupport forums%s. If you need immediate help, please purchase a support token and you\'ll be able to schedule one-on-one time with a member of our team.', 'event_espresso'), '<a href="http://eventespresso.com/support/forums/" target="_blank">', '</a>' ); ?> |
|
12 | + <?php printf(__('If your problems are not urgent, please post in our %ssupport forums%s. If you need immediate help, please purchase a support token and you\'ll be able to schedule one-on-one time with a member of our team.', 'event_espresso'), '<a href="http://eventespresso.com/support/forums/" target="_blank">', '</a>'); ?> |
|
13 | 13 | </p> |
14 | 14 | <p class="ee-attention"> |
15 | 15 | <strong class="red_text"> |
@@ -30,6 +30,6 @@ discard block |
||
30 | 30 | <?php _e('A support token can be used towards receiving support for a single incident. Support is provided up to 30 minutes via phone call, instant message, or priority email support. Here are examples of how support tokens can be used: how-to questions, best practices questions, technical issues, advising on custom development.', 'event_espresso'); ?> |
31 | 31 | </p> |
32 | 32 | <p> |
33 | - <?php printf( __('You can learn more about support tokens and purchase one by %sclicking here%s.', 'event_espresso'),'<a href="http://eventespresso.com/product/priority-support-tokens/?utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=help_support_tab&utm_content=support_token" target="_blank">','</a>'); ?> |
|
33 | + <?php printf(__('You can learn more about support tokens and purchase one by %sclicking here%s.', 'event_espresso'), '<a href="http://eventespresso.com/product/priority-support-tokens/?utm_source=ee4_plugin_admin&utm_medium=link&utm_campaign=help_support_tab&utm_content=support_token" target="_blank">', '</a>'); ?> |
|
34 | 34 | </p> |
35 | 35 | </div> |
36 | 36 | \ No newline at end of file |
@@ -7,14 +7,14 @@ |
||
7 | 7 | $is_php_valid = version_compare(phpversion(), $php_req_version, '>'); |
8 | 8 | $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>'); |
9 | 9 | |
10 | - if (!version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | - echo '<p class="red_alert">' . __('This version of Event Espresso requires WordPress version', 'event_espresso') . ' ' . $wp_req_version . '+. ' . __('Please upgrade to the latest version of WordPress.', 'event_espresso') . '</p>'; |
|
10 | + if ( ! version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | + echo '<p class="red_alert">'.__('This version of Event Espresso requires WordPress version', 'event_espresso').' '.$wp_req_version.'+. '.__('Please upgrade to the latest version of WordPress.', 'event_espresso').'</p>'; |
|
12 | 12 | } |
13 | - if (!$is_php_valid) { |
|
14 | - echo '<p class="red_alert">' . __('Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', 'event_espresso') . ' ' . $php_req_version . '</p>'; |
|
13 | + if ( ! $is_php_valid) { |
|
14 | + echo '<p class="red_alert">'.__('Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', 'event_espresso').' '.$php_req_version.'</p>'; |
|
15 | 15 | } |
16 | - if (!$is_mysql_valid) { |
|
17 | - echo '<p class="red_alert">' . __('Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', 'event_espresso') . ' ' . $mysql_req_version . '</p>'; |
|
16 | + if ( ! $is_mysql_valid) { |
|
17 | + echo '<p class="red_alert">'.__('Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', 'event_espresso').' '.$mysql_req_version.'</p>'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $query_args = array( |