| 1 |
<?php |
| 2 |
/** |
| 3 |
* Sticky Setup Wizard footer actions. |
| 4 |
* |
| 5 |
* @package Booking Calendar |
| 6 |
* @var array<string,mixed> $template_context Authorized footer context. |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
$continue_label = isset( $template_context['continue_label'] ) && is_scalar( $template_context['continue_label'] ) |
| 14 |
? (string) $template_context['continue_label'] |
| 15 |
: __( 'Save & continue', 'booking' ); |
| 16 |
$show_continue_icon = ! isset( $template_context['show_continue_icon'] ) || ! empty( $template_context['show_continue_icon'] ); |
| 17 |
?> |
| 18 |
<footer class="wpbc_setup_wizard__footer"> |
| 19 |
<div class="wpbc_setup_wizard__footer-secondary"> |
| 20 |
<button type="button" class="button button-link" data-wpbc-setup-wizard-open-dialog="skip"><?php esc_html_e( 'Skip Setup Wizard', 'booking' ); ?></button> |
| 21 |
<button type="button" class="button button-link" data-wpbc-setup-wizard-open-dialog="restart"><?php esc_html_e( 'Restart Wizard', 'booking' ); ?></button> |
| 22 |
</div> |
| 23 |
<div class="wpbc_setup_wizard__footer-primary"> |
| 24 |
<?php if ( ! empty( $template_context['footer_note'] ) ) : ?> |
| 25 |
<p class="wpbc_setup_wizard__footer-note"><?php echo esc_html( $template_context['footer_note'] ); ?></p> |
| 26 |
<?php endif; ?> |
| 27 |
<div class="wpbc_setup_wizard__footer-primary-actions"> |
| 28 |
<?php if ( $template_context['has_previous_step'] ) : ?> |
| 29 |
<button type="button" class="button button-secondary" data-wpbc-setup-wizard-direction="back"> |
| 30 |
<i class="menu_icon icon-1x wpbc_icn_arrow_back_ios" aria-hidden="true"></i> |
| 31 |
<span><?php esc_html_e( 'Back', 'booking' ); ?></span> |
| 32 |
</button> |
| 33 |
<?php endif; ?> |
| 34 |
<button |
| 35 |
type="button" |
| 36 |
<?php if ( $template_context['has_step_form'] ) : ?>form="wpbc-setup-wizard-step-form"<?php endif; ?> |
| 37 |
class="button button-primary" |
| 38 |
data-wpbc-setup-wizard-direction="next" |
| 39 |
<?php if ( $template_context['can_continue'] ) : ?>data-wpbc-setup-wizard-enable-when-ready<?php endif; ?> |
| 40 |
<?php if ( $template_context['has_step_form'] ) : ?>data-wpbc-setup-wizard-submit-when-ready<?php endif; ?> |
| 41 |
disabled |
| 42 |
> |
| 43 |
<span><?php echo esc_html( $continue_label ); ?></span> |
| 44 |
<?php if ( $show_continue_icon ) : ?> |
| 45 |
<i class="menu_icon icon-1x wpbc_icn_arrow_forward_ios" aria-hidden="true"></i> |
| 46 |
<?php endif; ?> |
| 47 |
</button> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</footer> |
| 51 |
|