@@ -9,7 +9,7 @@ |
||
9 | 9 | </label> |
10 | 10 | </th> |
11 | 11 | <td> |
12 | - <?php echo EEH_Form_Fields::select_input('show_pending_payment_options', $values, $show_pending_payment_options ); ?> |
|
12 | + <?php echo EEH_Form_Fields::select_input('show_pending_payment_options', $values, $show_pending_payment_options); ?> |
|
13 | 13 | |
14 | 14 | </td> |
15 | 15 | </tr> |
@@ -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 | /** |
@@ -33,16 +33,16 @@ discard block |
||
33 | 33 | |
34 | 34 | public function __construct() { |
35 | 35 | //define some constants |
36 | - define( 'REGISTRATION_FORM_PG_SLUG', 'espresso_registration_form' ); |
|
37 | - define( 'REGISTRATION_FORM_LABEL', __('Registration Form', 'event_espresso')); |
|
38 | - define( 'REGISTRATION_FORM_PG_NAME', REGISTRATION_FORM_LABEL ); |
|
39 | - define( 'REGISTRATION_FORM_ADMIN', EE_ADMIN_PAGES . 'registration_form' . DS ); |
|
40 | - define( 'REGISTRATION_FORM_ADMIN_URL', admin_url( 'admin.php?page=' . REGISTRATION_FORM_PG_SLUG )); |
|
41 | - define( 'EE_FORMS_ADMIN_URL', admin_url('admin.php?page=' . REGISTRATION_FORM_PG_SLUG )); |
|
42 | - define( 'REGISTRATION_FORM_ASSETS_PATH', REGISTRATION_FORM_ADMIN . 'assets' . DS ); |
|
43 | - define( 'REGISTRATION_FORM_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registration_form/assets/' ); |
|
44 | - define( 'REGISTRATION_FORM_TEMPLATE_PATH', REGISTRATION_FORM_ADMIN . 'templates' . DS ); |
|
45 | - define( 'REGISTRATION_FORM_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registration_form/templates/' ); |
|
36 | + define('REGISTRATION_FORM_PG_SLUG', 'espresso_registration_form'); |
|
37 | + define('REGISTRATION_FORM_LABEL', __('Registration Form', 'event_espresso')); |
|
38 | + define('REGISTRATION_FORM_PG_NAME', REGISTRATION_FORM_LABEL); |
|
39 | + define('REGISTRATION_FORM_ADMIN', EE_ADMIN_PAGES.'registration_form'.DS); |
|
40 | + define('REGISTRATION_FORM_ADMIN_URL', admin_url('admin.php?page='.REGISTRATION_FORM_PG_SLUG)); |
|
41 | + define('EE_FORMS_ADMIN_URL', admin_url('admin.php?page='.REGISTRATION_FORM_PG_SLUG)); |
|
42 | + define('REGISTRATION_FORM_ASSETS_PATH', REGISTRATION_FORM_ADMIN.'assets'.DS); |
|
43 | + define('REGISTRATION_FORM_ASSETS_URL', EE_ADMIN_PAGES_URL.'registration_form/assets/'); |
|
44 | + define('REGISTRATION_FORM_TEMPLATE_PATH', REGISTRATION_FORM_ADMIN.'templates'.DS); |
|
45 | + define('REGISTRATION_FORM_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'registration_form/templates/'); |
|
46 | 46 | parent::__construct(); |
47 | 47 | } |
48 | 48 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | |
55 | 55 | protected function _set_menu_map() { |
56 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
56 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
57 | 57 | 'menu_group' => 'management', |
58 | 58 | 'menu_order' => 30, |
59 | 59 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
@@ -1,6 +1,7 @@ |
||
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 | 6 | /** |
6 | 7 | * Event Espresso |
@@ -26,8 +26,8 @@ |
||
26 | 26 | <?php _e('This shows the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', 'event_espresso'); ?> |
27 | 27 | </li> |
28 | 28 | <li> |
29 | -<strong><?php _e('Answer Options (for applicable question types)', 'event_espresso');?></strong><br/> |
|
30 | -<?php _e('Values do not allow any HTML, however, descriptions do allow HTML.', 'event_espresso');?> |
|
29 | +<strong><?php _e('Answer Options (for applicable question types)', 'event_espresso'); ?></strong><br/> |
|
30 | +<?php _e('Values do not allow any HTML, however, descriptions do allow HTML.', 'event_espresso'); ?> |
|
31 | 31 | </li> |
32 | 32 | <li> |
33 | 33 | <strong><?php _e('Required Question', 'event_espresso'); ?></strong><br /> |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * ------------------------------------------------------------------------ |
23 | 23 | */ |
24 | -class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init { |
|
24 | +class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init { |
|
25 | 25 | |
26 | 26 | |
27 | 27 | |
@@ -34,16 +34,16 @@ discard block |
||
34 | 34 | * @return void |
35 | 35 | */ |
36 | 36 | public function __construct() { |
37 | - do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
38 | - if ( ! defined( 'REG_PG_SLUG' ) ) { |
|
39 | - define( 'REG_PG_SLUG', 'espresso_registrations' ); |
|
40 | - define( 'REG_PG_NAME', ucwords( str_replace( '_', '', REG_PG_SLUG ))); |
|
41 | - define( 'REG_ADMIN', EE_ADMIN_PAGES . 'registrations' . DS ); |
|
42 | - define( 'REG_ADMIN_URL', admin_url( 'admin.php?page=' . REG_PG_SLUG )); |
|
43 | - define( 'REG_ASSETS_PATH', REG_ADMIN . 'assets' . DS ); |
|
44 | - define( 'REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/' ); |
|
45 | - define( 'REG_TEMPLATE_PATH', REG_ADMIN . 'templates' . DS ); |
|
46 | - define( 'REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/' ); |
|
37 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
38 | + if ( ! defined('REG_PG_SLUG')) { |
|
39 | + define('REG_PG_SLUG', 'espresso_registrations'); |
|
40 | + define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG))); |
|
41 | + define('REG_ADMIN', EE_ADMIN_PAGES.'registrations'.DS); |
|
42 | + define('REG_ADMIN_URL', admin_url('admin.php?page='.REG_PG_SLUG)); |
|
43 | + define('REG_ASSETS_PATH', REG_ADMIN.'assets'.DS); |
|
44 | + define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL.'registrations/assets/'); |
|
45 | + define('REG_TEMPLATE_PATH', REG_ADMIN.'templates'.DS); |
|
46 | + define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'registrations/templates/'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | parent::__construct(); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | |
61 | 61 | protected function _set_menu_map() { |
62 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( array( |
|
62 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu(array( |
|
63 | 63 | 'menu_group' => 'main', |
64 | 64 | 'menu_order' => 40, |
65 | 65 | 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Event Espresso |
4 | 6 | * |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -EEH_Template_Validator::verify_instanceof( $attendee, '$attendee', 'EE_Attendee'); |
|
2 | +EEH_Template_Validator::verify_instanceof($attendee, '$attendee', 'EE_Attendee'); |
|
3 | 3 | /* |
4 | 4 | * @var $attendee EE_Attendee |
5 | 5 | * @var $state_html html for displaying the attendee's state |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -EEH_Template_Validator::verify_instanceof( $attendee, '$attendee', 'EE_Attendee'); |
|
2 | +EEH_Template_Validator::verify_instanceof($attendee, '$attendee', 'EE_Attendee'); |
|
3 | 3 | /** |
4 | 4 | * @var $attendee - instance of EE_Attendee |
5 | 5 | */ |
@@ -11,8 +11,11 @@ |
||
11 | 11 | <?php echo $att_questions; ?> |
12 | 12 | <?php if ( !empty($att_questions) ) : ?> |
13 | 13 | <input id="reg-admin-attendee-questions-submit" class="button-primary" value="Update Registration Questions" type="submit" /> |
14 | - <?php else : ?> |
|
15 | - <p class="ee-attention"><?php _e('There were no custom questions asked for this registration.', 'event_espresso'); ?></p> |
|
14 | + <?php else { |
|
15 | + : ?> |
|
16 | + <p class="ee-attention"><?php _e('There were no custom questions asked for this registration.', 'event_espresso'); |
|
17 | +} |
|
18 | +?></p> |
|
16 | 19 | <?php endif; ?> |
17 | 20 | |
18 | 21 | </form> |
@@ -2,14 +2,14 @@ |
||
2 | 2 | <p><?php _e('This displays the custom questions and answers for this registrant. Please note that any answers to system questions have been saved with the contact record. You can edit those answers via the "View/Edit this Contact" link in the Contact Details metabox in the sidebar.', 'event_espresso'); ?></p> |
3 | 3 | |
4 | 4 | <form name="reg-admin-attendee-questions-frm" id="reg-admin-attendee-questions-frm" action="<?php echo REG_ADMIN_URL; ?>" method="post"> |
5 | - <?php wp_nonce_field( $reg_questions_form_action . '_nonce', $reg_questions_form_action . '_nonce' ); ?> |
|
5 | + <?php wp_nonce_field($reg_questions_form_action.'_nonce', $reg_questions_form_action.'_nonce'); ?> |
|
6 | 6 | <input type="hidden" name="page" value="<?php echo REG_PG_SLUG; ?>"/> |
7 | 7 | <input type="hidden" name="action" value="<?php echo $reg_questions_form_action; ?>"/> |
8 | 8 | <input type="hidden" name="_REG_ID" value="<?php echo $REG_ID; ?>"/> |
9 | 9 | <input type="hidden" name="espresso_ajax" id="espresso-ajax" value="0"/> |
10 | 10 | <input type="hidden" name="noheader" id="reg-admin-noheader-inp" value="true"/> |
11 | 11 | <?php echo $att_questions; ?> |
12 | - <?php if ( !empty($att_questions) ) : ?> |
|
12 | + <?php if ( ! empty($att_questions)) : ?> |
|
13 | 13 | <input id="reg-admin-attendee-questions-submit" class="button-primary" value="Update Registration Questions" type="submit" /> |
14 | 14 | <?php else : ?> |
15 | 15 | <p class="ee-attention"><?php _e('There were no custom questions asked for this registration.', 'event_espresso'); ?></p> |
@@ -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; ?> |