Advertisement
pixeltron

Untitled

Dec 8th, 2015
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. public function reg_step_submit_button() {
  2. if ( ! $this->checkout->next_step instanceof EE_SPCO_Reg_Step ) {
  3. return '';
  4. }
  5. ob_start();
  6. do_action( 'AHEE__before_spco_whats_next_buttons', $this->slug(), $this->checkout->next_step->slug(), $this->checkout );
  7. $html = ob_get_clean();
  8. // generate submit button
  9. $sbmt_btn = new EE_Submit_Input( array(
  10. 'html_name' => 'spco-go-to-step-' . $this->checkout->next_step->slug(),
  11. 'html_id' => 'spco-go-to-step-' . $this->checkout->next_step->slug(),
  12. 'html_class' => 'spco-next-step-btn', //JLK EDIT LOGIN BUTTON REG PAGE
  13. 'other_html_attributes' => ' rel="' . $this->slug() . '"',
  14. 'default' => '> ' . $this->submit_button_text()
  15. ));
  16. $sbmt_btn->set_button_css_attributes( TRUE, 'large' );
  17. $sbmt_btn_html = $sbmt_btn->get_html_for_input() ;
  18. EE_Registry::instance()->load_helper('HTML');
  19. $html .= EEH_HTML::div(
  20. apply_filters( 'FHEE__EE_SPCO_Reg_Step__reg_step_submit_button__sbmt_btn_html', $sbmt_btn_html, $this ),
  21. // apply_filters( 'FHEE__EE_SPCO_Reg_Step__reg_step_submit_button__sbmt_btn_text', $sbmt_btn, $this->submit_button_text()),
  22. 'spco-' . $this->slug() . '-whats-next-buttons-dv',
  23. 'spco-whats-next-buttons'
  24. );
  25. return $html;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement