public static function _ticket_selector_settings_form() { EE_Registry::instance()->load_helper('HTML'); EE_Registry::instance()->load_helper('Template'); return new EE_Form_Section_Proper(array('name' => 'ticket_selector_settings_form', 'html_id' => 'ticket_selector_settings_form', 'layout_strategy' => new EE_Div_Per_Section_Layout(), 'subsections' => apply_filters('FHEE__EED_Ticket_Selector_Caff___ticket_selector_settings_form__form_subsections', array('appearance_settings_hdr' => new EE_Form_Section_HTML(EEH_HTML::h3(__('Ticket Selector Template Settings', 'event_espresso'))), 'appearance_settings' => EED_Ticket_Selector_Caff::_ticket_selector_appearance_settings())))); }
/** * _payment_method_billing_info * * @access private * @param EE_Payment_Method $payment_method * @return \EE_Form_Section_Proper */ private function _payment_method_billing_info(EE_Payment_Method $payment_method) { $currently_selected = $this->checkout->selected_method_of_payment == $payment_method->slug() ? TRUE : FALSE; // generate the billing form for payment method $billing_form = $currently_selected ? $this->_get_billing_form_for_payment_method($payment_method) : new EE_Form_Section_HTML(); $this->checkout->billing_form = $currently_selected ? $billing_form : $this->checkout->billing_form; // it's all in the details $info_html = EEH_HTML::h3(__('Important information regarding your payment', 'event_espresso'), '', 'spco-payment-method-hdr'); // add some info regarding the step, either from what's saved in the admin, or a default string depending on whether the PM has a billing form or not if ($payment_method->description()) { $payment_method_info = $payment_method->description(); } elseif ($billing_form instanceof EE_Billing_Info_Form) { $payment_method_info = sprintf(__('Please provide the following billing information, then click the "%1$s" button below in order to proceed.', 'event_espresso'), $this->submit_button_text()); } else { $payment_method_info = sprintf(__('Please click the "%1$s" button below in order to proceed.', 'event_espresso'), $this->submit_button_text()); } $info_html .= EEH_HTML::p(apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___payment_method_billing_info__payment_method_info', $payment_method_info), '', 'spco-payment-method-desc ee-attention'); return new EE_Form_Section_Proper(array('html_id' => 'spco-payment-method-info-' . $payment_method->slug(), 'html_class' => 'spco-payment-method-info-dv', 'html_style' => $currently_selected ? '' : 'display:none;', 'layout_strategy' => new EE_Div_Per_Section_Layout(), 'subsections' => array('info' => new EE_Form_Section_HTML($info_html), 'billing_form' => $currently_selected ? $billing_form : new EE_Form_Section_HTML()))); }
/** * @access public * @param EE_Question_Group $question_group * @return EE_Form_Section_HTML */ public function question_group_header(EE_Question_Group $question_group) { $html = ''; // group_name if ($question_group->show_group_name() && $question_group->name() != '') { EE_Registry::instance()->load_helper('HTML'); if ($this->checkout->admin_request) { $html .= EEH_HTML::br(); $html .= EEH_HTML::h3($question_group->name(), '', 'ee-reg-form-qstn-grp-title title', 'font-size: 1.3em; padding-left:0;'); } else { $html .= EEH_HTML::h4($question_group->name(), '', 'ee-reg-form-qstn-grp-title section-title'); } } // group_desc if ($question_group->show_group_desc() && $question_group->desc() != '') { $html .= EEH_HTML::p($question_group->desc(), '', $this->checkout->admin_request ? 'ee-reg-form-qstn-grp-desc-pg' : 'ee-reg-form-qstn-grp-desc-pg small-text lt-grey-text'); } return new EE_Form_Section_HTML($html); }
/** * _recaptcha_main_settings * * @access protected * @return EE_Form_Section_Proper */ protected static function _recaptcha_settings_form() { EE_Registry::instance()->load_helper('HTML'); EE_Registry::instance()->load_helper('Template'); return new EE_Form_Section_Proper(array('name' => 'recaptcha_settings_form', 'html_id' => 'recaptcha_settings_form', 'layout_strategy' => new EE_Div_Per_Section_Layout(), 'subsections' => apply_filters('FHEE__EED_Recaptcha___recaptcha_settings_form__form_subsections', array('main_settings_hdr' => new EE_Form_Section_HTML(EEH_HTML::h3(__('reCAPTCHA Anti-spam Settings', 'event_espresso') . EEH_Template::get_help_tab_link('recaptcha_info'))), 'main_settings' => EED_Recaptcha::_recaptcha_main_settings(), 'appearance_settings_hdr' => new EE_Form_Section_HTML(EEH_HTML::h3(__('reCAPTCHA Appearance', 'event_espresso'))), 'appearance_settings' => EED_Recaptcha::_recaptcha_appearance_settings(), 'required_fields_note' => new EE_Form_Section_HTML(EEH_HTML::p(__('All fields marked with a * are required fields', 'event_espresso'), '', 'grey-text')))))); }