@@ -13,70 +13,70 @@ |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | |
16 | - /** |
|
17 | - * $CPT - the current page, if it utilizes CPTs |
|
18 | - * |
|
19 | - * @var object |
|
20 | - * @access protected |
|
21 | - */ |
|
22 | - protected $CPT = null; |
|
16 | + /** |
|
17 | + * $CPT - the current page, if it utilizes CPTs |
|
18 | + * |
|
19 | + * @var object |
|
20 | + * @access protected |
|
21 | + */ |
|
22 | + protected $CPT = null; |
|
23 | 23 | |
24 | 24 | |
25 | - /** |
|
26 | - * class constructor |
|
27 | - * |
|
28 | - * @access private |
|
29 | - * @param array $arguments |
|
30 | - * @return \EE_CPT_Default_Strategy |
|
31 | - */ |
|
32 | - public function __construct($arguments = array()) |
|
33 | - { |
|
34 | - $this->CPT = isset($arguments['CPT']) ? $arguments['CPT'] : null; |
|
35 | - } |
|
25 | + /** |
|
26 | + * class constructor |
|
27 | + * |
|
28 | + * @access private |
|
29 | + * @param array $arguments |
|
30 | + * @return \EE_CPT_Default_Strategy |
|
31 | + */ |
|
32 | + public function __construct($arguments = array()) |
|
33 | + { |
|
34 | + $this->CPT = isset($arguments['CPT']) ? $arguments['CPT'] : null; |
|
35 | + } |
|
36 | 36 | |
37 | 37 | |
38 | - /** |
|
39 | - * pre_get_posts |
|
40 | - * |
|
41 | - * @access public |
|
42 | - * @param \WP_Query $WP_Query |
|
43 | - * @return \WP_Query |
|
44 | - */ |
|
45 | - public function pre_get_posts(WP_Query $WP_Query) |
|
46 | - { |
|
47 | - if (! $WP_Query->is_main_query() && ! $WP_Query->is_archive()) { |
|
48 | - return $WP_Query; |
|
49 | - } |
|
50 | - return $WP_Query; |
|
51 | - } |
|
38 | + /** |
|
39 | + * pre_get_posts |
|
40 | + * |
|
41 | + * @access public |
|
42 | + * @param \WP_Query $WP_Query |
|
43 | + * @return \WP_Query |
|
44 | + */ |
|
45 | + public function pre_get_posts(WP_Query $WP_Query) |
|
46 | + { |
|
47 | + if (! $WP_Query->is_main_query() && ! $WP_Query->is_archive()) { |
|
48 | + return $WP_Query; |
|
49 | + } |
|
50 | + return $WP_Query; |
|
51 | + } |
|
52 | 52 | |
53 | 53 | |
54 | - /** |
|
55 | - * wp |
|
56 | - * |
|
57 | - * @access public |
|
58 | - * @param \WP_Post[] $posts |
|
59 | - * @param \WP_Query $WP_Query |
|
60 | - * @return \WP_Post[] |
|
61 | - */ |
|
62 | - public function the_posts($posts, WP_Query $WP_Query) |
|
63 | - { |
|
64 | - return $posts; |
|
65 | - } |
|
54 | + /** |
|
55 | + * wp |
|
56 | + * |
|
57 | + * @access public |
|
58 | + * @param \WP_Post[] $posts |
|
59 | + * @param \WP_Query $WP_Query |
|
60 | + * @return \WP_Post[] |
|
61 | + */ |
|
62 | + public function the_posts($posts, WP_Query $WP_Query) |
|
63 | + { |
|
64 | + return $posts; |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - /** |
|
69 | - * get_EE_post_type_metadata |
|
70 | - * |
|
71 | - * @access public |
|
72 | - * @param mixed $meta_value |
|
73 | - * @param int $post_id |
|
74 | - * @param string $meta_key |
|
75 | - * @param string $single |
|
76 | - * @return mixed |
|
77 | - */ |
|
78 | - public function get_EE_post_type_metadata($meta_value = null, $post_id, $meta_key, $single) |
|
79 | - { |
|
80 | - return $meta_value; |
|
81 | - } |
|
68 | + /** |
|
69 | + * get_EE_post_type_metadata |
|
70 | + * |
|
71 | + * @access public |
|
72 | + * @param mixed $meta_value |
|
73 | + * @param int $post_id |
|
74 | + * @param string $meta_key |
|
75 | + * @param string $single |
|
76 | + * @return mixed |
|
77 | + */ |
|
78 | + public function get_EE_post_type_metadata($meta_value = null, $post_id, $meta_key, $single) |
|
79 | + { |
|
80 | + return $meta_value; |
|
81 | + } |
|
82 | 82 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function pre_get_posts(WP_Query $WP_Query) |
46 | 46 | { |
47 | - if (! $WP_Query->is_main_query() && ! $WP_Query->is_archive()) { |
|
47 | + if ( ! $WP_Query->is_main_query() && ! $WP_Query->is_archive()) { |
|
48 | 48 | return $WP_Query; |
49 | 49 | } |
50 | 50 | return $WP_Query; |
@@ -24,39 +24,39 @@ |
||
24 | 24 | class EE_CPT_Attendee_Strategy |
25 | 25 | { |
26 | 26 | |
27 | - /** |
|
28 | - * $CPT - the current page, if it utilizes CPTs |
|
29 | - * |
|
30 | - * @var array |
|
31 | - * @access protected |
|
32 | - */ |
|
33 | - protected $CPT = null; |
|
27 | + /** |
|
28 | + * $CPT - the current page, if it utilizes CPTs |
|
29 | + * |
|
30 | + * @var array |
|
31 | + * @access protected |
|
32 | + */ |
|
33 | + protected $CPT = null; |
|
34 | 34 | |
35 | 35 | |
36 | - /** |
|
37 | - * class constructor |
|
38 | - * |
|
39 | - * @access public |
|
40 | - * @param array $arguments |
|
41 | - * @return \EE_CPT_Attendee_Strategy |
|
42 | - */ |
|
43 | - public function __construct($arguments = array()) |
|
44 | - { |
|
45 | - $this->CPT = isset($arguments['CPT']) ? $arguments['CPT'] : null; |
|
46 | - $WP_Query = isset($arguments['WP_Query']) ? $arguments['WP_Query'] : null; |
|
47 | - } |
|
36 | + /** |
|
37 | + * class constructor |
|
38 | + * |
|
39 | + * @access public |
|
40 | + * @param array $arguments |
|
41 | + * @return \EE_CPT_Attendee_Strategy |
|
42 | + */ |
|
43 | + public function __construct($arguments = array()) |
|
44 | + { |
|
45 | + $this->CPT = isset($arguments['CPT']) ? $arguments['CPT'] : null; |
|
46 | + $WP_Query = isset($arguments['WP_Query']) ? $arguments['WP_Query'] : null; |
|
47 | + } |
|
48 | 48 | |
49 | 49 | |
50 | - /** |
|
51 | - * the_posts |
|
52 | - * |
|
53 | - * @access public |
|
54 | - * @param $posts |
|
55 | - * @param WP_Query $wp_query |
|
56 | - * @return void |
|
57 | - */ |
|
58 | - public function the_posts($posts, WP_Query $wp_query) |
|
59 | - { |
|
60 | - return $posts; |
|
61 | - } |
|
50 | + /** |
|
51 | + * the_posts |
|
52 | + * |
|
53 | + * @access public |
|
54 | + * @param $posts |
|
55 | + * @param WP_Query $wp_query |
|
56 | + * @return void |
|
57 | + */ |
|
58 | + public function the_posts($posts, WP_Query $wp_query) |
|
59 | + { |
|
60 | + return $posts; |
|
61 | + } |
|
62 | 62 | } |
@@ -13,82 +13,82 @@ |
||
13 | 13 | class EED_Invalid_Checkout_Access extends EED_Module |
14 | 14 | { |
15 | 15 | |
16 | - /** |
|
17 | - * @var InvalidCheckoutAccess $invalid_checkout_access_form |
|
18 | - */ |
|
19 | - private static $invalid_checkout_access_form; |
|
16 | + /** |
|
17 | + * @var InvalidCheckoutAccess $invalid_checkout_access_form |
|
18 | + */ |
|
19 | + private static $invalid_checkout_access_form; |
|
20 | 20 | |
21 | - /** |
|
22 | - * set_hooks - for hooking into EE Core, other modules, etc |
|
23 | - */ |
|
24 | - public static function set_hooks() |
|
25 | - { |
|
26 | - } |
|
21 | + /** |
|
22 | + * set_hooks - for hooking into EE Core, other modules, etc |
|
23 | + */ |
|
24 | + public static function set_hooks() |
|
25 | + { |
|
26 | + } |
|
27 | 27 | |
28 | 28 | |
29 | - /** |
|
30 | - * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
31 | - */ |
|
32 | - public static function set_hooks_admin() |
|
33 | - { |
|
34 | - add_action( |
|
35 | - 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
36 | - array('EED_Invalid_Checkout_Access', 'display_invalid_checkout_access_form'), |
|
37 | - 15 |
|
38 | - ); |
|
39 | - add_filter( |
|
40 | - 'FHEE__Extend_Registration_Form_Admin_Page___update_reg_form_settings__CFG_registration', |
|
41 | - array('EED_Invalid_Checkout_Access', 'process_invalid_checkout_access_form') |
|
42 | - ); |
|
43 | - } |
|
29 | + /** |
|
30 | + * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
31 | + */ |
|
32 | + public static function set_hooks_admin() |
|
33 | + { |
|
34 | + add_action( |
|
35 | + 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
36 | + array('EED_Invalid_Checkout_Access', 'display_invalid_checkout_access_form'), |
|
37 | + 15 |
|
38 | + ); |
|
39 | + add_filter( |
|
40 | + 'FHEE__Extend_Registration_Form_Admin_Page___update_reg_form_settings__CFG_registration', |
|
41 | + array('EED_Invalid_Checkout_Access', 'process_invalid_checkout_access_form') |
|
42 | + ); |
|
43 | + } |
|
44 | 44 | |
45 | 45 | |
46 | - /** |
|
47 | - * run - initial module setup |
|
48 | - * this method is primarily used for activating resources in the EE_Front_Controller thru the use of filters |
|
49 | - * |
|
50 | - * @var WP $WP |
|
51 | - */ |
|
52 | - public function run($WP) |
|
53 | - { |
|
54 | - // TODO: Implement run() method. |
|
55 | - } |
|
46 | + /** |
|
47 | + * run - initial module setup |
|
48 | + * this method is primarily used for activating resources in the EE_Front_Controller thru the use of filters |
|
49 | + * |
|
50 | + * @var WP $WP |
|
51 | + */ |
|
52 | + public function run($WP) |
|
53 | + { |
|
54 | + // TODO: Implement run() method. |
|
55 | + } |
|
56 | 56 | |
57 | 57 | |
58 | - /** |
|
59 | - * @return InvalidCheckoutAccess |
|
60 | - */ |
|
61 | - public static function getInvalidCheckoutAccess() |
|
62 | - { |
|
63 | - if (! self::$invalid_checkout_access_form instanceof InvalidCheckoutAccess) { |
|
64 | - self::$invalid_checkout_access_form = new InvalidCheckoutAccess(); |
|
65 | - } |
|
66 | - return self::$invalid_checkout_access_form; |
|
67 | - } |
|
58 | + /** |
|
59 | + * @return InvalidCheckoutAccess |
|
60 | + */ |
|
61 | + public static function getInvalidCheckoutAccess() |
|
62 | + { |
|
63 | + if (! self::$invalid_checkout_access_form instanceof InvalidCheckoutAccess) { |
|
64 | + self::$invalid_checkout_access_form = new InvalidCheckoutAccess(); |
|
65 | + } |
|
66 | + return self::$invalid_checkout_access_form; |
|
67 | + } |
|
68 | 68 | |
69 | 69 | |
70 | - /** |
|
71 | - * email_validation_settings_form |
|
72 | - * |
|
73 | - * @return void |
|
74 | - * @throws \EE_Error |
|
75 | - */ |
|
76 | - public static function display_invalid_checkout_access_form() |
|
77 | - { |
|
78 | - $invalid_checkout_access_form = \EED_Invalid_Checkout_Access::getInvalidCheckoutAccess(); |
|
79 | - echo $invalid_checkout_access_form->getForm()->get_html(); |
|
80 | - } |
|
70 | + /** |
|
71 | + * email_validation_settings_form |
|
72 | + * |
|
73 | + * @return void |
|
74 | + * @throws \EE_Error |
|
75 | + */ |
|
76 | + public static function display_invalid_checkout_access_form() |
|
77 | + { |
|
78 | + $invalid_checkout_access_form = \EED_Invalid_Checkout_Access::getInvalidCheckoutAccess(); |
|
79 | + echo $invalid_checkout_access_form->getForm()->get_html(); |
|
80 | + } |
|
81 | 81 | |
82 | 82 | |
83 | - /** |
|
84 | - * email_validation_settings_form |
|
85 | - * |
|
86 | - * @param \EE_Registration_Config $EE_Registration_Config |
|
87 | - * @return \EE_Registration_Config |
|
88 | - */ |
|
89 | - public static function process_invalid_checkout_access_form(\EE_Registration_Config $EE_Registration_Config) |
|
90 | - { |
|
91 | - $invalid_checkout_access_form = \EED_Invalid_Checkout_Access::getInvalidCheckoutAccess(); |
|
92 | - return $invalid_checkout_access_form->processForm($EE_Registration_Config); |
|
93 | - } |
|
83 | + /** |
|
84 | + * email_validation_settings_form |
|
85 | + * |
|
86 | + * @param \EE_Registration_Config $EE_Registration_Config |
|
87 | + * @return \EE_Registration_Config |
|
88 | + */ |
|
89 | + public static function process_invalid_checkout_access_form(\EE_Registration_Config $EE_Registration_Config) |
|
90 | + { |
|
91 | + $invalid_checkout_access_form = \EED_Invalid_Checkout_Access::getInvalidCheckoutAccess(); |
|
92 | + return $invalid_checkout_access_form->processForm($EE_Registration_Config); |
|
93 | + } |
|
94 | 94 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | public static function getInvalidCheckoutAccess() |
62 | 62 | { |
63 | - if (! self::$invalid_checkout_access_form instanceof InvalidCheckoutAccess) { |
|
63 | + if ( ! self::$invalid_checkout_access_form instanceof InvalidCheckoutAccess) { |
|
64 | 64 | self::$invalid_checkout_access_form = new InvalidCheckoutAccess(); |
65 | 65 | } |
66 | 66 | return self::$invalid_checkout_access_form; |
@@ -12,69 +12,69 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * @return EED_Csv |
|
17 | - */ |
|
18 | - public static function instance() |
|
19 | - { |
|
20 | - return parent::get_instance(__CLASS__); |
|
21 | - } |
|
15 | + /** |
|
16 | + * @return EED_Csv |
|
17 | + */ |
|
18 | + public static function instance() |
|
19 | + { |
|
20 | + return parent::get_instance(__CLASS__); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - /** |
|
25 | - * set_hooks - for hooking into EE Core, other modules, etc |
|
26 | - * |
|
27 | - * @access public |
|
28 | - * @return void |
|
29 | - */ |
|
30 | - public static function set_hooks() |
|
31 | - { |
|
32 | - } |
|
24 | + /** |
|
25 | + * set_hooks - for hooking into EE Core, other modules, etc |
|
26 | + * |
|
27 | + * @access public |
|
28 | + * @return void |
|
29 | + */ |
|
30 | + public static function set_hooks() |
|
31 | + { |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
36 | - * |
|
37 | - * @access public |
|
38 | - * @return void |
|
39 | - */ |
|
40 | - public static function set_hooks_admin() |
|
41 | - { |
|
42 | - } |
|
34 | + /** |
|
35 | + * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
36 | + * |
|
37 | + * @access public |
|
38 | + * @return void |
|
39 | + */ |
|
40 | + public static function set_hooks_admin() |
|
41 | + { |
|
42 | + } |
|
43 | 43 | |
44 | 44 | |
45 | - /** |
|
46 | - * run - initial module setup |
|
47 | - * |
|
48 | - * @access public |
|
49 | - * @return void |
|
50 | - */ |
|
51 | - public function run($WP) |
|
52 | - { |
|
53 | - } |
|
45 | + /** |
|
46 | + * run - initial module setup |
|
47 | + * |
|
48 | + * @access public |
|
49 | + * @return void |
|
50 | + */ |
|
51 | + public function run($WP) |
|
52 | + { |
|
53 | + } |
|
54 | 54 | |
55 | 55 | |
56 | - /** |
|
57 | - * export |
|
58 | - * |
|
59 | - * @access public |
|
60 | - * @return void |
|
61 | - */ |
|
62 | - public function export() |
|
63 | - { |
|
64 | - $Export = EE_Registry::instance()->load_class('Export'); |
|
65 | - $Export->export(); |
|
66 | - } |
|
56 | + /** |
|
57 | + * export |
|
58 | + * |
|
59 | + * @access public |
|
60 | + * @return void |
|
61 | + */ |
|
62 | + public function export() |
|
63 | + { |
|
64 | + $Export = EE_Registry::instance()->load_class('Export'); |
|
65 | + $Export->export(); |
|
66 | + } |
|
67 | 67 | |
68 | 68 | |
69 | - /** |
|
70 | - * import |
|
71 | - * |
|
72 | - * @access public |
|
73 | - * @return void |
|
74 | - */ |
|
75 | - public function import() |
|
76 | - { |
|
77 | - $Import = EE_Registry::instance()->load_class('Import'); |
|
78 | - $Import->import(); |
|
79 | - } |
|
69 | + /** |
|
70 | + * import |
|
71 | + * |
|
72 | + * @access public |
|
73 | + * @return void |
|
74 | + */ |
|
75 | + public function import() |
|
76 | + { |
|
77 | + $Import = EE_Registry::instance()->load_class('Import'); |
|
78 | + $Import->import(); |
|
79 | + } |
|
80 | 80 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | if ($ticket instanceof EE_Ticket) { |
15 | 15 | do_action('AHEE__ticket_selector_chart__template__before_ticket_selector', $event); |
16 | 16 | $ticket_description .= ! empty($ticket_description) |
17 | - ? '<br />' . $ticket_status_display |
|
17 | + ? '<br />'.$ticket_status_display |
|
18 | 18 | : $ticket_status_display; |
19 | 19 | if (strpos($ticket_description, '<div') === false) { |
20 | 20 | $ticket_description = "<p>{$ticket_description}</p>"; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | <div id="no-tkt-slctr-ticket-dv-<?php echo $EVT_ID; ?>" class="no-tkt-slctr-ticket-dv"> |
24 | 24 | <div class="no-tkt-slctr-ticket-content-dv"> |
25 | 25 | <h5><?php echo $ticket->name(); ?></h5> |
26 | - <?php if (! empty($ticket_description)) { ?> |
|
26 | + <?php if ( ! empty($ticket_description)) { ?> |
|
27 | 27 | <?php echo $ticket_description; ?> |
28 | 28 | <?php } ?> |
29 | 29 | </div><!-- .no-tkt-slctr-ticket-content-dv --> |
@@ -12,14 +12,14 @@ discard block |
||
12 | 12 | <input type="hidden" name="tkt-slctr-ticket-id-<?php echo $EVT_ID; ?>[]" value="<?php echo $TKT_ID; ?>"/> |
13 | 13 | <?php |
14 | 14 | if ($ticket instanceof EE_Ticket) { |
15 | - do_action('AHEE__ticket_selector_chart__template__before_ticket_selector', $event); |
|
16 | - $ticket_description .= ! empty($ticket_description) |
|
17 | - ? '<br />' . $ticket_status_display |
|
18 | - : $ticket_status_display; |
|
19 | - if (strpos($ticket_description, '<div') === false) { |
|
20 | - $ticket_description = "<p>{$ticket_description}</p>"; |
|
21 | - } |
|
22 | - ?> |
|
15 | + do_action('AHEE__ticket_selector_chart__template__before_ticket_selector', $event); |
|
16 | + $ticket_description .= ! empty($ticket_description) |
|
17 | + ? '<br />' . $ticket_status_display |
|
18 | + : $ticket_status_display; |
|
19 | + if (strpos($ticket_description, '<div') === false) { |
|
20 | + $ticket_description = "<p>{$ticket_description}</p>"; |
|
21 | + } |
|
22 | + ?> |
|
23 | 23 | <div id="no-tkt-slctr-ticket-dv-<?php echo $EVT_ID; ?>" class="no-tkt-slctr-ticket-dv"> |
24 | 24 | <div class="no-tkt-slctr-ticket-content-dv"> |
25 | 25 | <h5><?php echo $ticket->name(); ?></h5> |
@@ -28,5 +28,5 @@ discard block |
||
28 | 28 | <?php } ?> |
29 | 29 | </div><!-- .no-tkt-slctr-ticket-content-dv --> |
30 | 30 | <?php |
31 | - do_action('AHEE__ticket_selector_chart__template__after_ticket_selector', $EVT_ID, $event); |
|
31 | + do_action('AHEE__ticket_selector_chart__template__after_ticket_selector', $EVT_ID, $event); |
|
32 | 32 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | esc_html__('Goes On Sale:', 'event_espresso') |
50 | 50 | ); ?></span> |
51 | 51 | <span class="dashicons dashicons-calendar"></span> |
52 | - <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format) . ' '; ?> |
|
52 | + <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format).' '; ?> |
|
53 | 53 | <span class="dashicons dashicons-clock"></span> |
54 | 54 | <?php echo $ticket->get_i18n_datetime('TKT_start_date', $time_format); ?> |
55 | 55 | <br/> |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | esc_html__('Sales End:', 'event_espresso') |
60 | 60 | ); ?></span> |
61 | 61 | <span class="dashicons dashicons-calendar"></span> |
62 | - <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format) . ' '; ?> |
|
62 | + <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format).' '; ?> |
|
63 | 63 | <span class="dashicons dashicons-clock"></span> |
64 | 64 | <?php echo $ticket->get_i18n_datetime('TKT_end_date', $time_format); ?> |
65 | 65 | <br/> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | <br/> |
117 | 117 | <?php } ?> |
118 | 118 | |
119 | - <?php if ((! defined('EE_DECAF') || EE_DECAF !== true) && $ticket->uses() !== EE_INF) { ?> |
|
119 | + <?php if (( ! defined('EE_DECAF') || EE_DECAF !== true) && $ticket->uses() !== EE_INF) { ?> |
|
120 | 120 | <section class="tckt-slctr-tkt-uses-sctn"> |
121 | 121 | <h5> |
122 | 122 | <?php echo apply_filters( |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | <?php |
150 | 150 | $datetimes = $ticket->datetimes_ordered($event_is_expired, false); |
151 | 151 | $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width'; |
152 | - if (! empty($datetimes)) { ?> |
|
152 | + if ( ! empty($datetimes)) { ?> |
|
153 | 153 | <section class="tckt-slctr-tkt-datetimes-sctn"> |
154 | 154 | <h5> |
155 | 155 | <?php echo apply_filters( |
@@ -260,10 +260,10 @@ discard block |
||
260 | 260 | esc_html__('Remaining', 'event_espresso') |
261 | 261 | ); ?>" class="cntr small-text"> |
262 | 262 | <?php echo $remaining === EE_INF |
263 | - ? '<span class="smaller-text">' . esc_html__( |
|
263 | + ? '<span class="smaller-text">'.esc_html__( |
|
264 | 264 | 'unlimited ', |
265 | 265 | 'event_espresso' |
266 | - ) . '</span>' : $remaining; ?> |
|
266 | + ).'</span>' : $remaining; ?> |
|
267 | 267 | </td> |
268 | 268 | <td data-th="<?php |
269 | 269 | echo apply_filters( |
@@ -273,10 +273,10 @@ discard block |
||
273 | 273 | <?php echo $datetime->sold(); ?> |
274 | 274 | </td> |
275 | 275 | <?php $tkts_left = $datetime->sold_out() |
276 | - ? '<span class="sold-out smaller-text">' . esc_html__( |
|
276 | + ? '<span class="sold-out smaller-text">'.esc_html__( |
|
277 | 277 | 'Sold Out', |
278 | 278 | 'event_espresso' |
279 | - ) . '</span>' : $datetime->spaces_remaining(); ?> |
|
279 | + ).'</span>' : $datetime->spaces_remaining(); ?> |
|
280 | 280 | <td data-th="<?php |
281 | 281 | echo apply_filters( |
282 | 282 | 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
@@ -305,4 +305,4 @@ discard block |
||
305 | 305 | </div> |
306 | 306 | </td> |
307 | 307 | </tr> |
308 | -<?php endif; // end template_settings->show_ticket_details check |
|
308 | +<?php endif; // end template_settings->show_ticket_details check |
@@ -22,32 +22,32 @@ discard block |
||
22 | 22 | <p><?php echo $ticket->description(); ?></p> |
23 | 23 | |
24 | 24 | <?php |
25 | - do_action( |
|
26 | - 'AHEE__ticket_selector_chart_template__ticket_details__after_description', |
|
27 | - $ticket, |
|
28 | - $ticket_price, |
|
29 | - $display_ticket_price |
|
30 | - ); |
|
31 | - ?> |
|
25 | + do_action( |
|
26 | + 'AHEE__ticket_selector_chart_template__ticket_details__after_description', |
|
27 | + $ticket, |
|
28 | + $ticket_price, |
|
29 | + $display_ticket_price |
|
30 | + ); |
|
31 | + ?> |
|
32 | 32 | |
33 | 33 | <section class="tckt-slctr-tkt-sale-dates-sctn"> |
34 | 34 | <h5> |
35 | 35 | <?php echo apply_filters( |
36 | - 'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading', |
|
37 | - esc_html__('Sale Dates', 'event_espresso') |
|
38 | - ); ?> |
|
36 | + 'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading', |
|
37 | + esc_html__('Sale Dates', 'event_espresso') |
|
38 | + ); ?> |
|
39 | 39 | </h5> |
40 | 40 | <span class="drk-grey-text small-text no-bold"> - |
41 | 41 | <?php echo apply_filters( |
42 | - 'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message', |
|
43 | - esc_html__('The dates when this option is available for purchase.', 'event_espresso') |
|
44 | - ); ?></span> |
|
42 | + 'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message', |
|
43 | + esc_html__('The dates when this option is available for purchase.', 'event_espresso') |
|
44 | + ); ?></span> |
|
45 | 45 | <br/> |
46 | 46 | <span class="ticket-details-label-spn drk-grey-text"> |
47 | 47 | <?php echo apply_filters( |
48 | - 'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale', |
|
49 | - esc_html__('Goes On Sale:', 'event_espresso') |
|
50 | - ); ?></span> |
|
48 | + 'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale', |
|
49 | + esc_html__('Goes On Sale:', 'event_espresso') |
|
50 | + ); ?></span> |
|
51 | 51 | <span class="dashicons dashicons-calendar"></span> |
52 | 52 | <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format) . ' '; ?> |
53 | 53 | <span class="dashicons dashicons-clock"></span> |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | <br/> |
56 | 56 | <span class="ticket-details-label-spn drk-grey-text"> |
57 | 57 | <?php echo apply_filters( |
58 | - 'FHEE__ticket_selector_chart_template__ticket_details_sales_end', |
|
59 | - esc_html__('Sales End:', 'event_espresso') |
|
60 | - ); ?></span> |
|
58 | + 'FHEE__ticket_selector_chart_template__ticket_details_sales_end', |
|
59 | + esc_html__('Sales End:', 'event_espresso') |
|
60 | + ); ?></span> |
|
61 | 61 | <span class="dashicons dashicons-calendar"></span> |
62 | 62 | <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format) . ' '; ?> |
63 | 63 | <span class="dashicons dashicons-clock"></span> |
@@ -72,46 +72,46 @@ discard block |
||
72 | 72 | <section class="tckt-slctr-tkt-quantities-sctn"> |
73 | 73 | <h5> |
74 | 74 | <?php echo apply_filters( |
75 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading', |
|
76 | - esc_html__('Purchasable Quantities', 'event_espresso') |
|
77 | - ); ?></h5> |
|
75 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading', |
|
76 | + esc_html__('Purchasable Quantities', 'event_espresso') |
|
77 | + ); ?></h5> |
|
78 | 78 | <span class="drk-grey-text small-text no-bold"> - |
79 | 79 | <?php echo apply_filters( |
80 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message', |
|
81 | - esc_html__( |
|
82 | - 'The number of tickets that can be purchased per transaction (if available).', |
|
83 | - 'event_espresso' |
|
84 | - ) |
|
85 | - ); ?></span><br/> |
|
80 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message', |
|
81 | + esc_html__( |
|
82 | + 'The number of tickets that can be purchased per transaction (if available).', |
|
83 | + 'event_espresso' |
|
84 | + ) |
|
85 | + ); ?></span><br/> |
|
86 | 86 | <span class="ticket-details-label-spn drk-grey-text"> |
87 | 87 | <?php echo apply_filters( |
88 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty', |
|
89 | - esc_html__('Minimum Qty:', 'event_espresso') |
|
90 | - ); ?></span><?php echo $ticket->min() > 0 ? $ticket->min() : 0; ?> |
|
88 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty', |
|
89 | + esc_html__('Minimum Qty:', 'event_espresso') |
|
90 | + ); ?></span><?php echo $ticket->min() > 0 ? $ticket->min() : 0; ?> |
|
91 | 91 | <?php |
92 | - if ($ticket->min() > $remaining) { |
|
93 | - ?> <span |
|
92 | + if ($ticket->min() > $remaining) { |
|
93 | + ?> <span |
|
94 | 94 | class="important-notice small-text"> |
95 | 95 | <?php echo apply_filters( |
96 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message', |
|
97 | - esc_html__( |
|
98 | - 'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining', |
|
99 | - 'event_espresso' |
|
100 | - ) |
|
101 | - ); ?></span> |
|
96 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message', |
|
97 | + esc_html__( |
|
98 | + 'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining', |
|
99 | + 'event_espresso' |
|
100 | + ) |
|
101 | + ); ?></span> |
|
102 | 102 | <?php |
103 | - } ?><br/> |
|
103 | + } ?><br/> |
|
104 | 104 | <?php // $max = min( $max, $max_atndz );?> |
105 | 105 | <span class="ticket-details-label-spn drk-grey-text"> |
106 | 106 | <?php echo apply_filters( |
107 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty', |
|
108 | - esc_html__('Maximum Qty:', 'event_espresso') |
|
109 | - ); ?></span> |
|
107 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty', |
|
108 | + esc_html__('Maximum Qty:', 'event_espresso') |
|
109 | + ); ?></span> |
|
110 | 110 | <?php echo $ticket->max() === EE_INF ? esc_html__( |
111 | - 'no limit', |
|
112 | - 'event_espresso' |
|
113 | - ) |
|
114 | - : max($ticket->max(), 1); ?><br/> |
|
111 | + 'no limit', |
|
112 | + 'event_espresso' |
|
113 | + ) |
|
114 | + : max($ticket->max(), 1); ?><br/> |
|
115 | 115 | </section> |
116 | 116 | <br/> |
117 | 117 | <?php } ?> |
@@ -120,50 +120,50 @@ discard block |
||
120 | 120 | <section class="tckt-slctr-tkt-uses-sctn"> |
121 | 121 | <h5> |
122 | 122 | <?php echo apply_filters( |
123 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading', |
|
124 | - esc_html__('Event Date Ticket Uses', 'event_espresso') |
|
125 | - ); ?></h5> |
|
123 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading', |
|
124 | + esc_html__('Event Date Ticket Uses', 'event_espresso') |
|
125 | + ); ?></h5> |
|
126 | 126 | <span class="drk-grey-text small-text no-bold"> - |
127 | 127 | <?php |
128 | - echo apply_filters( |
|
129 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message', |
|
130 | - sprintf( |
|
131 | - esc_html__( |
|
132 | - 'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s', |
|
133 | - 'event_espresso' |
|
134 | - ), |
|
135 | - '<br/>', |
|
136 | - '<strong>', |
|
137 | - '</strong>' |
|
138 | - ) |
|
139 | - ); |
|
140 | - ?></span><br/> |
|
128 | + echo apply_filters( |
|
129 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message', |
|
130 | + sprintf( |
|
131 | + esc_html__( |
|
132 | + 'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s', |
|
133 | + 'event_espresso' |
|
134 | + ), |
|
135 | + '<br/>', |
|
136 | + '<strong>', |
|
137 | + '</strong>' |
|
138 | + ) |
|
139 | + ); |
|
140 | + ?></span><br/> |
|
141 | 141 | <span class="ticket-details-label-spn drk-grey-text"> |
142 | 142 | <?php echo apply_filters( |
143 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes', |
|
144 | - esc_html__('# Datetimes:', 'event_espresso') |
|
145 | - ); ?></span><?php echo $ticket->uses(); ?><br/> |
|
143 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes', |
|
144 | + esc_html__('# Datetimes:', 'event_espresso') |
|
145 | + ); ?></span><?php echo $ticket->uses(); ?><br/> |
|
146 | 146 | </section> |
147 | 147 | <?php } ?> |
148 | 148 | |
149 | 149 | <?php |
150 | - $datetimes = $ticket->datetimes_ordered($event_is_expired, false); |
|
151 | - $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width'; |
|
152 | - if (! empty($datetimes)) { ?> |
|
150 | + $datetimes = $ticket->datetimes_ordered($event_is_expired, false); |
|
151 | + $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width'; |
|
152 | + if (! empty($datetimes)) { ?> |
|
153 | 153 | <section class="tckt-slctr-tkt-datetimes-sctn"> |
154 | 154 | <h5> |
155 | 155 | <?php echo apply_filters( |
156 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading', |
|
157 | - esc_html__('Access', 'event_espresso') |
|
158 | - ); ?></h5> |
|
156 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading', |
|
157 | + esc_html__('Access', 'event_espresso') |
|
158 | + ); ?></h5> |
|
159 | 159 | <span class="drk-grey-text small-text no-bold"> - |
160 | 160 | <?php echo apply_filters( |
161 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_message', |
|
162 | - esc_html__( |
|
163 | - 'This option allows access to the following dates and times.', |
|
164 | - 'event_espresso' |
|
165 | - ) |
|
166 | - ); ?></span> |
|
161 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_message', |
|
162 | + esc_html__( |
|
163 | + 'This option allows access to the following dates and times.', |
|
164 | + 'event_espresso' |
|
165 | + ) |
|
166 | + ); ?></span> |
|
167 | 167 | <div class="tckt-slctr-tkt-details-tbl-wrap-dv"> |
168 | 168 | <table class="tckt-slctr-tkt-details-tbl"> |
169 | 169 | <thead> |
@@ -172,122 +172,122 @@ discard block |
||
172 | 172 | <span class="dashicons dashicons-calendar"></span><span |
173 | 173 | class="small-text"> |
174 | 174 | <?php echo apply_filters( |
175 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
176 | - esc_html__('Date ', 'event_espresso') |
|
177 | - ); ?></span> |
|
175 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
176 | + esc_html__('Date ', 'event_espresso') |
|
177 | + ); ?></span> |
|
178 | 178 | </th> |
179 | 179 | <th class="tckt-slctr-tkt-details-time-th <?php echo $chart_column_width; ?>"> |
180 | 180 | <span class="dashicons dashicons-clock"></span><span |
181 | 181 | class="small-text"> |
182 | 182 | <?php esc_html_e( |
183 | - 'Time ', |
|
184 | - 'event_espresso' |
|
185 | - ); ?></span> |
|
183 | + 'Time ', |
|
184 | + 'event_espresso' |
|
185 | + ); ?></span> |
|
186 | 186 | </th> |
187 | 187 | <?php if ($show_ticket_sale_columns) : ?> |
188 | 188 | <th class="tckt-slctr-tkt-details-this-ticket-sold-th ee-fourth-width cntr"> |
189 | 189 | <span class="smaller-text"> |
190 | 190 | <?php echo apply_filters( |
191 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
192 | - sprintf(esc_html__('Sold', 'event_espresso'), '<br/>') |
|
193 | - ); ?></span> |
|
191 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
192 | + sprintf(esc_html__('Sold', 'event_espresso'), '<br/>') |
|
193 | + ); ?></span> |
|
194 | 194 | </th> |
195 | 195 | <th class="tckt-slctr-tkt-details-this-ticket-left-th ee-fourth-width cntr"> |
196 | 196 | <span class="smaller-text"> |
197 | 197 | <?php echo apply_filters( |
198 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
199 | - sprintf(esc_html__('Remaining', 'event_espresso'), '<br/>') |
|
200 | - ); ?></span> |
|
198 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
199 | + sprintf(esc_html__('Remaining', 'event_espresso'), '<br/>') |
|
200 | + ); ?></span> |
|
201 | 201 | </th> |
202 | 202 | <th |
203 | 203 | class="tckt-slctr-tkt-details-total-tickets-sold-th ee-fourth-width cntr"> |
204 | 204 | <span class="smaller-text"> |
205 | 205 | <?php echo apply_filters( |
206 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
207 | - sprintf(esc_html__('Total%sSold', 'event_espresso'), '<br/>') |
|
208 | - ); ?></span> |
|
206 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
207 | + sprintf(esc_html__('Total%sSold', 'event_espresso'), '<br/>') |
|
208 | + ); ?></span> |
|
209 | 209 | </th> |
210 | 210 | <th |
211 | 211 | class="tckt-slctr-tkt-details-total-tickets-left-th ee-fourth-width cntr"> |
212 | 212 | <span class="smaller-text"> |
213 | 213 | <?php echo apply_filters( |
214 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
215 | - sprintf(esc_html__('Total Spaces%sLeft', 'event_espresso'), '<br/>') |
|
216 | - ); ?></span> |
|
214 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
215 | + sprintf(esc_html__('Total Spaces%sLeft', 'event_espresso'), '<br/>') |
|
216 | + ); ?></span> |
|
217 | 217 | </th> |
218 | 218 | <?php endif; // end $show_ticket_sale_columns conditional ?> |
219 | 219 | </tr> |
220 | 220 | </thead> |
221 | 221 | <tbody> |
222 | 222 | <?php |
223 | - foreach ($datetimes as $datetime) { |
|
224 | - if ($datetime instanceof EE_Datetime) { |
|
225 | - ?> |
|
223 | + foreach ($datetimes as $datetime) { |
|
224 | + if ($datetime instanceof EE_Datetime) { |
|
225 | + ?> |
|
226 | 226 | |
227 | 227 | <tr> |
228 | 228 | <td data-th="<?php |
229 | - echo apply_filters( |
|
230 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
231 | - esc_html__('Event Date ', 'event_espresso') |
|
232 | - ); ?>" class="small-text"> |
|
229 | + echo apply_filters( |
|
230 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
231 | + esc_html__('Event Date ', 'event_espresso') |
|
232 | + ); ?>" class="small-text"> |
|
233 | 233 | <?php $datetime_name = $datetime->name(); ?> |
234 | 234 | <?php echo ! empty($datetime_name) ? '<b>' |
235 | - . $datetime_name |
|
236 | - . '</b><br/>' : ''; ?> |
|
235 | + . $datetime_name |
|
236 | + . '</b><br/>' : ''; ?> |
|
237 | 237 | <?php echo $datetime->date_range( |
238 | - $date_format, |
|
239 | - esc_html__(' to ', 'event_espresso') |
|
240 | - ); ?> |
|
238 | + $date_format, |
|
239 | + esc_html__(' to ', 'event_espresso') |
|
240 | + ); ?> |
|
241 | 241 | </td> |
242 | 242 | <td data-th="<?php esc_html_e('Time ', 'event_espresso'); ?>" |
243 | 243 | class="cntr small-text"> |
244 | 244 | <?php echo $datetime->time_range( |
245 | - $time_format, |
|
246 | - esc_html__(' to ', 'event_espresso') |
|
247 | - ); ?> |
|
245 | + $time_format, |
|
246 | + esc_html__(' to ', 'event_espresso') |
|
247 | + ); ?> |
|
248 | 248 | </td> |
249 | 249 | <?php if ($show_ticket_sale_columns) : ?> |
250 | 250 | <td data-th="<?php |
251 | - echo apply_filters( |
|
252 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
253 | - esc_html__('Sold', 'event_espresso') |
|
254 | - ); ?>" class="cntr small-text"> |
|
251 | + echo apply_filters( |
|
252 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
253 | + esc_html__('Sold', 'event_espresso') |
|
254 | + ); ?>" class="cntr small-text"> |
|
255 | 255 | <?php echo $ticket->sold(); ?> |
256 | 256 | </td> |
257 | 257 | <td data-th="<?php |
258 | - echo apply_filters( |
|
259 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
260 | - esc_html__('Remaining', 'event_espresso') |
|
261 | - ); ?>" class="cntr small-text"> |
|
258 | + echo apply_filters( |
|
259 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
260 | + esc_html__('Remaining', 'event_espresso') |
|
261 | + ); ?>" class="cntr small-text"> |
|
262 | 262 | <?php echo $remaining === EE_INF |
263 | - ? '<span class="smaller-text">' . esc_html__( |
|
264 | - 'unlimited ', |
|
265 | - 'event_espresso' |
|
266 | - ) . '</span>' : $remaining; ?> |
|
263 | + ? '<span class="smaller-text">' . esc_html__( |
|
264 | + 'unlimited ', |
|
265 | + 'event_espresso' |
|
266 | + ) . '</span>' : $remaining; ?> |
|
267 | 267 | </td> |
268 | 268 | <td data-th="<?php |
269 | - echo apply_filters( |
|
270 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
271 | - esc_html__('Total Sold', 'event_espresso') |
|
272 | - ); ?>" class="cntr small-text"> |
|
269 | + echo apply_filters( |
|
270 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
271 | + esc_html__('Total Sold', 'event_espresso') |
|
272 | + ); ?>" class="cntr small-text"> |
|
273 | 273 | <?php echo $datetime->sold(); ?> |
274 | 274 | </td> |
275 | 275 | <?php $tkts_left = $datetime->sold_out() |
276 | - ? '<span class="sold-out smaller-text">' . esc_html__( |
|
277 | - 'Sold Out', |
|
278 | - 'event_espresso' |
|
279 | - ) . '</span>' : $datetime->spaces_remaining(); ?> |
|
276 | + ? '<span class="sold-out smaller-text">' . esc_html__( |
|
277 | + 'Sold Out', |
|
278 | + 'event_espresso' |
|
279 | + ) . '</span>' : $datetime->spaces_remaining(); ?> |
|
280 | 280 | <td data-th="<?php |
281 | - echo apply_filters( |
|
282 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
283 | - esc_html__('Total Spaces Left', 'event_espresso') |
|
284 | - ); ?>" class="cntr small-text"> |
|
281 | + echo apply_filters( |
|
282 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
283 | + esc_html__('Total Spaces Left', 'event_espresso') |
|
284 | + ); ?>" class="cntr small-text"> |
|
285 | 285 | <?php echo $tkts_left === EE_INF ? '<span class="smaller-text">' |
286 | - . esc_html__( |
|
287 | - 'unlimited ', |
|
288 | - 'event_espresso' |
|
289 | - ) |
|
290 | - . '</span>' : $tkts_left; ?> |
|
286 | + . esc_html__( |
|
287 | + 'unlimited ', |
|
288 | + 'event_espresso' |
|
289 | + ) |
|
290 | + . '</span>' : $tkts_left; ?> |
|
291 | 291 | </td> |
292 | 292 | <?php endif; // end $show_ticket_sale_columns conditional ?> |
293 | 293 | </tr> |
@@ -65,20 +65,20 @@ discard block |
||
65 | 65 | </thead> |
66 | 66 | <tbody> |
67 | 67 | <?php |
68 | - /** |
|
69 | - * Recursive function for traversing all the sub-items of each line item |
|
70 | - * and displaying them in the table |
|
71 | - * |
|
72 | - * @param EE_Line_Item $line_item |
|
73 | - * @param boolean $odd for indicating whether to style this line item as an 'odd' or 'even' |
|
74 | - */ |
|
75 | - function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false) |
|
76 | - { |
|
77 | - switch ($line_item->type()) { |
|
78 | - case EEM_Line_Item::type_total: |
|
79 | - foreach ($line_item->children() as $child_line_item) { |
|
80 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description); |
|
81 | - } ?> |
|
68 | + /** |
|
69 | + * Recursive function for traversing all the sub-items of each line item |
|
70 | + * and displaying them in the table |
|
71 | + * |
|
72 | + * @param EE_Line_Item $line_item |
|
73 | + * @param boolean $odd for indicating whether to style this line item as an 'odd' or 'even' |
|
74 | + */ |
|
75 | + function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false) |
|
76 | + { |
|
77 | + switch ($line_item->type()) { |
|
78 | + case EEM_Line_Item::type_total: |
|
79 | + foreach ($line_item->children() as $child_line_item) { |
|
80 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description); |
|
81 | + } ?> |
|
82 | 82 | <tr> |
83 | 83 | <td colspan="<?php echo $show_line_item_description ? 5 : 4 ?>"> |
84 | 84 | <hr> |
@@ -90,50 +90,50 @@ discard block |
||
90 | 90 | <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
91 | 91 | </tr> |
92 | 92 | <?php |
93 | - break; |
|
93 | + break; |
|
94 | 94 | |
95 | 95 | |
96 | - case EEM_Line_Item::type_sub_total: |
|
97 | - foreach ($line_item->children() as $child_line_item) { |
|
98 | - // $odd = !$odd; |
|
99 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
100 | - } ?> |
|
96 | + case EEM_Line_Item::type_sub_total: |
|
97 | + foreach ($line_item->children() as $child_line_item) { |
|
98 | + // $odd = !$odd; |
|
99 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
100 | + } ?> |
|
101 | 101 | <tr class="total_tr odd"> |
102 | 102 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
103 | 103 | <td colspan="2" class="total" id="total_currency"> |
104 | 104 | <?php _e( |
105 | - 'Sub-Total', |
|
106 | - 'event_espresso' |
|
107 | - ); ?></td> |
|
105 | + 'Sub-Total', |
|
106 | + 'event_espresso' |
|
107 | + ); ?></td> |
|
108 | 108 | <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
109 | 109 | </tr> |
110 | 110 | <?php |
111 | - break; |
|
111 | + break; |
|
112 | 112 | |
113 | 113 | |
114 | - case EEM_Line_Item::type_tax_sub_total: |
|
115 | - foreach ($line_item->children() as $child_line_item) { |
|
116 | - $odd = ! $odd; |
|
117 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
118 | - } ?> |
|
114 | + case EEM_Line_Item::type_tax_sub_total: |
|
115 | + foreach ($line_item->children() as $child_line_item) { |
|
116 | + $odd = ! $odd; |
|
117 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
118 | + } ?> |
|
119 | 119 | <tr class="total_tr odd"> |
120 | 120 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
121 | 121 | <td colspan="2" class="total" id="total_currency"> |
122 | 122 | <?php _e( |
123 | - 'Tax Total', |
|
124 | - 'event_espresso' |
|
125 | - ); ?></td> |
|
123 | + 'Tax Total', |
|
124 | + 'event_espresso' |
|
125 | + ); ?></td> |
|
126 | 126 | <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
127 | 127 | </tr> |
128 | 128 | <?php |
129 | - break; |
|
129 | + break; |
|
130 | 130 | |
131 | 131 | |
132 | - case EEM_Line_Item::type_line_item: |
|
133 | - $subitems = $line_item->children(); |
|
134 | - $has_subitems = count($subitems) > 1; |
|
135 | - if ($has_subitems) { |
|
136 | - ?> |
|
132 | + case EEM_Line_Item::type_line_item: |
|
133 | + $subitems = $line_item->children(); |
|
134 | + $has_subitems = count($subitems) > 1; |
|
135 | + if ($has_subitems) { |
|
136 | + ?> |
|
137 | 137 | <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
138 | 138 | <td class="item_l"><?php echo $line_item->name() ?></td> |
139 | 139 | <?php if ($show_line_item_description) { ?> |
@@ -144,18 +144,18 @@ discard block |
||
144 | 144 | <td class="item_c"><?php echo $line_item->unit_price_no_code() ?></td> |
145 | 145 | |
146 | 146 | <td class="item_r"> <?php echo $line_item->total_no_code(); |
147 | - echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
147 | + echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
148 | 148 | <?php // <td class="item_l"><?php $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings); |
149 | - ?> |
|
149 | + ?> |
|
150 | 150 | </tr> |
151 | 151 | <?php |
152 | - if ($has_subitems) { |
|
153 | - foreach ($line_item->children() as $child_line_item) { |
|
154 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
155 | - } |
|
156 | - } |
|
157 | - } else {// no subitems - just show this line item |
|
158 | - ?> |
|
152 | + if ($has_subitems) { |
|
153 | + foreach ($line_item->children() as $child_line_item) { |
|
154 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
155 | + } |
|
156 | + } |
|
157 | + } else {// no subitems - just show this line item |
|
158 | + ?> |
|
159 | 159 | <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
160 | 160 | <td class="item_l"><?php echo $line_item->name() ?></td> |
161 | 161 | <?php if ($show_line_item_description) { ?> |
@@ -164,15 +164,15 @@ discard block |
||
164 | 164 | <td class="item_l"><?php echo $line_item->quantity() ?></td> |
165 | 165 | <td class="item_c"><?php echo $line_item->unit_price_no_code() ?></td> |
166 | 166 | <td class="item_r"> <?php echo $line_item->total_no_code(); |
167 | - echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
167 | + echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
168 | 168 | <?php // <td class="item_l"><?php $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings); |
169 | - ?> |
|
169 | + ?> |
|
170 | 170 | </tr> |
171 | 171 | <?php } |
172 | 172 | |
173 | - break; |
|
174 | - case EEM_Line_Item::type_sub_line_item: |
|
175 | - ?> |
|
173 | + break; |
|
174 | + case EEM_Line_Item::type_sub_line_item: |
|
175 | + ?> |
|
176 | 176 | <tr class="item subitem-row"> |
177 | 177 | <td class="item_l subitem"><?php echo $line_item->name(); ?></td> |
178 | 178 | <?php if ($show_line_item_description) { ?> |
@@ -188,9 +188,9 @@ discard block |
||
188 | 188 | <td class="item_r"><?php echo $line_item->total_no_code(); ?></td> |
189 | 189 | </tr> |
190 | 190 | <?php |
191 | - break; |
|
192 | - case EEM_Line_Item::type_tax: |
|
193 | - ?> |
|
191 | + break; |
|
192 | + case EEM_Line_Item::type_tax: |
|
193 | + ?> |
|
194 | 194 | <tr class="item sub-item tax-total"> |
195 | 195 | <td class="item_l"><?php echo $line_item->name(); ?></td> |
196 | 196 | <?php if ($show_line_item_description) { ?> |
@@ -200,15 +200,15 @@ discard block |
||
200 | 200 | |
201 | 201 | <td class="item_r"><?php echo $line_item->total_no_code(); ?></td> |
202 | 202 | </tr><?php |
203 | - break; |
|
204 | - } |
|
205 | - } |
|
203 | + break; |
|
204 | + } |
|
205 | + } |
|
206 | 206 | |
207 | - $c = false; |
|
208 | - /* @var $transaction EE_Transaction */ |
|
209 | - $total_line_item = $transaction->total_line_item(); |
|
210 | - ee_invoice_display_line_item($total_line_item, $show_line_item_description); |
|
211 | - /* foreach($transaction->registrations() as $registration){ |
|
207 | + $c = false; |
|
208 | + /* @var $transaction EE_Transaction */ |
|
209 | + $total_line_item = $transaction->total_line_item(); |
|
210 | + ee_invoice_display_line_item($total_line_item, $show_line_item_description); |
|
211 | + /* foreach($transaction->registrations() as $registration){ |
|
212 | 212 | ?> |
213 | 213 | <tr class="item <?php echo ($c = !$c) ? ' odd' : ''; ?>"> |
214 | 214 | <td class="item_l">1</td> |
@@ -237,11 +237,11 @@ discard block |
||
237 | 237 | </thead> |
238 | 238 | <tbody> |
239 | 239 | <?php |
240 | - $c = false; |
|
241 | - if (! empty($payments)) { |
|
242 | - foreach ($payments as $payment) { |
|
243 | - /* @var $payment EE_Payment */ |
|
244 | - ?> |
|
240 | + $c = false; |
|
241 | + if (! empty($payments)) { |
|
242 | + foreach ($payments as $payment) { |
|
243 | + /* @var $payment EE_Payment */ |
|
244 | + ?> |
|
245 | 245 | <tr class='item <?php echo(($c = ! $c) ? ' odd' : '') ?>'> |
246 | 246 | <td><?php $payment->e('PAY_gateway') ?></td> |
247 | 247 | <td><?php echo $payment->timestamp('D M j, Y') ?></td> |
@@ -251,17 +251,17 @@ discard block |
||
251 | 251 | <td class='item_r'><?php echo EEH_Template::format_currency($payment->amount()); ?></td> |
252 | 252 | </tr> |
253 | 253 | <?php } |
254 | - } else { |
|
255 | - ?> |
|
254 | + } else { |
|
255 | + ?> |
|
256 | 256 | <tr class='item'> |
257 | 257 | <td class='aln-cntr' colspan=6> |
258 | 258 | <?php _e( |
259 | - "No approved payments have been received", |
|
260 | - 'event_espresso' |
|
261 | - ) ?></td> |
|
259 | + "No approved payments have been received", |
|
260 | + 'event_espresso' |
|
261 | + ) ?></td> |
|
262 | 262 | </tr> |
263 | 263 | <?php } |
264 | - ?> |
|
264 | + ?> |
|
265 | 265 | </tbody> |
266 | 266 | <tfoot> |
267 | 267 | <tr class='total_tr'> |
@@ -238,7 +238,7 @@ |
||
238 | 238 | <tbody> |
239 | 239 | <?php |
240 | 240 | $c = false; |
241 | - if (! empty($payments)) { |
|
241 | + if ( ! empty($payments)) { |
|
242 | 242 | foreach ($payments as $payment) { |
243 | 243 | /* @var $payment EE_Payment */ |
244 | 244 | ?> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <label><?php _e('Amount Owing: ', 'event_espresso'); ?></label> |
18 | 18 | </td> |
19 | 19 | <td class="<?php echo ($transaction->paid() == $transaction->total()) ? 'ee-transaction-paid' |
20 | - : 'ee-transaction-unpaid' ?>"> |
|
20 | + : 'ee-transaction-unpaid' ?>"> |
|
21 | 21 | <?php echo EEH_Template::format_currency($transaction->remaining()); ?> |
22 | 22 | </td> |
23 | 23 | </tr> |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | </td> |
28 | 28 | <td> |
29 | 29 | <?php $transaction->e_pretty_status(true); |
30 | - if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?> |
|
30 | + if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?> |
|
31 | 31 | <span class="small-text"><a href='<?php echo $SPCO_payment_options_url ?>'> |
32 | 32 | <?php _e( |
33 | - 'View Payment Options', |
|
34 | - 'event_espresso' |
|
35 | - ); ?></a></span> |
|
33 | + 'View Payment Options', |
|
34 | + 'event_espresso' |
|
35 | + ); ?></a></span> |
|
36 | 36 | <?php } ?> |
37 | 37 | </td> |
38 | 38 | </tr> |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | </td> |
46 | 46 | </tr> |
47 | 47 | <?php do_action( |
48 | - 'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', |
|
49 | - $transaction |
|
50 | - ); ?> |
|
48 | + 'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', |
|
49 | + $transaction |
|
50 | + ); ?> |
|
51 | 51 | </tbody> |
52 | 52 | </table> |
53 | 53 | |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | <p class="small-text jst-rght"> |
56 | 56 | <a href='<?php echo $SPCO_payment_options_url ?>'> |
57 | 57 | <?php _e( |
58 | - "Click here to view Payment Options", |
|
59 | - 'event_espresso' |
|
60 | - ); ?></a> |
|
58 | + "Click here to view Payment Options", |
|
59 | + 'event_espresso' |
|
60 | + ); ?></a> |
|
61 | 61 | </p> |
62 | 62 | <br/> |
63 | 63 |
@@ -13,13 +13,13 @@ discard block |
||
13 | 13 | <div class="event-display-boxes"> |
14 | 14 | <?php |
15 | 15 | if (! empty($page_title)) { |
16 | - echo '<h4 id="invoice_title" class="payment_type_title section-heading">' |
|
17 | - . stripslashes_deep( |
|
18 | - $page_title |
|
19 | - ) . '</h4>'; |
|
16 | + echo '<h4 id="invoice_title" class="payment_type_title section-heading">' |
|
17 | + . stripslashes_deep( |
|
18 | + $page_title |
|
19 | + ) . '</h4>'; |
|
20 | 20 | } |
21 | 21 | if (! empty($invoice_url)) { |
22 | - ?> |
|
22 | + ?> |
|
23 | 23 | <p> |
24 | 24 | <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank"> |
25 | 25 | <?php _e('View Invoice', 'event_espresso'); ?> |
@@ -27,21 +27,21 @@ discard block |
||
27 | 27 | </p> |
28 | 28 | <?php |
29 | 29 | |
30 | - if (isset($page_confirmation_text)) { |
|
31 | - echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' |
|
32 | - . stripslashes_deep( |
|
33 | - $page_confirmation_text |
|
34 | - ) . '</p></div>'; |
|
35 | - } |
|
30 | + if (isset($page_confirmation_text)) { |
|
31 | + echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' |
|
32 | + . stripslashes_deep( |
|
33 | + $page_confirmation_text |
|
34 | + ) . '</p></div>'; |
|
35 | + } |
|
36 | 36 | |
37 | - if (! empty($page_extra_info)) { |
|
38 | - ?> |
|
37 | + if (! empty($page_extra_info)) { |
|
38 | + ?> |
|
39 | 39 | <div class="address-block"> |
40 | 40 | <?php echo wpautop(stripslashes_deep($page_extra_info)); ?> |
41 | 41 | </div> |
42 | 42 | <?php |
43 | - } |
|
44 | - ?> |
|
43 | + } |
|
44 | + ?> |
|
45 | 45 | </div> |
46 | 46 | <?php |
47 | 47 | } |
@@ -12,13 +12,13 @@ discard block |
||
12 | 12 | ?> |
13 | 13 | <div class="event-display-boxes"> |
14 | 14 | <?php |
15 | -if (! empty($page_title)) { |
|
15 | +if ( ! empty($page_title)) { |
|
16 | 16 | echo '<h4 id="invoice_title" class="payment_type_title section-heading">' |
17 | 17 | . stripslashes_deep( |
18 | 18 | $page_title |
19 | - ) . '</h4>'; |
|
19 | + ).'</h4>'; |
|
20 | 20 | } |
21 | -if (! empty($invoice_url)) { |
|
21 | +if ( ! empty($invoice_url)) { |
|
22 | 22 | ?> |
23 | 23 | <p> |
24 | 24 | <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank"> |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' |
32 | 32 | . stripslashes_deep( |
33 | 33 | $page_confirmation_text |
34 | - ) . '</p></div>'; |
|
34 | + ).'</p></div>'; |
|
35 | 35 | } |
36 | 36 | |
37 | - if (! empty($page_extra_info)) { |
|
37 | + if ( ! empty($page_extra_info)) { |
|
38 | 38 | ?> |
39 | 39 | <div class="address-block"> |
40 | 40 | <?php echo wpautop(stripslashes_deep($page_extra_info)); ?> |