/** * _update_payment_method_button * * @access protected * @param \EE_Payment_Method $payment_method * @return \EE_Form_Section_HTML */ protected function _update_payment_method_button(EE_Payment_Method $payment_method) { $update_button = new EE_Submit_Input(array('html_id' => 'save_' . $payment_method->slug() . '_settings', 'default' => sprintf(__('Update %s Payment Settings', 'event_espresso'), $payment_method->admin_name()), 'html_label' => EEH_HTML::nbsp())); return new EE_Form_Section_HTML(EEH_HTML::no_row(EEH_HTML::br(2)) . EEH_HTML::tr(EEH_HTML::th(__('Update Settings', 'event_espresso')) . EEH_HTML::td($update_button->get_html_for_input()))); }
/** * div_class - returns nothing for current step, but a css class of "hidden" for others * @return string */ public function reg_step_submit_button() { if (!$this->checkout->next_step instanceof EE_SPCO_Reg_Step) { return ''; } ob_start(); do_action('AHEE__before_spco_whats_next_buttons', $this->slug(), $this->checkout->next_step->slug(), $this->checkout); $html = ob_get_clean(); // generate submit button $sbmt_btn = new EE_Submit_Input(array('html_name' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), 'html_id' => 'spco-go-to-step-' . $this->checkout->next_step->slug(), 'html_class' => 'spco-next-step-btn', 'other_html_attributes' => ' rel="' . $this->slug() . '"', 'default' => $this->submit_button_text())); $sbmt_btn->set_button_css_attributes(TRUE, 'large'); $sbmt_btn_html = $sbmt_btn->get_html_for_input(); EE_Registry::instance()->load_helper('HTML'); $html .= EEH_HTML::div(apply_filters('FHEE__EE_SPCO_Reg_Step__reg_step_submit_button__sbmt_btn_html', $sbmt_btn_html, $this), 'spco-' . $this->slug() . '-whats-next-buttons-dv', 'spco-whats-next-buttons'); return $html; }