@@ -5,81 +5,81 @@ discard block |
||
5 | 5 | /** @type string $SPCO_attendee_information_url */ |
6 | 6 | ?> |
7 | 7 | <h3 class="ee-registration-details-h3"><?php _e('Registration Details', 'event_espresso'); ?></h3> |
8 | -<?php do_action( 'AHEE__thank_you_page_registration_details_template__after_heading' ); ?> |
|
8 | +<?php do_action('AHEE__thank_you_page_registration_details_template__after_heading'); ?> |
|
9 | 9 | |
10 | 10 | <div class="ee-registration-details-dv"> |
11 | 11 | <?php |
12 | 12 | $registrations = $transaction->registrations(); |
13 | -$registrations = is_array( $registrations ) ? $registrations : array(); |
|
14 | -$reg_count = count( $registrations ); |
|
13 | +$registrations = is_array($registrations) ? $registrations : array(); |
|
14 | +$reg_count = count($registrations); |
|
15 | 15 | $reg_cntr = 0; |
16 | 16 | $event_name = ''; |
17 | 17 | $wait_list = false; |
18 | -foreach ( $registrations as $registration ) { |
|
19 | - if ( $registration instanceof EE_Registration ) { |
|
20 | - if ( $event_name != $registration->event_name() && ! empty( $event_name )) { ?> |
|
18 | +foreach ($registrations as $registration) { |
|
19 | + if ($registration instanceof EE_Registration) { |
|
20 | + if ($event_name != $registration->event_name() && ! empty($event_name)) { ?> |
|
21 | 21 | </tbody> |
22 | 22 | </table> |
23 | 23 | <?php |
24 | 24 | } |
25 | 25 | $reg_cntr++; |
26 | - if ( $event_name != $registration->event_name() ) { |
|
26 | + if ($event_name != $registration->event_name()) { |
|
27 | 27 | ?> |
28 | 28 | <h5> |
29 | - <span class="smaller-text grey-text"><?php _e('for','event_espresso');?>: </span> <?php echo htmlentities( $registration->event_name(), ENT_QUOTES, 'UTF-8' );?> |
|
29 | + <span class="smaller-text grey-text"><?php _e('for', 'event_espresso'); ?>: </span> <?php echo htmlentities($registration->event_name(), ENT_QUOTES, 'UTF-8'); ?> |
|
30 | 30 | </h5> |
31 | 31 | <table class='ee-table ee-registrations-list'> |
32 | 32 | <thead> |
33 | 33 | <tr> |
34 | 34 | <th width="40%"> |
35 | - <?php _e("Registrant Name",'event_espresso')?> |
|
35 | + <?php _e("Registrant Name", 'event_espresso')?> |
|
36 | 36 | </th> |
37 | 37 | <th width="25%" class="jst-left"> |
38 | - <?php _e("REG Code",'event_espresso');?> |
|
38 | + <?php _e("REG Code", 'event_espresso'); ?> |
|
39 | 39 | </th> |
40 | 40 | <th width="35%" class="jst-left"> |
41 | - <?php _e("REG Status",'event_espresso');?> |
|
41 | + <?php _e("REG Status", 'event_espresso'); ?> |
|
42 | 42 | </th> |
43 | 43 | </tr> |
44 | 44 | </thead> |
45 | 45 | <tbody> |
46 | 46 | <?php |
47 | 47 | } |
48 | - if ( $is_primary || ( ! $is_primary && $reg_url_link == $registration->reg_url_link() )) { ?> |
|
48 | + if ($is_primary || ( ! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
49 | 49 | <tr> |
50 | 50 | <td width="40%"> |
51 | 51 | <?php |
52 | - if ( $registration->attendee() instanceof EE_Attendee ) { |
|
53 | - echo $registration->attendee()->full_name( TRUE ); |
|
52 | + if ($registration->attendee() instanceof EE_Attendee) { |
|
53 | + echo $registration->attendee()->full_name(TRUE); |
|
54 | 54 | } |
55 | 55 | ?> |
56 | 56 | <p class="tiny-text" style="margin: .75em 0 0;"> |
57 | 57 | <?php |
58 | - if ( $registration->count_question_groups() ) { |
|
58 | + if ($registration->count_question_groups()) { |
|
59 | 59 | ?> |
60 | - <a class="ee-icon-only-lnk" href="<?php echo $registration->edit_attendee_information_url();?>" title="<?php esc_attr_e('Click here to edit Attendee Information', 'event_espresso');?>"><span class="ee-icon ee-icon-user-edit"></span><?php _e('edit info', 'event_espresso');?></a> |
|
60 | + <a class="ee-icon-only-lnk" href="<?php echo $registration->edit_attendee_information_url(); ?>" title="<?php esc_attr_e('Click here to edit Attendee Information', 'event_espresso'); ?>"><span class="ee-icon ee-icon-user-edit"></span><?php _e('edit info', 'event_espresso'); ?></a> |
|
61 | 61 | <?php } ?> |
62 | - <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk" href="<?php echo add_query_arg( array( 'token'=>$registration->reg_url_link(), 'resend_reg_confirmation' => 'true' ), EE_Registry::instance()->CFG->core->thank_you_page_url() );?>" title="<?php esc_attr_e('Click here to resend the Registration Confirmation email', 'event_espresso');?>" rel="<?php echo $registration->reg_url_link();?>"><span class="dashicons dashicons-email-alt"></span><?php _e('resend email', 'event_espresso');?></a> |
|
62 | + <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk" href="<?php echo add_query_arg(array('token'=>$registration->reg_url_link(), 'resend_reg_confirmation' => 'true'), EE_Registry::instance()->CFG->core->thank_you_page_url()); ?>" title="<?php esc_attr_e('Click here to resend the Registration Confirmation email', 'event_espresso'); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span class="dashicons dashicons-email-alt"></span><?php _e('resend email', 'event_espresso'); ?></a> |
|
63 | 63 | </p> |
64 | 64 | </td> |
65 | 65 | <td width="25%" class="jst-left"> |
66 | 66 | <?php $registration->e('REG_code') ?> |
67 | 67 | </td> |
68 | 68 | <td width="35%" class="jst-left"> |
69 | - <?php $registration->e_pretty_status( TRUE )?> |
|
69 | + <?php $registration->e_pretty_status(TRUE)?> |
|
70 | 70 | <?php |
71 | - if ( $registration->status_ID() === EEM_Registration::status_id_wait_list ) { |
|
71 | + if ($registration->status_ID() === EEM_Registration::status_id_wait_list) { |
|
72 | 72 | $wait_list = true; |
73 | 73 | } |
74 | 74 | ?> |
75 | 75 | </td> |
76 | 76 | </tr> |
77 | - <?php do_action( 'AHEE__thank_you_page_registration_details_template__after_registration_table_row', $registration ); ?> |
|
77 | + <?php do_action('AHEE__thank_you_page_registration_details_template__after_registration_table_row', $registration); ?> |
|
78 | 78 | <?php |
79 | 79 | $event_name = $registration->event_name(); |
80 | 80 | |
81 | 81 | } |
82 | - if ( $reg_cntr >= $reg_count ) { |
|
82 | + if ($reg_cntr >= $reg_count) { |
|
83 | 83 | ?> |
84 | 84 | </tbody> |
85 | 85 | </table> |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | } |
89 | 89 | } |
90 | 90 | ?> |
91 | -<?php if ( $is_primary && $SPCO_attendee_information_url ) { ?> |
|
91 | +<?php if ($is_primary && $SPCO_attendee_information_url) { ?> |
|
92 | 92 | <p class="small-text jst-rght"> |
93 | 93 | <a href='<?php echo $SPCO_attendee_information_url?>'><?php _e("Click here to edit All Attendee Information", 'event_espresso'); ?></a> |
94 | 94 | </p> |
95 | 95 | <?php } ?> |
96 | - <?php if ( $wait_list ) { ?> |
|
96 | + <?php if ($wait_list) { ?> |
|
97 | 97 | |
98 | 98 | <?php |
99 | 99 | echo apply_filters( |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | <?php } ?> |
114 | 114 | |
115 | 115 | |
116 | - <?php do_action( 'AHEE__thank_you_page_registration_details_template__after_registration_details' ); ?> |
|
116 | + <?php do_action('AHEE__thank_you_page_registration_details_template__after_registration_details'); ?> |
|
117 | 117 | |
118 | 118 | </div> |
119 | 119 | <!-- end of .registration-details --> |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | |
71 | 71 | /** |
72 | - * @param $type |
|
72 | + * @param string $type |
|
73 | 73 | */ |
74 | 74 | public static function validateType($type) |
75 | 75 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * Examines the constructor to determine which method should be used for instantiation |
127 | 127 | * |
128 | 128 | * @param \ReflectionClass $reflector |
129 | - * @return mixed |
|
129 | + * @return string |
|
130 | 130 | */ |
131 | 131 | protected function resolveInstantiationMethod(\ReflectionClass $reflector) |
132 | 132 | { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public static function getTypes() |
58 | 58 | { |
59 | - return (array)apply_filters( |
|
59 | + return (array) apply_filters( |
|
60 | 60 | 'FHEE__EventEspresso\core\services\container\CoffeeMaker__getTypes', |
61 | 61 | array( |
62 | 62 | CoffeeMaker::BREW_NEW, |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | use EventEspresso\core\services\container\exceptions\InstantiationException; |
7 | 7 | |
8 | 8 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
9 | - exit('No direct script access allowed'); |
|
9 | + exit('No direct script access allowed'); |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | |
@@ -23,158 +23,158 @@ discard block |
||
23 | 23 | abstract class CoffeeMaker implements CoffeeMakerInterface |
24 | 24 | { |
25 | 25 | |
26 | - /** |
|
27 | - * Indicates that CoffeeMaker should construct a NEW entity instance from the provided arguments (if given) |
|
28 | - */ |
|
29 | - const BREW_NEW = 'new'; |
|
30 | - |
|
31 | - /** |
|
32 | - * Indicates that CoffeeMaker should always return a SHARED instance |
|
33 | - */ |
|
34 | - const BREW_SHARED = 'shared'; |
|
35 | - |
|
36 | - /** |
|
37 | - * Indicates that CoffeeMaker should only load the file/class/interface but NOT instantiate |
|
38 | - */ |
|
39 | - const BREW_LOAD_ONLY = 'load_only'; |
|
40 | - |
|
41 | - |
|
42 | - /** |
|
43 | - * @var CoffeePotInterface $coffee_pot |
|
44 | - */ |
|
45 | - private $coffee_pot; |
|
46 | - |
|
47 | - /** |
|
48 | - * @var DependencyInjector $injector |
|
49 | - */ |
|
50 | - private $injector; |
|
51 | - |
|
52 | - |
|
53 | - |
|
54 | - /** |
|
55 | - * @return array |
|
56 | - */ |
|
57 | - public static function getTypes() |
|
58 | - { |
|
59 | - return (array)apply_filters( |
|
60 | - 'FHEE__EventEspresso\core\services\container\CoffeeMaker__getTypes', |
|
61 | - array( |
|
62 | - CoffeeMaker::BREW_NEW, |
|
63 | - CoffeeMaker::BREW_SHARED, |
|
64 | - CoffeeMaker::BREW_LOAD_ONLY, |
|
65 | - ) |
|
66 | - ); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @param $type |
|
73 | - */ |
|
74 | - public static function validateType($type) |
|
75 | - { |
|
76 | - $types = CoffeeMaker::getTypes(); |
|
77 | - if ( ! in_array($type, $types)) { |
|
78 | - throw new InvalidIdentifierException( |
|
79 | - is_object($type) ? get_class($type) : gettype($type), |
|
80 | - __( |
|
81 | - 'recipe type (one of the class constants on \EventEspresso\core\services\container\CoffeeMaker)', |
|
82 | - 'event_espresso' |
|
83 | - ) |
|
84 | - ); |
|
85 | - } |
|
86 | - return $type; |
|
87 | - } |
|
88 | - |
|
89 | - |
|
90 | - |
|
91 | - /** |
|
92 | - * CoffeeMaker constructor. |
|
93 | - * |
|
94 | - * @param CoffeePotInterface $coffee_pot |
|
95 | - * @param InjectorInterface $injector |
|
96 | - */ |
|
97 | - public function __construct(CoffeePotInterface $coffee_pot, InjectorInterface $injector) |
|
98 | - { |
|
99 | - $this->coffee_pot = $coffee_pot; |
|
100 | - $this->injector = $injector; |
|
101 | - } |
|
102 | - |
|
103 | - |
|
104 | - |
|
105 | - /** |
|
106 | - * @return \EventEspresso\core\services\container\CoffeePotInterface |
|
107 | - */ |
|
108 | - protected function coffeePot() |
|
109 | - { |
|
110 | - return $this->coffee_pot; |
|
111 | - } |
|
112 | - |
|
113 | - |
|
114 | - |
|
115 | - /** |
|
116 | - * @return \EventEspresso\core\services\container\DependencyInjector |
|
117 | - */ |
|
118 | - protected function injector() |
|
119 | - { |
|
120 | - return $this->injector; |
|
121 | - } |
|
122 | - |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * Examines the constructor to determine which method should be used for instantiation |
|
127 | - * |
|
128 | - * @param \ReflectionClass $reflector |
|
129 | - * @return mixed |
|
130 | - */ |
|
131 | - protected function resolveInstantiationMethod(\ReflectionClass $reflector) |
|
132 | - { |
|
133 | - if ($reflector->getConstructor() === null) { |
|
134 | - return 'NewInstance'; |
|
135 | - } else if ($reflector->isInstantiable()) { |
|
136 | - return 'NewInstanceArgs'; |
|
137 | - } else if (method_exists($reflector->getName(), 'instance')) { |
|
138 | - return 'instance'; |
|
139 | - } else if (method_exists($reflector->getName(), 'new_instance')) { |
|
140 | - return 'new_instance'; |
|
141 | - } else if (method_exists($reflector->getName(), 'new_instance_from_db')) { |
|
142 | - return 'new_instance_from_db'; |
|
143 | - } else { |
|
144 | - throw new InstantiationException($reflector->getName()); |
|
145 | - } |
|
146 | - } |
|
147 | - |
|
148 | - |
|
149 | - |
|
150 | - /** |
|
151 | - * Ensures files for classes that are not PSR-4 compatible are loaded |
|
152 | - * and then verifies that classes exist where applicable |
|
153 | - * |
|
154 | - * @param RecipeInterface $recipe |
|
155 | - * @throws InvalidClassException |
|
156 | - */ |
|
157 | - protected function resolveClassAndFilepath(RecipeInterface $recipe) |
|
158 | - { |
|
159 | - $paths = $recipe->paths(); |
|
160 | - if ( ! empty($paths)) { |
|
161 | - foreach ($paths as $path) { |
|
162 | - if (strpos($path, '*') === false && is_readable($path)) { |
|
163 | - require_once($path); |
|
164 | - } |
|
165 | - } |
|
166 | - } |
|
167 | - // re: using "false" for class_exists() second param: |
|
168 | - // if a class name is not already known to PHP, then class_exists() will run through |
|
169 | - // all of the registered spl_autoload functions until it either finds the class, |
|
170 | - // or gets to the end of the registered spl_autoload functions. |
|
171 | - // When the second parameter is true, it will also attempt to load the class file, |
|
172 | - // but it will also trigger an error if the class can not be loaded. |
|
173 | - // We don't want that extra error in the mix, so we have set the second param to "false" |
|
174 | - if ($recipe->type() !== CoffeeMaker::BREW_LOAD_ONLY && ! class_exists($recipe->fqcn(), false)) { |
|
175 | - throw new InvalidClassException($recipe->identifier()); |
|
176 | - } |
|
177 | - } |
|
26 | + /** |
|
27 | + * Indicates that CoffeeMaker should construct a NEW entity instance from the provided arguments (if given) |
|
28 | + */ |
|
29 | + const BREW_NEW = 'new'; |
|
30 | + |
|
31 | + /** |
|
32 | + * Indicates that CoffeeMaker should always return a SHARED instance |
|
33 | + */ |
|
34 | + const BREW_SHARED = 'shared'; |
|
35 | + |
|
36 | + /** |
|
37 | + * Indicates that CoffeeMaker should only load the file/class/interface but NOT instantiate |
|
38 | + */ |
|
39 | + const BREW_LOAD_ONLY = 'load_only'; |
|
40 | + |
|
41 | + |
|
42 | + /** |
|
43 | + * @var CoffeePotInterface $coffee_pot |
|
44 | + */ |
|
45 | + private $coffee_pot; |
|
46 | + |
|
47 | + /** |
|
48 | + * @var DependencyInjector $injector |
|
49 | + */ |
|
50 | + private $injector; |
|
51 | + |
|
52 | + |
|
53 | + |
|
54 | + /** |
|
55 | + * @return array |
|
56 | + */ |
|
57 | + public static function getTypes() |
|
58 | + { |
|
59 | + return (array)apply_filters( |
|
60 | + 'FHEE__EventEspresso\core\services\container\CoffeeMaker__getTypes', |
|
61 | + array( |
|
62 | + CoffeeMaker::BREW_NEW, |
|
63 | + CoffeeMaker::BREW_SHARED, |
|
64 | + CoffeeMaker::BREW_LOAD_ONLY, |
|
65 | + ) |
|
66 | + ); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @param $type |
|
73 | + */ |
|
74 | + public static function validateType($type) |
|
75 | + { |
|
76 | + $types = CoffeeMaker::getTypes(); |
|
77 | + if ( ! in_array($type, $types)) { |
|
78 | + throw new InvalidIdentifierException( |
|
79 | + is_object($type) ? get_class($type) : gettype($type), |
|
80 | + __( |
|
81 | + 'recipe type (one of the class constants on \EventEspresso\core\services\container\CoffeeMaker)', |
|
82 | + 'event_espresso' |
|
83 | + ) |
|
84 | + ); |
|
85 | + } |
|
86 | + return $type; |
|
87 | + } |
|
88 | + |
|
89 | + |
|
90 | + |
|
91 | + /** |
|
92 | + * CoffeeMaker constructor. |
|
93 | + * |
|
94 | + * @param CoffeePotInterface $coffee_pot |
|
95 | + * @param InjectorInterface $injector |
|
96 | + */ |
|
97 | + public function __construct(CoffeePotInterface $coffee_pot, InjectorInterface $injector) |
|
98 | + { |
|
99 | + $this->coffee_pot = $coffee_pot; |
|
100 | + $this->injector = $injector; |
|
101 | + } |
|
102 | + |
|
103 | + |
|
104 | + |
|
105 | + /** |
|
106 | + * @return \EventEspresso\core\services\container\CoffeePotInterface |
|
107 | + */ |
|
108 | + protected function coffeePot() |
|
109 | + { |
|
110 | + return $this->coffee_pot; |
|
111 | + } |
|
112 | + |
|
113 | + |
|
114 | + |
|
115 | + /** |
|
116 | + * @return \EventEspresso\core\services\container\DependencyInjector |
|
117 | + */ |
|
118 | + protected function injector() |
|
119 | + { |
|
120 | + return $this->injector; |
|
121 | + } |
|
122 | + |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * Examines the constructor to determine which method should be used for instantiation |
|
127 | + * |
|
128 | + * @param \ReflectionClass $reflector |
|
129 | + * @return mixed |
|
130 | + */ |
|
131 | + protected function resolveInstantiationMethod(\ReflectionClass $reflector) |
|
132 | + { |
|
133 | + if ($reflector->getConstructor() === null) { |
|
134 | + return 'NewInstance'; |
|
135 | + } else if ($reflector->isInstantiable()) { |
|
136 | + return 'NewInstanceArgs'; |
|
137 | + } else if (method_exists($reflector->getName(), 'instance')) { |
|
138 | + return 'instance'; |
|
139 | + } else if (method_exists($reflector->getName(), 'new_instance')) { |
|
140 | + return 'new_instance'; |
|
141 | + } else if (method_exists($reflector->getName(), 'new_instance_from_db')) { |
|
142 | + return 'new_instance_from_db'; |
|
143 | + } else { |
|
144 | + throw new InstantiationException($reflector->getName()); |
|
145 | + } |
|
146 | + } |
|
147 | + |
|
148 | + |
|
149 | + |
|
150 | + /** |
|
151 | + * Ensures files for classes that are not PSR-4 compatible are loaded |
|
152 | + * and then verifies that classes exist where applicable |
|
153 | + * |
|
154 | + * @param RecipeInterface $recipe |
|
155 | + * @throws InvalidClassException |
|
156 | + */ |
|
157 | + protected function resolveClassAndFilepath(RecipeInterface $recipe) |
|
158 | + { |
|
159 | + $paths = $recipe->paths(); |
|
160 | + if ( ! empty($paths)) { |
|
161 | + foreach ($paths as $path) { |
|
162 | + if (strpos($path, '*') === false && is_readable($path)) { |
|
163 | + require_once($path); |
|
164 | + } |
|
165 | + } |
|
166 | + } |
|
167 | + // re: using "false" for class_exists() second param: |
|
168 | + // if a class name is not already known to PHP, then class_exists() will run through |
|
169 | + // all of the registered spl_autoload functions until it either finds the class, |
|
170 | + // or gets to the end of the registered spl_autoload functions. |
|
171 | + // When the second parameter is true, it will also attempt to load the class file, |
|
172 | + // but it will also trigger an error if the class can not be loaded. |
|
173 | + // We don't want that extra error in the mix, so we have set the second param to "false" |
|
174 | + if ($recipe->type() !== CoffeeMaker::BREW_LOAD_ONLY && ! class_exists($recipe->fqcn(), false)) { |
|
175 | + throw new InvalidClassException($recipe->identifier()); |
|
176 | + } |
|
177 | + } |
|
178 | 178 | |
179 | 179 | |
180 | 180 |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container; |
3 | 3 | |
4 | 4 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
5 | - exit('No direct script access allowed'); |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -18,26 +18,26 @@ discard block |
||
18 | 18 | interface ContainerInterface |
19 | 19 | { |
20 | 20 | |
21 | - /** |
|
22 | - * Finds an entry of the container by its identifier and returns it. |
|
23 | - * |
|
24 | - * @param string $id Identifier of the entry to look for. |
|
25 | - * @return mixed Entry. |
|
26 | - */ |
|
27 | - public function get($id); |
|
28 | - |
|
29 | - |
|
30 | - |
|
31 | - /** |
|
32 | - * Returns true if the container can return an entry for the given identifier. |
|
33 | - * Returns false otherwise. |
|
34 | - * `has($id)` returning true does not mean that `get($id)` will not throw an exception. |
|
35 | - * It does however mean that `get($id)` will not throw a `NotFoundException`. |
|
36 | - * |
|
37 | - * @param string $id Identifier of the entry to look for. |
|
38 | - * @return boolean |
|
39 | - */ |
|
40 | - public function has($id); |
|
21 | + /** |
|
22 | + * Finds an entry of the container by its identifier and returns it. |
|
23 | + * |
|
24 | + * @param string $id Identifier of the entry to look for. |
|
25 | + * @return mixed Entry. |
|
26 | + */ |
|
27 | + public function get($id); |
|
28 | + |
|
29 | + |
|
30 | + |
|
31 | + /** |
|
32 | + * Returns true if the container can return an entry for the given identifier. |
|
33 | + * Returns false otherwise. |
|
34 | + * `has($id)` returning true does not mean that `get($id)` will not throw an exception. |
|
35 | + * It does however mean that `get($id)` will not throw a `NotFoundException`. |
|
36 | + * |
|
37 | + * @param string $id Identifier of the entry to look for. |
|
38 | + * @return boolean |
|
39 | + */ |
|
40 | + public function has($id); |
|
41 | 41 | |
42 | 42 | |
43 | 43 | } |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container; |
3 | 3 | |
4 | 4 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
5 | - exit('No direct script access allowed'); |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -17,33 +17,33 @@ discard block |
||
17 | 17 | interface CoffeeMakerInterface |
18 | 18 | { |
19 | 19 | |
20 | - /** |
|
21 | - * @return array |
|
22 | - */ |
|
23 | - public static function getTypes(); |
|
20 | + /** |
|
21 | + * @return array |
|
22 | + */ |
|
23 | + public static function getTypes(); |
|
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | - /** |
|
28 | - * @param $type |
|
29 | - */ |
|
30 | - public static function validateType($type); |
|
27 | + /** |
|
28 | + * @param $type |
|
29 | + */ |
|
30 | + public static function validateType($type); |
|
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | - /** |
|
35 | - * @param RecipeInterface $recipe |
|
36 | - * @param array $arguments |
|
37 | - * @return mixed |
|
38 | - */ |
|
39 | - public function brew(RecipeInterface $recipe, $arguments = array()); |
|
34 | + /** |
|
35 | + * @param RecipeInterface $recipe |
|
36 | + * @param array $arguments |
|
37 | + * @return mixed |
|
38 | + */ |
|
39 | + public function brew(RecipeInterface $recipe, $arguments = array()); |
|
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | - /** |
|
44 | - * @return string |
|
45 | - */ |
|
46 | - public function type(); |
|
43 | + /** |
|
44 | + * @return string |
|
45 | + */ |
|
46 | + public function type(); |
|
47 | 47 | |
48 | 48 | } |
49 | 49 | // End of file CoffeeMakerInterface.php |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container; |
3 | 3 | |
4 | 4 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
5 | - exit('No direct script access allowed'); |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -24,26 +24,26 @@ discard block |
||
24 | 24 | class LoadOnlyCoffeeMaker extends CoffeeMaker |
25 | 25 | { |
26 | 26 | |
27 | - /** |
|
28 | - * @return string |
|
29 | - */ |
|
30 | - public function type() |
|
31 | - { |
|
32 | - return CoffeeMaker::BREW_LOAD_ONLY; |
|
33 | - } |
|
34 | - |
|
35 | - |
|
36 | - |
|
37 | - /** |
|
38 | - * @param RecipeInterface $recipe |
|
39 | - * @param array $arguments |
|
40 | - * @return mixed |
|
41 | - */ |
|
42 | - public function brew(RecipeInterface $recipe, $arguments = array()) |
|
43 | - { |
|
44 | - $this->resolveClassAndFilepath($recipe); |
|
45 | - return null; |
|
46 | - } |
|
27 | + /** |
|
28 | + * @return string |
|
29 | + */ |
|
30 | + public function type() |
|
31 | + { |
|
32 | + return CoffeeMaker::BREW_LOAD_ONLY; |
|
33 | + } |
|
34 | + |
|
35 | + |
|
36 | + |
|
37 | + /** |
|
38 | + * @param RecipeInterface $recipe |
|
39 | + * @param array $arguments |
|
40 | + * @return mixed |
|
41 | + */ |
|
42 | + public function brew(RecipeInterface $recipe, $arguments = array()) |
|
43 | + { |
|
44 | + $this->resolveClassAndFilepath($recipe); |
|
45 | + return null; |
|
46 | + } |
|
47 | 47 | |
48 | 48 | |
49 | 49 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | use BadMethodCallException; |
5 | 5 | |
6 | 6 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
7 | - exit('No direct script access allowed'); |
|
7 | + exit('No direct script access allowed'); |
|
8 | 8 | } |
9 | 9 | |
10 | 10 | |
@@ -20,27 +20,27 @@ discard block |
||
20 | 20 | class InstantiationException extends BadMethodCallException |
21 | 21 | { |
22 | 22 | |
23 | - /** |
|
24 | - * InstantiationException constructor. |
|
25 | - * |
|
26 | - * @param string $identifier the name of the requested entity or service |
|
27 | - * @param string $message |
|
28 | - * @param int $code |
|
29 | - * @param \Exception $previous |
|
30 | - */ |
|
31 | - public function __construct($identifier, $message = '', $code = 0, \Exception $previous = null) |
|
32 | - { |
|
33 | - if (empty($message)) { |
|
34 | - $message = sprintf( |
|
35 | - __( |
|
36 | - 'The "%1$s" class could not be constructed.', |
|
37 | - 'event_espresso' |
|
38 | - ), |
|
39 | - $identifier |
|
40 | - ); |
|
41 | - } |
|
42 | - parent::__construct($message, $code, $previous); |
|
43 | - } |
|
23 | + /** |
|
24 | + * InstantiationException constructor. |
|
25 | + * |
|
26 | + * @param string $identifier the name of the requested entity or service |
|
27 | + * @param string $message |
|
28 | + * @param int $code |
|
29 | + * @param \Exception $previous |
|
30 | + */ |
|
31 | + public function __construct($identifier, $message = '', $code = 0, \Exception $previous = null) |
|
32 | + { |
|
33 | + if (empty($message)) { |
|
34 | + $message = sprintf( |
|
35 | + __( |
|
36 | + 'The "%1$s" class could not be constructed.', |
|
37 | + 'event_espresso' |
|
38 | + ), |
|
39 | + $identifier |
|
40 | + ); |
|
41 | + } |
|
42 | + parent::__construct($message, $code, $previous); |
|
43 | + } |
|
44 | 44 | |
45 | 45 | } |
46 | 46 | // End of file InstantiationException.php |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container; |
3 | 3 | |
4 | 4 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
5 | - exit('No direct script access allowed'); |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -18,70 +18,70 @@ discard block |
||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | - /** |
|
22 | - * returns an instance of the requested entity type using the supplied arguments. |
|
23 | - * If a shared service is requested and an instance is already in the carafe, then it will be returned. |
|
24 | - * If it is not already in the carafe, then the service will be constructed, added to the carafe, and returned |
|
25 | - * If the request is for a new entity and a closure exists in the reservoir for creating it, |
|
26 | - * then a new entity will be instantiated from the closure and returned. |
|
27 | - * If a closure does not exist, then one will be built and added to the reservoir |
|
28 | - * before instantiating the requested entity. |
|
29 | - * |
|
30 | - * @param string $identifier Identifier for the entity class to be constructed. |
|
31 | - * Typically a Fully Qualified Class Name |
|
32 | - * @param array $arguments an array of arguments to be passed to the entity constructor |
|
33 | - * @param string $type |
|
34 | - * @return mixed |
|
35 | - */ |
|
36 | - public function brew($identifier, $arguments = array(), $type = ''); |
|
21 | + /** |
|
22 | + * returns an instance of the requested entity type using the supplied arguments. |
|
23 | + * If a shared service is requested and an instance is already in the carafe, then it will be returned. |
|
24 | + * If it is not already in the carafe, then the service will be constructed, added to the carafe, and returned |
|
25 | + * If the request is for a new entity and a closure exists in the reservoir for creating it, |
|
26 | + * then a new entity will be instantiated from the closure and returned. |
|
27 | + * If a closure does not exist, then one will be built and added to the reservoir |
|
28 | + * before instantiating the requested entity. |
|
29 | + * |
|
30 | + * @param string $identifier Identifier for the entity class to be constructed. |
|
31 | + * Typically a Fully Qualified Class Name |
|
32 | + * @param array $arguments an array of arguments to be passed to the entity constructor |
|
33 | + * @param string $type |
|
34 | + * @return mixed |
|
35 | + */ |
|
36 | + public function brew($identifier, $arguments = array(), $type = ''); |
|
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | - /** |
|
41 | - * @param string $identifier |
|
42 | - * @param callable $closure |
|
43 | - */ |
|
44 | - public function addClosure($identifier, $closure); |
|
40 | + /** |
|
41 | + * @param string $identifier |
|
42 | + * @param callable $closure |
|
43 | + */ |
|
44 | + public function addClosure($identifier, $closure); |
|
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * @param string $identifier |
|
50 | - * @param mixed $service |
|
51 | - * @return boolean |
|
52 | - */ |
|
53 | - public function addService($identifier, $service); |
|
48 | + /** |
|
49 | + * @param string $identifier |
|
50 | + * @param mixed $service |
|
51 | + * @return boolean |
|
52 | + */ |
|
53 | + public function addService($identifier, $service); |
|
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | - /** |
|
58 | - * Adds instructions on how to brew objects |
|
59 | - * |
|
60 | - * @param RecipeInterface $recipe |
|
61 | - * @return mixed |
|
62 | - */ |
|
63 | - public function addRecipe(RecipeInterface $recipe); |
|
57 | + /** |
|
58 | + * Adds instructions on how to brew objects |
|
59 | + * |
|
60 | + * @param RecipeInterface $recipe |
|
61 | + * @return mixed |
|
62 | + */ |
|
63 | + public function addRecipe(RecipeInterface $recipe); |
|
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | - /** |
|
68 | - * Get instructions on how to brew objects |
|
69 | - * |
|
70 | - * @param string $identifier |
|
71 | - * @return Recipe |
|
72 | - */ |
|
73 | - public function getRecipe($identifier); |
|
67 | + /** |
|
68 | + * Get instructions on how to brew objects |
|
69 | + * |
|
70 | + * @param string $identifier |
|
71 | + * @return Recipe |
|
72 | + */ |
|
73 | + public function getRecipe($identifier); |
|
74 | 74 | |
75 | 75 | |
76 | 76 | |
77 | - /** |
|
78 | - * adds class name aliases to list of filters |
|
79 | - * |
|
80 | - * @param string $identifier |
|
81 | - * @param array $aliases |
|
82 | - * @return string |
|
83 | - */ |
|
84 | - public function addAliases($identifier, $aliases); |
|
77 | + /** |
|
78 | + * adds class name aliases to list of filters |
|
79 | + * |
|
80 | + * @param string $identifier |
|
81 | + * @param array $aliases |
|
82 | + * @return string |
|
83 | + */ |
|
84 | + public function addAliases($identifier, $aliases); |
|
85 | 85 | |
86 | 86 | |
87 | 87 |
@@ -18,43 +18,43 @@ |
||
18 | 18 | * @throws EE_Error |
19 | 19 | * @return string of html to display the field |
20 | 20 | */ |
21 | - public function display(){ |
|
21 | + public function display() { |
|
22 | 22 | $input = $this->get_input(); |
23 | 23 | //d( $input ); |
24 | - $multi = count( $input->options() ) > 1 ? TRUE : FALSE; |
|
24 | + $multi = count($input->options()) > 1 ? TRUE : FALSE; |
|
25 | 25 | $input->set_label_sizes(); |
26 | 26 | $label_size_class = $input->get_label_size_class(); |
27 | 27 | $html = ''; |
28 | - if ( ! is_array( $input->raw_value() ) && $input->raw_value() !== NULL ) { |
|
28 | + if ( ! is_array($input->raw_value()) && $input->raw_value() !== NULL) { |
|
29 | 29 | EE_Error::doing_it_wrong( |
30 | 30 | 'EE_Checkbox_Display_Strategy::display()', |
31 | 31 | sprintf( |
32 | - __( 'Input values for checkboxes should be an array of values, but the value for input "%1$s" is "%2$s". Please verify that the input name is exactly "%3$s"', 'event_espresso'), |
|
32 | + __('Input values for checkboxes should be an array of values, but the value for input "%1$s" is "%2$s". Please verify that the input name is exactly "%3$s"', 'event_espresso'), |
|
33 | 33 | $input->html_id(), |
34 | - var_export( $input->raw_value(), true), |
|
35 | - $input->html_name() . '[]' |
|
34 | + var_export($input->raw_value(), true), |
|
35 | + $input->html_name().'[]' |
|
36 | 36 | ), |
37 | 37 | '4.8.1' |
38 | 38 | ); |
39 | 39 | } |
40 | - $input_raw_value = (array)$input->raw_value(); |
|
41 | - foreach( $input->options() as $value => $display_text ){ |
|
42 | - $value = $input->get_normalization_strategy()->unnormalize_one( $value ); |
|
43 | - $html_id = $this->get_sub_input_id( $value ); |
|
44 | - $html .= EEH_HTML::nl( 0, 'checkbox' ); |
|
45 | - $html .= '<label for="' . $html_id . '" id="' . $html_id . '-lbl" class="ee-checkbox-label-after' . $label_size_class . '">'; |
|
46 | - $html .= EEH_HTML::nl( 1, 'checkbox' ); |
|
40 | + $input_raw_value = (array) $input->raw_value(); |
|
41 | + foreach ($input->options() as $value => $display_text) { |
|
42 | + $value = $input->get_normalization_strategy()->unnormalize_one($value); |
|
43 | + $html_id = $this->get_sub_input_id($value); |
|
44 | + $html .= EEH_HTML::nl(0, 'checkbox'); |
|
45 | + $html .= '<label for="'.$html_id.'" id="'.$html_id.'-lbl" class="ee-checkbox-label-after'.$label_size_class.'">'; |
|
46 | + $html .= EEH_HTML::nl(1, 'checkbox'); |
|
47 | 47 | $html .= '<input type="checkbox"'; |
48 | - $html .= ' name="' . $input->html_name() . '[]"'; |
|
49 | - $html .= ' id="' . $html_id . '"'; |
|
50 | - $html .= ' class="' . $input->html_class() . '"'; |
|
51 | - $html .= ' style="' . $input->html_style() . '"'; |
|
52 | - $html .= ' value="' . esc_attr( $value ) . '"'; |
|
53 | - $html .= ! empty( $input_raw_value ) && in_array( $value, $input_raw_value ) ? ' checked="checked"' : ''; |
|
54 | - $html .= ' ' . $this->_input->other_html_attributes(); |
|
48 | + $html .= ' name="'.$input->html_name().'[]"'; |
|
49 | + $html .= ' id="'.$html_id.'"'; |
|
50 | + $html .= ' class="'.$input->html_class().'"'; |
|
51 | + $html .= ' style="'.$input->html_style().'"'; |
|
52 | + $html .= ' value="'.esc_attr($value).'"'; |
|
53 | + $html .= ! empty($input_raw_value) && in_array($value, $input_raw_value) ? ' checked="checked"' : ''; |
|
54 | + $html .= ' '.$this->_input->other_html_attributes(); |
|
55 | 55 | $html .= '> '; |
56 | 56 | $html .= $display_text; |
57 | - $html .= EEH_HTML::nl( -1, 'checkbox' ) . '</label>'; |
|
57 | + $html .= EEH_HTML::nl( -1, 'checkbox' ).'</label>'; |
|
58 | 58 | } |
59 | 59 | return $html; |
60 | 60 | } |
@@ -26,12 +26,12 @@ |
||
26 | 26 | <input type="text" id="ee-google-map-api-key" class="regular-text" name="google_map_api_key" value="<?php echo $map_settings->google_map_api_key; ?>" /> |
27 | 27 | <p class="description"> |
28 | 28 | <?php |
29 | - printf( |
|
30 | - __('An API key is now required to use the Google Maps API: %1$sclick here to get an API key%2$s', 'event_espresso'), |
|
31 | - '<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">', |
|
32 | - '</a>' |
|
33 | - ); |
|
34 | - ?> |
|
29 | + printf( |
|
30 | + __('An API key is now required to use the Google Maps API: %1$sclick here to get an API key%2$s', 'event_espresso'), |
|
31 | + '<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">', |
|
32 | + '</a>' |
|
33 | + ); |
|
34 | + ?> |
|
35 | 35 | </p> |
36 | 36 | </td> |
37 | 37 | </tr> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | </td> |
16 | 16 | </tr> |
17 | 17 | <?php |
18 | - if( apply_filters( 'FHEE__google_map__show_api_key_input', true ) ) { ?> |
|
18 | + if (apply_filters('FHEE__google_map__show_api_key_input', true)) { ?> |
|
19 | 19 | <tr> |
20 | 20 | <th> |
21 | 21 | <label for="ee-google-map-api-key"> |
@@ -110,19 +110,19 @@ discard block |
||
110 | 110 | <td> |
111 | 111 | <label for="event_details_control_type-default" class="ee-admin-radio-lbl"> |
112 | 112 | <?php $checked = $map_settings->event_details_control_type == 'default' ? 'checked="checked"' : ''; ?> |
113 | - <input id="event_details_control_type-default" type="radio" name="event_details_control_type" value="default"<?php echo $checked;?>/> |
|
113 | + <input id="event_details_control_type-default" type="radio" name="event_details_control_type" value="default"<?php echo $checked; ?>/> |
|
114 | 114 | <?php _e(' Default', 'event_espresso') ?> |
115 | 115 | </label> |
116 | 116 | |
117 | 117 | <label for="event_details_control_type-horizontal" class="ee-admin-radio-lbl"> |
118 | 118 | <?php $checked = $map_settings->event_details_control_type == 'horizontal' ? 'checked="checked"' : ''; ?> |
119 | - <input id="event_details_control_type-horizontal" type="radio" name="event_details_control_type" value="horizontal"<?php echo $checked;?>/> |
|
119 | + <input id="event_details_control_type-horizontal" type="radio" name="event_details_control_type" value="horizontal"<?php echo $checked; ?>/> |
|
120 | 120 | <?php _e(' Horizontal', 'event_espresso') ?> |
121 | 121 | </label> |
122 | 122 | |
123 | 123 | <label for="event_details_control_type-dropdown" class="ee-admin-radio-lbl"> |
124 | 124 | <?php $checked = $map_settings->event_details_control_type == 'dropdown' ? 'checked="checked"' : ''; ?> |
125 | - <input id="event_details_control_type-dropdown" type="radio" name="event_details_control_type" value="dropdown"<?php echo $checked;?>/> |
|
125 | + <input id="event_details_control_type-dropdown" type="radio" name="event_details_control_type" value="dropdown"<?php echo $checked; ?>/> |
|
126 | 126 | <?php _e(' Dropdown', 'event_espresso') ?> |
127 | 127 | </label> |
128 | 128 | </td> |
@@ -135,25 +135,25 @@ discard block |
||
135 | 135 | <td> |
136 | 136 | <label for="event_details_map_align-none" class="ee-admin-radio-lbl"> |
137 | 137 | <?php $checked = $map_settings->event_details_map_align == 'none' ? 'checked="checked"' : ''; ?> |
138 | - <input id="event_details_map_align-none" type="radio" name="event_details_map_align" value="none"<?php echo $checked;?>/> |
|
138 | + <input id="event_details_map_align-none" type="radio" name="event_details_map_align" value="none"<?php echo $checked; ?>/> |
|
139 | 139 | <?php _e(' None', 'event_espresso') ?> |
140 | 140 | </label> |
141 | 141 | |
142 | 142 | <label for="event_details_map_align-left" class="ee-admin-radio-lbl"> |
143 | 143 | <?php $checked = $map_settings->event_details_map_align == 'left' ? 'checked="checked"' : ''; ?> |
144 | - <input id="event_details_map_align-left" type="radio" name="event_details_map_align" value="left"<?php echo $checked;?>/> |
|
144 | + <input id="event_details_map_align-left" type="radio" name="event_details_map_align" value="left"<?php echo $checked; ?>/> |
|
145 | 145 | <?php _e(' Align Left', 'event_espresso') ?> |
146 | 146 | </label> |
147 | 147 | |
148 | 148 | <label for="event_details_map_align-center" class="ee-admin-radio-lbl"> |
149 | 149 | <?php $checked = $map_settings->event_details_map_align == 'center' ? 'checked="checked"' : ''; ?> |
150 | - <input id="event_details_map_align-center" type="radio" name="event_details_map_align" value="center"<?php echo $checked;?>/> |
|
150 | + <input id="event_details_map_align-center" type="radio" name="event_details_map_align" value="center"<?php echo $checked; ?>/> |
|
151 | 151 | <?php _e(' Align Center', 'event_espresso') ?> |
152 | 152 | </label> |
153 | 153 | |
154 | 154 | <label for="event_details_map_align-right" class="ee-admin-radio-lbl"> |
155 | 155 | <?php $checked = $map_settings->event_details_map_align == 'right' ? 'checked="checked"' : ''; ?> |
156 | - <input id="event_details_map_align-right" type="radio" name="event_details_map_align" value="right"<?php echo $checked;?>/> |
|
156 | + <input id="event_details_map_align-right" type="radio" name="event_details_map_align" value="right"<?php echo $checked; ?>/> |
|
157 | 157 | <?php _e(' Align Right', 'event_espresso') ?> |
158 | 158 | </label> |
159 | 159 | </td> |
@@ -228,19 +228,19 @@ discard block |
||
228 | 228 | <td> |
229 | 229 | <label for="event_list_control_type-default" class="ee-admin-radio-lbl"> |
230 | 230 | <?php $checked = $map_settings->event_list_control_type == 'default' ? 'checked="checked"' : ''; ?> |
231 | - <input id="event_list_control_type-default" type="radio" name="event_list_control_type" value="default"<?php echo $checked;?>/> |
|
231 | + <input id="event_list_control_type-default" type="radio" name="event_list_control_type" value="default"<?php echo $checked; ?>/> |
|
232 | 232 | <?php _e(' Default', 'event_espresso') ?> |
233 | 233 | </label> |
234 | 234 | |
235 | 235 | <label for="event_list_control_type-horizontal" class="ee-admin-radio-lbl"> |
236 | 236 | <?php $checked = $map_settings->event_list_control_type == 'horizontal' ? 'checked="checked"' : ''; ?> |
237 | - <input id="event_list_control_type-horizontal" type="radio" name="event_list_control_type" value="horizontal"<?php echo $checked;?>/> |
|
237 | + <input id="event_list_control_type-horizontal" type="radio" name="event_list_control_type" value="horizontal"<?php echo $checked; ?>/> |
|
238 | 238 | <?php _e(' Horizontal', 'event_espresso') ?> |
239 | 239 | </label> |
240 | 240 | |
241 | 241 | <label for="event_list_control_type-dropdown" class="ee-admin-radio-lbl"> |
242 | 242 | <?php $checked = $map_settings->event_list_control_type == 'dropdown' ? 'checked="checked"' : ''; ?> |
243 | - <input id="event_list_control_type-dropdown" type="radio" name="event_list_control_type" value="dropdown"<?php echo $checked;?>/> |
|
243 | + <input id="event_list_control_type-dropdown" type="radio" name="event_list_control_type" value="dropdown"<?php echo $checked; ?>/> |
|
244 | 244 | <?php _e(' Dropdown', 'event_espresso') ?> |
245 | 245 | </label> |
246 | 246 | |
@@ -254,25 +254,25 @@ discard block |
||
254 | 254 | <td> |
255 | 255 | <label for="event_list_map_align-none" class="ee-admin-radio-lbl"> |
256 | 256 | <?php $checked = $map_settings->event_list_map_align == 'none' ? 'checked="checked"' : ''; ?> |
257 | - <input id="event_list_map_align-none" type="radio" name="event_list_map_align" value="none"<?php echo $checked;?>/> |
|
257 | + <input id="event_list_map_align-none" type="radio" name="event_list_map_align" value="none"<?php echo $checked; ?>/> |
|
258 | 258 | <?php _e(' None', 'event_espresso') ?> |
259 | 259 | </label> |
260 | 260 | |
261 | 261 | <label for="event_list_map_align-left" class="ee-admin-radio-lbl"> |
262 | 262 | <?php $checked = $map_settings->event_list_map_align == 'left' ? 'checked="checked"' : ''; ?> |
263 | - <input id="event_list_map_align-left" type="radio" name="event_list_map_align" value="left"<?php echo $checked;?>/> |
|
263 | + <input id="event_list_map_align-left" type="radio" name="event_list_map_align" value="left"<?php echo $checked; ?>/> |
|
264 | 264 | <?php _e(' Align Left', 'event_espresso') ?> |
265 | 265 | </label> |
266 | 266 | |
267 | 267 | <label for="event_list_map_align-center" class="ee-admin-radio-lbl"> |
268 | 268 | <?php $checked = $map_settings->event_list_map_align == 'center' ? 'checked="checked"' : ''; ?> |
269 | - <input id="event_list_map_align-center" type="radio" name="event_list_map_align" value="center"<?php echo $checked;?>/> |
|
269 | + <input id="event_list_map_align-center" type="radio" name="event_list_map_align" value="center"<?php echo $checked; ?>/> |
|
270 | 270 | <?php _e(' Align Center', 'event_espresso') ?> |
271 | 271 | </label> |
272 | 272 | |
273 | 273 | <label for="event_list_map_align-right" class="ee-admin-radio-lbl"> |
274 | 274 | <?php $checked = $map_settings->event_list_map_align == 'right' ? 'checked="checked"' : ''; ?> |
275 | - <input id="event_list_map_align-right" type="radio" name="event_list_map_align" value="right"<?php echo $checked;?>/> |
|
275 | + <input id="event_list_map_align-right" type="radio" name="event_list_map_align" value="right"<?php echo $checked; ?>/> |
|
276 | 276 | <?php _e(' Align Right', 'event_espresso') ?> |
277 | 277 | </label> |
278 | 278 |