| @@ -1,18 +1,21 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * The template used to display the registration form. |
| 4 | 4 | * |
| 5 | - * @author Studio 164a | |
| 5 | + * @author WP Charitable LLC | |
| 6 | 6 | * @package Charitable/Templates/Account |
| 7 | 7 | * @since 1.0.0 |
| 8 | - * @version 1.5.7 | |
| 8 | + * @version 1.6.29 | |
| 9 | + * @version 1.8.8.6 | |
| 9 | 10 | */ |
| 10 | 11 | |
| 11 | 12 | // Exit if accessed directly. |
| 12 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit; | |
| 15 | +} | |
| 13 | 16 | |
| 14 | -$form = $view_args['form']; | |
| 17 | +$charitable_form = $view_args['form']; | |
| 15 | 18 | |
| 16 | 19 | /** |
| 17 | 20 | * Do something before rendering the user registration form. |
| 18 | 21 | * |
| @@ -18,9 +21,9 @@ | ||
| 18 | 21 | * |
| 19 | 22 | * @param Charitable_Form $form The form object. |
| 20 | 23 | * @param array $view_args All args passed to template. |
| 21 | 24 | */ |
| 22 | -do_action( 'charitable_user_registration_before', $form, $view_args ); | |
| 25 | +do_action( 'charitable_user_registration_before', $charitable_form, $view_args ); | |
| 23 | 26 | |
| 24 | 27 | ?> |
| 25 | 28 | <form method="post" id="charitable-registration-form" class="charitable-form"> |
| 26 | 29 | <?php |
| @@ -31,13 +34,13 @@ | ||
| 31 | 34 | * |
| 32 | 35 | * @param Charitable_Form $form The form object. |
| 33 | 36 | * @param array $view_args All args passed to template. |
| 34 | 37 | */ |
| 35 | - do_action( 'charitable_form_before_fields', $form, $view_args ); | |
| 38 | + do_action( 'charitable_form_before_fields', $charitable_form, $view_args ); | |
| 36 | 39 | |
| 37 | 40 | ?> |
| 38 | 41 | <div class="charitable-form-fields cf"> |
| 39 | - <?php $form->view()->render() ?> | |
| 42 | + <?php $charitable_form->view()->render(); ?> | |
| 40 | 43 | </div><!-- .charitable-form-fields --> |
| 41 | 44 | <?php |
| 42 | 45 | |
| 43 | 46 | /** |
| @@ -47,13 +50,13 @@ | ||
| 47 | 50 | * |
| 48 | 51 | * @param Charitable_Form $form The form object. |
| 49 | 52 | * @param array $view_args All args passed to template. |
| 50 | 53 | */ |
| 51 | - do_action( 'charitable_form_after_fields', $form, $view_args ); | |
| 54 | + do_action( 'charitable_form_after_fields', $charitable_form, $view_args ); | |
| 52 | 55 | |
| 53 | 56 | ?> |
| 54 | 57 | <div class="charitable-form-field charitable-submit-field"> |
| 55 | - <button class="button button-primary" type="submit" name="register"><?php esc_attr_e( 'Register', 'charitable' ) ?></button> | |
| 58 | + <button class="<?php echo esc_attr( charitable_get_button_class( 'registration' ) ); ?>" type="submit" name="register"><?php esc_attr_e( 'Register', 'charitable' ); ?></button> | |
| 56 | 59 | </div> |
| 57 | 60 | </form><!-- #charitable-registration-form --> |
| 58 | 61 | <?php |
| 59 | 62 | |
| @@ -62,5 +65,5 @@ | ||
| 62 | 65 | * |
| 63 | 66 | * @param Charitable_Form $form The form object. |
| 64 | 67 | * @param array $view_args All args passed to template. |
| 65 | 68 | */ |
| 66 | -do_action( 'charitable_user_registration_after', $form, $view_args ); | |
| 69 | +do_action( 'charitable_user_registration_after', $charitable_form, $view_args ); | |