@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use EventEspresso\core\services\commands\CommandInterface; |
8 | 8 | |
9 | 9 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
10 | - exit('No direct script access allowed'); |
|
10 | + exit('No direct script access allowed'); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | |
@@ -25,40 +25,40 @@ discard block |
||
25 | 25 | { |
26 | 26 | |
27 | 27 | |
28 | - /** |
|
29 | - * @var CopyRegistrationService $copy_registration_service |
|
30 | - */ |
|
31 | - private $copy_registration_service; |
|
28 | + /** |
|
29 | + * @var CopyRegistrationService $copy_registration_service |
|
30 | + */ |
|
31 | + private $copy_registration_service; |
|
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | - /** |
|
36 | - * Command constructor |
|
37 | - * |
|
38 | - * @param CopyRegistrationService $copy_registration_service |
|
39 | - */ |
|
40 | - public function __construct(CopyRegistrationService $copy_registration_service) |
|
41 | - { |
|
42 | - $this->copy_registration_service = $copy_registration_service; |
|
43 | - } |
|
35 | + /** |
|
36 | + * Command constructor |
|
37 | + * |
|
38 | + * @param CopyRegistrationService $copy_registration_service |
|
39 | + */ |
|
40 | + public function __construct(CopyRegistrationService $copy_registration_service) |
|
41 | + { |
|
42 | + $this->copy_registration_service = $copy_registration_service; |
|
43 | + } |
|
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | - /** |
|
48 | - * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
49 | - * @return boolean |
|
50 | - */ |
|
51 | - public function handle(CommandInterface $command) |
|
52 | - { |
|
53 | - /** @var CopyRegistrationDetailsCommand $command */ |
|
54 | - if ( ! $command instanceof CopyRegistrationDetailsCommand) { |
|
55 | - throw new InvalidEntityException(get_class($command), 'CopyRegistrationDetailsCommand'); |
|
56 | - } |
|
57 | - return $this->copy_registration_service->copyRegistrationDetails( |
|
58 | - $command->targetRegistration(), |
|
59 | - $command->registrationToCopy() |
|
60 | - ); |
|
61 | - } |
|
47 | + /** |
|
48 | + * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
49 | + * @return boolean |
|
50 | + */ |
|
51 | + public function handle(CommandInterface $command) |
|
52 | + { |
|
53 | + /** @var CopyRegistrationDetailsCommand $command */ |
|
54 | + if ( ! $command instanceof CopyRegistrationDetailsCommand) { |
|
55 | + throw new InvalidEntityException(get_class($command), 'CopyRegistrationDetailsCommand'); |
|
56 | + } |
|
57 | + return $this->copy_registration_service->copyRegistrationDetails( |
|
58 | + $command->targetRegistration(), |
|
59 | + $command->registrationToCopy() |
|
60 | + ); |
|
61 | + } |
|
62 | 62 | |
63 | 63 | |
64 | 64 | } |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use EventEspresso\core\services\commands\CommandInterface; |
8 | 8 | |
9 | 9 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
10 | - exit('No direct script access allowed'); |
|
10 | + exit('No direct script access allowed'); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | |
@@ -24,42 +24,42 @@ discard block |
||
24 | 24 | { |
25 | 25 | |
26 | 26 | |
27 | - /** |
|
28 | - * @var CancelTicketLineItemService $cancel_ticket_line_item_service |
|
29 | - */ |
|
30 | - private $cancel_ticket_line_item_service; |
|
31 | - |
|
32 | - |
|
33 | - |
|
34 | - /** |
|
35 | - * Command constructor |
|
36 | - * |
|
37 | - * @param CancelTicketLineItemService $cancel_ticket_line_item_service |
|
38 | - */ |
|
39 | - public function __construct(CancelTicketLineItemService $cancel_ticket_line_item_service) |
|
40 | - { |
|
41 | - $this->cancel_ticket_line_item_service = $cancel_ticket_line_item_service; |
|
42 | - } |
|
43 | - |
|
44 | - |
|
45 | - |
|
46 | - /** |
|
47 | - * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
48 | - * @return boolean |
|
49 | - */ |
|
50 | - public function handle(CommandInterface $command) |
|
51 | - { |
|
52 | - /** @var CancelRegistrationAndTicketLineItemCommand $command */ |
|
53 | - if ( ! $command instanceof CancelRegistrationAndTicketLineItemCommand) { |
|
54 | - throw new InvalidEntityException(get_class($command), 'CancelRegistrationAndTicketLineItemCommand'); |
|
55 | - } |
|
56 | - $registration = $command->registration(); |
|
57 | - $this->cancel_ticket_line_item_service->forRegistration($registration); |
|
58 | - // cancel original registration |
|
59 | - $registration->set_status(\EEM_Registration::status_id_cancelled); |
|
60 | - $registration->save(); |
|
61 | - return true; |
|
62 | - } |
|
27 | + /** |
|
28 | + * @var CancelTicketLineItemService $cancel_ticket_line_item_service |
|
29 | + */ |
|
30 | + private $cancel_ticket_line_item_service; |
|
31 | + |
|
32 | + |
|
33 | + |
|
34 | + /** |
|
35 | + * Command constructor |
|
36 | + * |
|
37 | + * @param CancelTicketLineItemService $cancel_ticket_line_item_service |
|
38 | + */ |
|
39 | + public function __construct(CancelTicketLineItemService $cancel_ticket_line_item_service) |
|
40 | + { |
|
41 | + $this->cancel_ticket_line_item_service = $cancel_ticket_line_item_service; |
|
42 | + } |
|
43 | + |
|
44 | + |
|
45 | + |
|
46 | + /** |
|
47 | + * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
48 | + * @return boolean |
|
49 | + */ |
|
50 | + public function handle(CommandInterface $command) |
|
51 | + { |
|
52 | + /** @var CancelRegistrationAndTicketLineItemCommand $command */ |
|
53 | + if ( ! $command instanceof CancelRegistrationAndTicketLineItemCommand) { |
|
54 | + throw new InvalidEntityException(get_class($command), 'CancelRegistrationAndTicketLineItemCommand'); |
|
55 | + } |
|
56 | + $registration = $command->registration(); |
|
57 | + $this->cancel_ticket_line_item_service->forRegistration($registration); |
|
58 | + // cancel original registration |
|
59 | + $registration->set_status(\EEM_Registration::status_id_cancelled); |
|
60 | + $registration->save(); |
|
61 | + return true; |
|
62 | + } |
|
63 | 63 | |
64 | 64 | |
65 | 65 |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use EventEspresso\core\services\commands\CommandInterface; |
8 | 8 | |
9 | 9 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
10 | - exit('No direct script access allowed'); |
|
10 | + exit('No direct script access allowed'); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | |
@@ -26,40 +26,40 @@ discard block |
||
26 | 26 | { |
27 | 27 | |
28 | 28 | |
29 | - /** |
|
30 | - * @var CopyRegistrationService $copy_registration_service |
|
31 | - */ |
|
32 | - private $copy_registration_service; |
|
33 | - |
|
34 | - |
|
35 | - |
|
36 | - /** |
|
37 | - * Command constructor |
|
38 | - * |
|
39 | - * @param CopyRegistrationService $copy_registration_service |
|
40 | - */ |
|
41 | - public function __construct(CopyRegistrationService $copy_registration_service) |
|
42 | - { |
|
43 | - $this->copy_registration_service = $copy_registration_service; |
|
44 | - } |
|
45 | - |
|
46 | - |
|
47 | - |
|
48 | - /** |
|
49 | - * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
50 | - * @return boolean |
|
51 | - */ |
|
52 | - public function handle(CommandInterface $command) |
|
53 | - { |
|
54 | - /** @var CopyRegistrationPaymentsCommand $command */ |
|
55 | - if ( ! $command instanceof CopyRegistrationPaymentsCommand) { |
|
56 | - throw new InvalidEntityException(get_class($command), 'CopyRegistrationPaymentsCommand'); |
|
57 | - } |
|
58 | - return $this->copy_registration_service->copyPaymentDetails( |
|
59 | - $command->targetRegistration(), |
|
60 | - $command->registrationToCopy() |
|
61 | - ); |
|
62 | - } |
|
29 | + /** |
|
30 | + * @var CopyRegistrationService $copy_registration_service |
|
31 | + */ |
|
32 | + private $copy_registration_service; |
|
33 | + |
|
34 | + |
|
35 | + |
|
36 | + /** |
|
37 | + * Command constructor |
|
38 | + * |
|
39 | + * @param CopyRegistrationService $copy_registration_service |
|
40 | + */ |
|
41 | + public function __construct(CopyRegistrationService $copy_registration_service) |
|
42 | + { |
|
43 | + $this->copy_registration_service = $copy_registration_service; |
|
44 | + } |
|
45 | + |
|
46 | + |
|
47 | + |
|
48 | + /** |
|
49 | + * @param \EventEspresso\core\services\commands\CommandInterface $command |
|
50 | + * @return boolean |
|
51 | + */ |
|
52 | + public function handle(CommandInterface $command) |
|
53 | + { |
|
54 | + /** @var CopyRegistrationPaymentsCommand $command */ |
|
55 | + if ( ! $command instanceof CopyRegistrationPaymentsCommand) { |
|
56 | + throw new InvalidEntityException(get_class($command), 'CopyRegistrationPaymentsCommand'); |
|
57 | + } |
|
58 | + return $this->copy_registration_service->copyPaymentDetails( |
|
59 | + $command->targetRegistration(), |
|
60 | + $command->registrationToCopy() |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | |
64 | 64 | |
65 | 65 |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | use EventEspresso\core\services\commands\CommandHandler; |
7 | 7 | use EventEspresso\core\services\commands\CommandInterface; |
8 | 8 | |
9 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
10 | - exit( 'No direct script access allowed' ); |
|
9 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
10 | + exit('No direct script access allowed'); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | |
@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | * @param \EventEspresso\core\services\commands\CommandInterface $command |
49 | 49 | * @return boolean |
50 | 50 | */ |
51 | - public function handle( CommandInterface $command ) |
|
51 | + public function handle(CommandInterface $command) |
|
52 | 52 | { |
53 | 53 | /** @var UpdateRegistrationAndTransactionAfterChangeCommand $command */ |
54 | - if ( ! $command instanceof UpdateRegistrationAndTransactionAfterChangeCommand ) { |
|
54 | + if ( ! $command instanceof UpdateRegistrationAndTransactionAfterChangeCommand) { |
|
55 | 55 | throw new InvalidEntityException( |
56 | 56 | get_class($command), |
57 | 57 | 'UpdateRegistrationAndTransactionAfterChangeCommand' |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | * |
25 | 25 | * @param \Exception $exception |
26 | 26 | */ |
27 | - public function __construct( \Exception $exception ) { |
|
28 | - $this->log( $exception ); |
|
27 | + public function __construct(\Exception $exception) { |
|
28 | + $this->log($exception); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | |
@@ -36,22 +36,22 @@ discard block |
||
36 | 36 | * @param \Exception $exception |
37 | 37 | * @param int $time |
38 | 38 | */ |
39 | - public function log( \Exception $exception, $time = 0 ) { |
|
40 | - if ( ! $time ) { |
|
39 | + public function log(\Exception $exception, $time = 0) { |
|
40 | + if ( ! $time) { |
|
41 | 41 | $time = time(); |
42 | 42 | } |
43 | 43 | $exception_log = '----------------------------------------------------------------------------------------'; |
44 | 44 | $exception_log .= PHP_EOL; |
45 | - $exception_log .= '[' . date( 'Y-m-d H:i:s', $time ) . '] Exception Details' . PHP_EOL; |
|
46 | - $exception_log .= 'Message: ' . $exception->getMessage() . PHP_EOL; |
|
47 | - $exception_log .= 'Code: ' . $exception->getCode() . PHP_EOL; |
|
48 | - $exception_log .= 'File: ' . $exception->getFile() . PHP_EOL; |
|
49 | - $exception_log .= 'Line No: ' . $exception->getLine() . PHP_EOL; |
|
50 | - $exception_log .= 'Stack trace: ' . PHP_EOL; |
|
51 | - $exception_log .= $exception->getTraceAsString() . PHP_EOL; |
|
45 | + $exception_log .= '['.date('Y-m-d H:i:s', $time).'] Exception Details'.PHP_EOL; |
|
46 | + $exception_log .= 'Message: '.$exception->getMessage().PHP_EOL; |
|
47 | + $exception_log .= 'Code: '.$exception->getCode().PHP_EOL; |
|
48 | + $exception_log .= 'File: '.$exception->getFile().PHP_EOL; |
|
49 | + $exception_log .= 'Line No: '.$exception->getLine().PHP_EOL; |
|
50 | + $exception_log .= 'Stack trace: '.PHP_EOL; |
|
51 | + $exception_log .= $exception->getTraceAsString().PHP_EOL; |
|
52 | 52 | $exception_log .= '----------------------------------------------------------------------------------------'; |
53 | - $exception_log .= PHP_EOL; |
|
54 | - error_log( $exception_log ); |
|
53 | + $exception_log .= PHP_EOL; |
|
54 | + error_log($exception_log); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | } |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container\exceptions; |
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,28 +18,28 @@ discard block |
||
18 | 18 | class ServiceNotFoundException extends \RuntimeException |
19 | 19 | { |
20 | 20 | |
21 | - /** |
|
22 | - * ServiceNotFoundException constructor |
|
23 | - * |
|
24 | - * @param string $service_name the name of the requested service |
|
25 | - * @param string $message |
|
26 | - * @param int $code |
|
27 | - * @param \Exception $previous |
|
28 | - */ |
|
29 | - public function __construct( |
|
30 | - $service_name, |
|
31 | - $message = '', |
|
32 | - $code = 0, |
|
33 | - \Exception $previous = null |
|
34 | - ) { |
|
35 | - if (empty($message)) { |
|
36 | - $message = sprintf( |
|
37 | - __('The requested service "%1$s" could not found be found in the CoffeeShop.', 'event_espresso'), |
|
38 | - $service_name |
|
39 | - ); |
|
40 | - } |
|
41 | - parent::__construct($message, $code, $previous); |
|
42 | - } |
|
21 | + /** |
|
22 | + * ServiceNotFoundException constructor |
|
23 | + * |
|
24 | + * @param string $service_name the name of the requested service |
|
25 | + * @param string $message |
|
26 | + * @param int $code |
|
27 | + * @param \Exception $previous |
|
28 | + */ |
|
29 | + public function __construct( |
|
30 | + $service_name, |
|
31 | + $message = '', |
|
32 | + $code = 0, |
|
33 | + \Exception $previous = null |
|
34 | + ) { |
|
35 | + if (empty($message)) { |
|
36 | + $message = sprintf( |
|
37 | + __('The requested service "%1$s" could not found be found in the CoffeeShop.', 'event_espresso'), |
|
38 | + $service_name |
|
39 | + ); |
|
40 | + } |
|
41 | + parent::__construct($message, $code, $previous); |
|
42 | + } |
|
43 | 43 | } |
44 | 44 | // End of file ServiceNotFoundException.php |
45 | 45 | // Location: /ServiceNotFoundException.php |
46 | 46 | \ No newline at end of file |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container\exceptions; |
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 | |
@@ -19,28 +19,28 @@ discard block |
||
19 | 19 | { |
20 | 20 | |
21 | 21 | |
22 | - /** |
|
23 | - * ServiceExistsException constructor |
|
24 | - * |
|
25 | - * @param string $service_name the name of the requested service |
|
26 | - * @param string $message |
|
27 | - * @param int $code |
|
28 | - * @param \Exception $previous |
|
29 | - */ |
|
30 | - public function __construct( |
|
31 | - $service_name, |
|
32 | - $message = '', |
|
33 | - $code = 0, |
|
34 | - \Exception $previous = null |
|
35 | - ) { |
|
36 | - if (empty($message)) { |
|
37 | - $message = sprintf( |
|
38 | - __('The "%1$s" service already exists in the CoffeeShop and can not be added again.', 'event_espresso'), |
|
39 | - $service_name |
|
40 | - ); |
|
41 | - } |
|
42 | - parent::__construct($message, $code, $previous); |
|
43 | - } |
|
22 | + /** |
|
23 | + * ServiceExistsException constructor |
|
24 | + * |
|
25 | + * @param string $service_name the name of the requested service |
|
26 | + * @param string $message |
|
27 | + * @param int $code |
|
28 | + * @param \Exception $previous |
|
29 | + */ |
|
30 | + public function __construct( |
|
31 | + $service_name, |
|
32 | + $message = '', |
|
33 | + $code = 0, |
|
34 | + \Exception $previous = null |
|
35 | + ) { |
|
36 | + if (empty($message)) { |
|
37 | + $message = sprintf( |
|
38 | + __('The "%1$s" service already exists in the CoffeeShop and can not be added again.', 'event_espresso'), |
|
39 | + $service_name |
|
40 | + ); |
|
41 | + } |
|
42 | + parent::__construct($message, $code, $previous); |
|
43 | + } |
|
44 | 44 | |
45 | 45 | |
46 | 46 | } |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\services\container\exceptions; |
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,29 +18,29 @@ discard block |
||
18 | 18 | class InvalidServiceException extends \UnexpectedValueException |
19 | 19 | { |
20 | 20 | |
21 | - /** |
|
22 | - * InvalidServiceException constructor. |
|
23 | - * |
|
24 | - * @param string $service_name the name of the requested service |
|
25 | - * @param string $actual classname of what we got |
|
26 | - * @param string $message |
|
27 | - * @param int $code |
|
28 | - * @param \Exception $previous |
|
29 | - */ |
|
30 | - public function __construct($service_name, $actual, $message = '', $code = 0, \Exception $previous = null) |
|
31 | - { |
|
32 | - if (empty($message)) { |
|
33 | - $message = sprintf( |
|
34 | - __( |
|
35 | - 'The "%1$s" service could not be retrieved from the CoffeeShop, but "%2$s" was received.', |
|
36 | - 'event_espresso' |
|
37 | - ), |
|
38 | - $service_name, |
|
39 | - print_r($actual, true) |
|
40 | - ); |
|
41 | - } |
|
42 | - parent::__construct($message, $code, $previous); |
|
43 | - } |
|
21 | + /** |
|
22 | + * InvalidServiceException constructor. |
|
23 | + * |
|
24 | + * @param string $service_name the name of the requested service |
|
25 | + * @param string $actual classname of what we got |
|
26 | + * @param string $message |
|
27 | + * @param int $code |
|
28 | + * @param \Exception $previous |
|
29 | + */ |
|
30 | + public function __construct($service_name, $actual, $message = '', $code = 0, \Exception $previous = null) |
|
31 | + { |
|
32 | + if (empty($message)) { |
|
33 | + $message = sprintf( |
|
34 | + __( |
|
35 | + 'The "%1$s" service could not be retrieved from the CoffeeShop, but "%2$s" was received.', |
|
36 | + 'event_espresso' |
|
37 | + ), |
|
38 | + $service_name, |
|
39 | + print_r($actual, true) |
|
40 | + ); |
|
41 | + } |
|
42 | + parent::__construct($message, $code, $previous); |
|
43 | + } |
|
44 | 44 | |
45 | 45 | } |
46 | 46 | // End of file InvalidServiceException.php |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <div class="padding"> |
2 | 2 | <?php |
3 | 3 | //we'll only show site-license keys if this is main_site() (which works for both multi-site and single-site wp installations) |
4 | - if ( is_main_site() ) { ?> |
|
4 | + if (is_main_site()) { ?> |
|
5 | 5 | <h2 class="ee-admin-settings-hdr" style="width:300px;"> |
6 | 6 | <?php _e('Your Event Espresso License Key', 'event_espresso'); ?> |
7 | 7 | </h2> |
@@ -11,13 +11,13 @@ discard block |
||
11 | 11 | <tr <?php echo isset($_REQUEST['license_key']) && $_REQUEST['license_key'] == true ? 'class="yellow_alert"' : '' ?>> |
12 | 12 | <th> |
13 | 13 | <label for="site_license_key"> |
14 | - <?php _e('Support License Key', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('site_license_key_info');?> |
|
14 | + <?php _e('Support License Key', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('site_license_key_info'); ?> |
|
15 | 15 | </label> |
16 | 16 | </th> |
17 | 17 | <td> |
18 | 18 | <input name="site_license_key" id="site_license_key" size="10" class="regular-text" type="text" value="<?php echo $site_license_key; ?>" /><?php echo $site_license_key_verified; ?><br/> |
19 | 19 | <p class="description"> |
20 | - <?php printf( __('Adding a valid Support License Key will enable automatic update notifications and backend updates for Event Espresso Core and any installed add-ons. If this is a Development or Test site, %sDO NOT%s enter your Support License Key.', 'event_espresso'), '<strong>', '</strong>' ); ?> |
|
20 | + <?php printf(__('Adding a valid Support License Key will enable automatic update notifications and backend updates for Event Espresso Core and any installed add-ons. If this is a Development or Test site, %sDO NOT%s enter your Support License Key.', 'event_espresso'), '<strong>', '</strong>'); ?> |
|
21 | 21 | </p> |
22 | 22 | </td> |
23 | 23 | </tr> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | |
32 | 32 | <h2 id="contact_info_h4" class="ee-admin-settings-hdr"> |
33 | - <?php _e('Contact Information', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('contact_info_info');?> |
|
33 | + <?php _e('Contact Information', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('contact_info_info'); ?> |
|
34 | 34 | </h2> |
35 | 35 | |
36 | 36 | <table class="form-table"> |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | <input id="organization_city" class="regular-text" type="text" name="organization_city" value="<?php echo $organization_city; ?>" /> |
79 | 79 | </td> |
80 | 80 | </tr> |
81 | - <?php echo EEH_Form_Fields::generate_form_input( $states ); ?> |
|
82 | - <?php echo EEH_Form_Fields::generate_form_input( $countries ); ?> |
|
81 | + <?php echo EEH_Form_Fields::generate_form_input($states); ?> |
|
82 | + <?php echo EEH_Form_Fields::generate_form_input($countries); ?> |
|
83 | 83 | <tr> |
84 | 84 | <th> |
85 | 85 | <label for="organization_zip"> |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | <td> |
100 | 100 | <input class="regular-text" type="text" name="organization_email" value="<?php echo $organization_email; ?>" /> |
101 | 101 | <p class="description"> |
102 | - <?php echo sprintf( esc_html__('This is where notifications go to when you use the %1$s and %2$s shortcodes in the message templates.', 'event_espresso'), '<code>[CO_FORMATTED_EMAIL]</code>', '<code>[CO_EMAIL]</code>' ); ?> |
|
102 | + <?php echo sprintf(esc_html__('This is where notifications go to when you use the %1$s and %2$s shortcodes in the message templates.', 'event_espresso'), '<code>[CO_FORMATTED_EMAIL]</code>', '<code>[CO_EMAIL]</code>'); ?> |
|
103 | 103 | </p> |
104 | 104 | </td> |
105 | 105 | </tr> |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | </table> |
134 | 134 | |
135 | 135 | <h2 class="ee-admin-settings-hdr"> |
136 | - <?php _e('Company Logo', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('organization_logo_info');?> |
|
136 | + <?php _e('Company Logo', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('organization_logo_info'); ?> |
|
137 | 137 | </h2> |
138 | 138 | |
139 | 139 | <table class="form-table"> |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | </th> |
162 | 162 | <td> |
163 | 163 | <?php |
164 | - if ( $organization_logo_url ) { |
|
164 | + if ($organization_logo_url) { |
|
165 | 165 | ?> |
166 | 166 | <p id="default-logo-thumb"> |
167 | 167 | <img id="current-image-thumb" src="<?php echo $organization_logo_url ?>" alt="" /><br /> |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | <br/><br/> |
180 | 180 | |
181 | 181 | <h2 class="ee-admin-settings-hdr"> |
182 | - <?php _e('Social Links', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('social_links_info');?> |
|
182 | + <?php _e('Social Links', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('social_links_info'); ?> |
|
183 | 183 | </h2> |
184 | 184 | <p class="description"><?php _e('Enter any links to social accounts for your organization here', 'event_espresso'); ?></p> |
185 | 185 | |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | <br/><br/> |
257 | 257 | |
258 | 258 | |
259 | - <?php if ( is_main_site() ) : ?> |
|
259 | + <?php if (is_main_site()) : ?> |
|
260 | 260 | <p> |
261 | - <?php echo EE_PUE::espresso_data_collection_optin_text( FALSE ); ?> |
|
261 | + <?php echo EE_PUE::espresso_data_collection_optin_text(FALSE); ?> |
|
262 | 262 | </p> |
263 | 263 | |
264 | 264 | <table class="form-table"> |
@@ -272,11 +272,11 @@ discard block |
||
272 | 272 | </th> |
273 | 273 | <td> |
274 | 274 | <?php |
275 | - $values=array( |
|
276 | - array('id'=>'yes','text'=> __('Yes! I want to help improve Event Espresso!','event_espresso')), |
|
277 | - array('id'=>'no','text'=> __('Not at this time. Maybe later.','event_espresso')) |
|
275 | + $values = array( |
|
276 | + array('id'=>'yes', 'text'=> __('Yes! I want to help improve Event Espresso!', 'event_espresso')), |
|
277 | + array('id'=>'no', 'text'=> __('Not at this time. Maybe later.', 'event_espresso')) |
|
278 | 278 | ); |
279 | - echo EEH_Form_Fields::select_input('ueip_optin', $values, !empty($ee_ueip_optin) ? $ee_ueip_optin : 'yes'); |
|
279 | + echo EEH_Form_Fields::select_input('ueip_optin', $values, ! empty($ee_ueip_optin) ? $ee_ueip_optin : 'yes'); |
|
280 | 280 | ?> |
281 | 281 | </td> |
282 | 282 | </tr> |