| 1 |
<?php |
| 2 |
/** |
| 3 |
* Change template (default) |
| 4 |
* |
| 5 |
* @ver 1.0.0 |
| 6 |
*/ |
| 7 |
$css_class = !empty($args['css_class']) ? esc_attr( $args['css_class'] ) : 'border-0'; |
| 8 |
|
| 9 |
do_action( 'uwp_template_before', 'change' ); |
| 10 |
?> |
| 11 |
<div class="row"> |
| 12 |
<div class="card mx-auto container-fluid p-0 <?php echo esc_attr( $css_class ); ?>" > |
| 13 |
<div class="card-body"> |
| 14 |
<?php |
| 15 |
do_action( 'uwp_template_form_title_before', 'change' ); |
| 16 |
|
| 17 |
$form_title = ! empty( $args['form_title'] ) || $args['form_title']=='0' ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Change Password', 'userswp' ); |
| 18 |
$form_title = apply_filters( 'uwp_template_form_title', $form_title, 'change' ); |
| 19 |
if ( $form_title ) { |
| 20 |
echo '<h3 class="card-title text-center mb-4">'; |
| 21 |
echo esc_attr( $form_title ); |
| 22 |
echo '</h3>'; |
| 23 |
} |
| 24 |
|
| 25 |
do_action( 'uwp_template_display_notices', 'change' ); |
| 26 |
?> |
| 27 |
<form class="uwp-change-form uwp_form" method="post"> |
| 28 |
<?php do_action( 'uwp_template_fields', 'change' ); ?> |
| 29 |
<input name="uwp_change_submit" class="btn btn-primary btn-block text-uppercase" value="<?php esc_attr_e( 'Submit', 'userswp' ); ?>" type="submit"> |
| 30 |
</form> |
| 31 |
|
| 32 |
<div class="uwp-footer-links"> |
| 33 |
<div class="uwp-footer-link float-left"> |
| 34 |
<?php |
| 35 |
echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 36 |
'type' => 'a', |
| 37 |
'href' => esc_url( uwp_get_account_page_url() ), |
| 38 |
'class' => 'd-block text-center mt-2 small', |
| 39 |
'content' => esc_attr( uwp_get_option("account_link_title") ? uwp_get_option("account_link_title") : __( 'Account', 'userswp' ) ), |
| 40 |
'extra_attributes' => array('rel'=>'nofollow') |
| 41 |
)); |
| 42 |
?> |
| 43 |
</div> |
| 44 |
<div class="uwp-footer-link float-right"> |
| 45 |
<?php |
| 46 |
echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 47 |
'type' => 'a', |
| 48 |
'href' => esc_url( uwp_get_profile_page_url() ), |
| 49 |
'class' => 'd-block text-center mt-2 small', |
| 50 |
'content' => esc_attr( uwp_get_option("profile_link_title") ? uwp_get_option("profile_link_title") : __( 'Profile', 'userswp' ) ), |
| 51 |
'extra_attributes' => array('rel'=>'nofollow') |
| 52 |
)); |
| 53 |
?> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
</div> |
| 59 |
<?php do_action( 'uwp_template_after', 'change' ); ?> |