@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace EventEspresso\core\services\commands; |
| 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 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @param \EventEspresso\core\services\commands\CommandInterface $command |
| 20 | 20 | * @return mixed |
| 21 | 21 | */ |
| 22 | - public function handle( CommandInterface $command ); |
|
| 22 | + public function handle(CommandInterface $command); |
|
| 23 | 23 | |
| 24 | 24 | } |
| 25 | 25 | // End of file CommandHandlerInterface.php |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace EventEspresso\core\services\commands; |
| 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 | |
@@ -25,14 +25,14 @@ discard block |
||
| 25 | 25 | * @param int $code |
| 26 | 26 | * @param \Exception $previous |
| 27 | 27 | */ |
| 28 | - public function __construct( $command_handler_name, $message = '', $code = 0, \Exception $previous = null ) { |
|
| 29 | - if ( empty( $message ) ) { |
|
| 28 | + public function __construct($command_handler_name, $message = '', $code = 0, \Exception $previous = null) { |
|
| 29 | + if (empty($message)) { |
|
| 30 | 30 | $message = sprintf( |
| 31 | - __( 'The requested Command Handler "%1$s" could not be located or does not exist.', 'event_espresso' ), |
|
| 31 | + __('The requested Command Handler "%1$s" could not be located or does not exist.', 'event_espresso'), |
|
| 32 | 32 | $command_handler_name |
| 33 | 33 | ); |
| 34 | 34 | } |
| 35 | - parent::__construct( $message, $code, $previous ); |
|
| 35 | + parent::__construct($message, $code, $previous); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | } |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <div id="reg-admin-approve-decline-reg-status-dv"> |
| 2 | 2 | |
| 3 | 3 | <h2 id="reg-admin-reg-details-reg-status-hdr"> |
| 4 | - <?php echo __( 'Current Registration Status : ', 'event_espresso' ); ?> |
|
| 4 | + <?php echo __('Current Registration Status : ', 'event_espresso'); ?> |
|
| 5 | 5 | <span class="<?php echo $reg_status_class; ?> bigger-text"><?php echo $reg_status_value; ?></span> |
| 6 | 6 | </h2> |
| 7 | - <?php do_action( 'AHEE__reg_status_change_buttons__after_header', $REG_ID ); ?> |
|
| 7 | + <?php do_action('AHEE__reg_status_change_buttons__after_header', $REG_ID); ?> |
|
| 8 | 8 | |
| 9 | 9 | <h3 id="reg-admin-reg-details-reg-status-hdr"> |
| 10 | - <?php echo __( 'Change Registration Status to :', 'event_espresso' ); ?> |
|
| 10 | + <?php echo __('Change Registration Status to :', 'event_espresso'); ?> |
|
| 11 | 11 | </h3> |
| 12 | 12 | |
| 13 | 13 | <form id="reg_status_change_form" method="POST" action="<?php echo $form_url; ?>"> |
@@ -16,15 +16,15 @@ discard block |
||
| 16 | 16 | <input type="hidden" name="return" value="view_registration"> |
| 17 | 17 | <?php echo $nonce; ?> |
| 18 | 18 | <?php echo $status_buttons; ?> |
| 19 | - <?php if ( $attendee instanceof EE_Attendee && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'registration_message_type' ) ) : ?> |
|
| 19 | + <?php if ($attendee instanceof EE_Attendee && EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'registration_message_type')) : ?> |
|
| 20 | 20 | <span id="send-related-messages-dv"> |
| 21 | - <label for="txn-reg-status-send-notifications-inp" class="important-notice"><?php _e( '...and send related messages ?', 'event_espresso' ); ?> |
|
| 21 | + <label for="txn-reg-status-send-notifications-inp" class="important-notice"><?php _e('...and send related messages ?', 'event_espresso'); ?> |
|
| 22 | 22 | <input type="checkbox" value="1" id="txn-reg-status-send-notifications-inp" name="txn_reg_status_change[send_notifications]"> |
| 23 | 23 | </label> |
| 24 | 24 | <br/> |
| 25 | 25 | </span> |
| 26 | 26 | <br/> |
| 27 | - <p class="description"><?php _e( 'If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.', 'event_espresso' ); ?></p> |
|
| 27 | + <p class="description"><?php _e('If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.', 'event_espresso'); ?></p> |
|
| 28 | 28 | <?php endif; ?> |
| 29 | 29 | </form> |
| 30 | 30 | </div> |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace EventEspresso\core\libraries\form_sections\form_handlers; |
| 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 | |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | * @param int $code |
| 27 | 27 | * @param \Exception $previous |
| 28 | 28 | */ |
| 29 | - public function __construct( $actual, $message = '', $code = 0, \Exception $previous = null ) { |
|
| 30 | - if ( empty( $message ) ) { |
|
| 29 | + public function __construct($actual, $message = '', $code = 0, \Exception $previous = null) { |
|
| 30 | + if (empty($message)) { |
|
| 31 | 31 | $message = sprintf( |
| 32 | 32 | __( |
| 33 | 33 | 'A valid Form Handler was expected but instead "%1$s" was received.', |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $actual |
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | - parent::__construct( $message, $code, $previous ); |
|
| 39 | + parent::__construct($message, $code, $previous); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | } |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | use EE_Form_Section_Proper; |
| 5 | 5 | |
| 6 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
| 7 | - exit( 'No direct script access allowed' ); |
|
| 6 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
| 7 | + exit('No direct script access allowed'); |
|
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @param \EE_Form_Section_Proper $form |
| 38 | 38 | */ |
| 39 | - public function setForm( \EE_Form_Section_Proper $form ); |
|
| 39 | + public function setForm(\EE_Form_Section_Proper $form); |
|
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * @param boolean $displayable |
| 55 | 55 | */ |
| 56 | - public function setDisplayable( $displayable = false ); |
|
| 56 | + public function setDisplayable($displayable = false); |
|
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | /** |
| 95 | 95 | * @param string $submit_btn_text |
| 96 | 96 | */ |
| 97 | - public function setSubmitBtnText( $submit_btn_text ); |
|
| 97 | + public function setSubmitBtnText($submit_btn_text); |
|
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | |
@@ -108,14 +108,14 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * @param string $form_action |
| 110 | 110 | */ |
| 111 | - public function setFormAction( $form_action ); |
|
| 111 | + public function setFormAction($form_action); |
|
| 112 | 112 | |
| 113 | 113 | |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @param array $form_args |
| 117 | 117 | */ |
| 118 | - public function addFormActionArgs( $form_args = array() ); |
|
| 118 | + public function addFormActionArgs($form_args = array()); |
|
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * |
| 136 | 136 | * @param string $form_config |
| 137 | 137 | */ |
| 138 | - public function setFormConfig( $form_config ); |
|
| 138 | + public function setFormConfig($form_config); |
|
| 139 | 139 | |
| 140 | 140 | |
| 141 | 141 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @param array $submitted_form_data |
| 188 | 188 | * @return bool |
| 189 | 189 | */ |
| 190 | - public function process( $submitted_form_data = array() ); |
|
| 190 | + public function process($submitted_form_data = array()); |
|
| 191 | 191 | |
| 192 | 192 | |
| 193 | 193 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * @param string $text |
| 198 | 198 | * @return \EE_Submit_Input |
| 199 | 199 | */ |
| 200 | - public function generateSubmitButton( $text = '' ); |
|
| 200 | + public function generateSubmitButton($text = ''); |
|
| 201 | 201 | |
| 202 | 202 | |
| 203 | 203 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * @param string $text |
| 217 | 217 | * @return \EE_Submit_Input |
| 218 | 218 | */ |
| 219 | - public function generateCancelButton( $text = '' ); |
|
| 219 | + public function generateCancelButton($text = ''); |
|
| 220 | 220 | |
| 221 | 221 | |
| 222 | 222 | |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | use EventEspresso\core\exceptions\InvalidDataTypeException; |
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | |
| 7 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
| 8 | - exit( 'No direct script access allowed' ); |
|
| 7 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
| 8 | + exit('No direct script access allowed'); |
|
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param int $order |
| 33 | 33 | * @throws InvalidArgumentException |
| 34 | 34 | */ |
| 35 | - public function setOrder( $order ); |
|
| 35 | + public function setOrder($order); |
|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @throws InvalidDataTypeException |
| 49 | 49 | * @throws InvalidArgumentException |
| 50 | 50 | */ |
| 51 | - public function setRedirectUrl( $redirect_url ); |
|
| 51 | + public function setRedirectUrl($redirect_url); |
|
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @throws InvalidDataTypeException |
| 58 | 58 | * @throws InvalidArgumentException |
| 59 | 59 | */ |
| 60 | - public function addRedirectArgs( $redirect_args = array() ); |
|
| 60 | + public function addRedirectArgs($redirect_args = array()); |
|
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * @param string $redirect_to |
| 73 | 73 | */ |
| 74 | - public function setRedirectTo( $redirect_to ); |
|
| 74 | + public function setRedirectTo($redirect_to); |
|
| 75 | 75 | |
| 76 | 76 | |
| 77 | 77 | |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace EventEspresso\core\services\commands; |
| 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 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * @param \EventEspresso\core\services\commands\CommandInterface $command |
| 24 | 24 | * @return mixed |
| 25 | 25 | */ |
| 26 | - public function execute( $command ); |
|
| 26 | + public function execute($command); |
|
| 27 | 27 | |
| 28 | 28 | } |
| 29 | 29 | // End of file CommandBusInterface.php |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * ------------------------------------------------------------------------ |
| 23 | 23 | */ |
| 24 | -require_once ( EE_MODELS . 'EEM_Soft_Delete_Base.model.php' ); |
|
| 25 | -require_once( EE_CLASSES . 'EE_Question_Group.class.php'); |
|
| 24 | +require_once (EE_MODELS.'EEM_Soft_Delete_Base.model.php'); |
|
| 25 | +require_once(EE_CLASSES.'EE_Question_Group.class.php'); |
|
| 26 | 26 | class EEM_Question_Group extends EEM_Soft_Delete_Base { |
| 27 | 27 | const system_personal = 1; |
| 28 | 28 | const system_address = 2; |
@@ -30,25 +30,25 @@ discard block |
||
| 30 | 30 | protected static $_instance = NULL; |
| 31 | 31 | |
| 32 | 32 | |
| 33 | - protected function __construct( $timezone = NULL ) { |
|
| 34 | - $this->singular_item = __('Question Group','event_espresso'); |
|
| 35 | - $this->plural_item = __('Question Groups','event_espresso'); |
|
| 33 | + protected function __construct($timezone = NULL) { |
|
| 34 | + $this->singular_item = __('Question Group', 'event_espresso'); |
|
| 35 | + $this->plural_item = __('Question Groups', 'event_espresso'); |
|
| 36 | 36 | |
| 37 | 37 | $this->_tables = array( |
| 38 | - 'Question_Group'=>new EE_Primary_Table('esp_question_group','QSG_ID') |
|
| 38 | + 'Question_Group'=>new EE_Primary_Table('esp_question_group', 'QSG_ID') |
|
| 39 | 39 | ); |
| 40 | 40 | $this->_fields = array( |
| 41 | 41 | 'Question_Group'=>array( |
| 42 | - 'QSG_ID'=>new EE_Primary_Key_Int_Field('QSG_ID', __('Question Group ID','event_espresso')), |
|
| 43 | - 'QSG_name'=>new EE_Plain_Text_Field('QSG_name', __('Question Group Name','event_espresso'), false, ''), |
|
| 44 | - 'QSG_identifier'=>new EE_Plain_Text_Field('QSG_identifier', __('Text ID for question Group','event_espresso'), false, ''), |
|
| 45 | - 'QSG_desc'=>new EE_Post_Content_Field('QSG_desc', __('Description of Question Group','event_espresso'), true, ''), |
|
| 46 | - 'QSG_order'=>new EE_Integer_Field('QSG_order', __('Order in which to show the question group','event_espresso'), true, 0), |
|
| 47 | - 'QSG_show_group_name'=>new EE_Boolean_Field('QSG_show_group_name', __('Flag indicating whether to show the group\'s name on the registration page','event_espresso'), false, true), |
|
| 48 | - 'QSG_show_group_desc'=>new EE_Boolean_Field('QSG_show_group_desc', __('Flag indicating whether to show the group\s description on the registration page','event_espresso'), false, false), |
|
| 49 | - 'QSG_wp_user' => new EE_WP_User_Field('QSG_wp_user', __('Question Group Creator ID', 'event_espresso'), FALSE ), |
|
| 50 | - 'QSG_system'=>new EE_Integer_Field('QSG_system', __('Indicate IF this is a system group and if it is what system group it corresponds to.','event_espresso'), false, 0), |
|
| 51 | - 'QSG_deleted'=>new EE_Trashed_Flag_Field('QSG_deleted', __('Flag indicating this question group was deleted','event_espresso'), false, false) |
|
| 42 | + 'QSG_ID'=>new EE_Primary_Key_Int_Field('QSG_ID', __('Question Group ID', 'event_espresso')), |
|
| 43 | + 'QSG_name'=>new EE_Plain_Text_Field('QSG_name', __('Question Group Name', 'event_espresso'), false, ''), |
|
| 44 | + 'QSG_identifier'=>new EE_Plain_Text_Field('QSG_identifier', __('Text ID for question Group', 'event_espresso'), false, ''), |
|
| 45 | + 'QSG_desc'=>new EE_Post_Content_Field('QSG_desc', __('Description of Question Group', 'event_espresso'), true, ''), |
|
| 46 | + 'QSG_order'=>new EE_Integer_Field('QSG_order', __('Order in which to show the question group', 'event_espresso'), true, 0), |
|
| 47 | + 'QSG_show_group_name'=>new EE_Boolean_Field('QSG_show_group_name', __('Flag indicating whether to show the group\'s name on the registration page', 'event_espresso'), false, true), |
|
| 48 | + 'QSG_show_group_desc'=>new EE_Boolean_Field('QSG_show_group_desc', __('Flag indicating whether to show the group\s description on the registration page', 'event_espresso'), false, false), |
|
| 49 | + 'QSG_wp_user' => new EE_WP_User_Field('QSG_wp_user', __('Question Group Creator ID', 'event_espresso'), FALSE), |
|
| 50 | + 'QSG_system'=>new EE_Integer_Field('QSG_system', __('Indicate IF this is a system group and if it is what system group it corresponds to.', 'event_espresso'), false, 0), |
|
| 51 | + 'QSG_deleted'=>new EE_Trashed_Flag_Field('QSG_deleted', __('Flag indicating this question group was deleted', 'event_espresso'), false, false) |
|
| 52 | 52 | ) |
| 53 | 53 | ); |
| 54 | 54 | $this->_model_relations = array( |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | 'WP_User' => new EE_Belongs_To_Relation(), |
| 59 | 59 | ); |
| 60 | 60 | //this model is generally available for reading |
| 61 | - $this->_cap_restriction_generators[ EEM_Base::caps_read ] = new EE_Restriction_Generator_Public(); |
|
| 62 | - $this->_cap_restriction_generators[ EEM_Base::caps_read_admin ] = new EE_Restriction_Generator_Reg_Form('QSG_system'); |
|
| 63 | - $this->_cap_restriction_generators[ EEM_Base::caps_edit ] = new EE_Restriction_Generator_Reg_Form('QSG_system'); |
|
| 64 | - $this->_cap_restriction_generators[ EEM_Base::caps_delete ] = new EE_Restriction_Generator_Reg_Form('QSG_system'); |
|
| 65 | - parent::__construct( $timezone ); |
|
| 61 | + $this->_cap_restriction_generators[EEM_Base::caps_read] = new EE_Restriction_Generator_Public(); |
|
| 62 | + $this->_cap_restriction_generators[EEM_Base::caps_read_admin] = new EE_Restriction_Generator_Reg_Form('QSG_system'); |
|
| 63 | + $this->_cap_restriction_generators[EEM_Base::caps_edit] = new EE_Restriction_Generator_Reg_Form('QSG_system'); |
|
| 64 | + $this->_cap_restriction_generators[EEM_Base::caps_delete] = new EE_Restriction_Generator_Reg_Form('QSG_system'); |
|
| 65 | + parent::__construct($timezone); |
|
| 66 | 66 | |
| 67 | 67 | } |
| 68 | 68 | /** |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function get_latest_question_group_order() { |
| 74 | 74 | $columns_to_select = array( |
| 75 | - 'max_order' => array("MAX(QSG_order)","%d") |
|
| 75 | + 'max_order' => array("MAX(QSG_order)", "%d") |
|
| 76 | 76 | ); |
| 77 | - $max = $this->_get_all_wpdb_results(array(), ARRAY_A, $columns_to_select ); |
|
| 77 | + $max = $this->_get_all_wpdb_results(array(), ARRAY_A, $columns_to_select); |
|
| 78 | 78 | return $max[0]['max_order']; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -1,4 +1,6 @@ |
||
| 1 | -<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
| 1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
| 2 | + exit('No direct script access allowed'); |
|
| 3 | +} |
|
| 2 | 4 | /** |
| 3 | 5 | * Event Espresso |
| 4 | 6 | * |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php if (!defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
|
| 1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
|
| 2 | 2 | /** |
| 3 | 3 | * Class EE_Radio_Button_Display_Strategy |
| 4 | 4 | * displays a set of radio buttons |
@@ -15,34 +15,34 @@ discard block |
||
| 15 | 15 | * @throws EE_Error |
| 16 | 16 | * @return string of html to display the field |
| 17 | 17 | */ |
| 18 | - public function display(){ |
|
| 18 | + public function display() { |
|
| 19 | 19 | $input = $this->get_input(); |
| 20 | 20 | $input->set_label_sizes(); |
| 21 | 21 | $label_size_class = $input->get_label_size_class(); |
| 22 | 22 | $html = ''; |
| 23 | - foreach( $input->options() as $value => $display_text ){ |
|
| 24 | - $value = $input->get_normalization_strategy()->unnormalize( $value ); |
|
| 23 | + foreach ($input->options() as $value => $display_text) { |
|
| 24 | + $value = $input->get_normalization_strategy()->unnormalize($value); |
|
| 25 | 25 | |
| 26 | - $html_id = $this->get_sub_input_id( $value ); |
|
| 27 | - $html .= EEH_HTML::nl( 0, 'radio' ); |
|
| 28 | - $html .= '<label for="' . $html_id . '"'; |
|
| 29 | - $html .= ' id="' . $html_id . '-lbl"'; |
|
| 30 | - $html .= ' class="ee-radio-label-after' . $label_size_class . '">'; |
|
| 31 | - $html .= EEH_HTML::nl( 1, 'radio' ); |
|
| 32 | - $html .= '<input id="' . $html_id . '"'; |
|
| 33 | - $html .= ' name="' . $input->html_name() . '"'; |
|
| 34 | - $html .= ' class="' . $input->html_class() . '"'; |
|
| 35 | - $html .= ' style="' . $input->html_style() . '"'; |
|
| 26 | + $html_id = $this->get_sub_input_id($value); |
|
| 27 | + $html .= EEH_HTML::nl(0, 'radio'); |
|
| 28 | + $html .= '<label for="'.$html_id.'"'; |
|
| 29 | + $html .= ' id="'.$html_id.'-lbl"'; |
|
| 30 | + $html .= ' class="ee-radio-label-after'.$label_size_class.'">'; |
|
| 31 | + $html .= EEH_HTML::nl(1, 'radio'); |
|
| 32 | + $html .= '<input id="'.$html_id.'"'; |
|
| 33 | + $html .= ' name="'.$input->html_name().'"'; |
|
| 34 | + $html .= ' class="'.$input->html_class().'"'; |
|
| 35 | + $html .= ' style="'.$input->html_style().'"'; |
|
| 36 | 36 | $html .= ' type="radio"'; |
| 37 | - $html .= ' value="' . esc_attr( $value ) . '"'; |
|
| 37 | + $html .= ' value="'.esc_attr($value).'"'; |
|
| 38 | 38 | $html .= $input->raw_value() === $value ? ' checked="checked"' : ''; |
| 39 | - $html .= ' ' . $this->_input->other_html_attributes(); |
|
| 39 | + $html .= ' '.$this->_input->other_html_attributes(); |
|
| 40 | 40 | $html .= '> '; |
| 41 | 41 | $html .= $display_text; |
| 42 | - $html .= EEH_HTML::nl( -1, 'radio' ) . '</label>'; |
|
| 42 | + $html .= EEH_HTML::nl( -1, 'radio' ).'</label>'; |
|
| 43 | 43 | |
| 44 | 44 | } |
| 45 | - $html .= EEH_HTML::div( '', '', 'clear-float' ); |
|
| 45 | + $html .= EEH_HTML::div('', '', 'clear-float'); |
|
| 46 | 46 | $html .= EEH_HTML::divx(); |
| 47 | 47 | return $html; |
| 48 | 48 | } |