first commit
This commit is contained in:
59
public/templates/thank-you.php
Normal file
59
public/templates/thank-you.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>Thankyou for your order #<?php echo intval($order_id); ?></title>
|
||||
<?php wp_head(); ?>
|
||||
<style>
|
||||
body {
|
||||
--formipay-button-submit-bg-color: <?php echo esc_html($button_background_color['regular']) ?? '#000000'; ?>;
|
||||
--formipay-button-submit-bg-color-hover: <?php echo esc_html($button_background_color['hover']) ?? '#ffffff'; ?>;
|
||||
--formipay-button-submit-bg-color-active: <?php echo esc_html($button_background_color['active']) ?? '#ffffff'; ?>;
|
||||
--formipay-button-submit-text-color: <?php echo esc_html($button_text_color['regular']) ?? '#ffffff'; ?>;
|
||||
--formipay-button-submit-text-color-hover: <?php echo esc_html($button_text_color['hover']) ?? '#000000'; ?>;
|
||||
--formipay-button-submit-text-color-active: <?php echo esc_html($button_text_color['active']) ?? '#000000'; ?>;
|
||||
--formipay-button-submit-border-color: <?php echo esc_html($button_border_color['regular']) ?? '#000000'; ?>;
|
||||
--formipay-button-submit-border-color-hover: <?php echo esc_html($button_border_color['hover']) ?? '#ffffff'; ?>;
|
||||
--formipay-button-submit-border-color-hover: <?php echo esc_html($button_border_color['hover']) ?? '#ffffff'; ?>;
|
||||
--formipay-button-submit-border-color-active: <?php echo esc_html($button_border_color['active']) ?? '#ffffff'; ?>;
|
||||
--formipay-thankyou-screen-width: <?php echo intval($formipay_settings['thankyou_page_wrapper_max_width']) ?? 600 ?>px;
|
||||
--formipay-thankyou-container-bg-color: <?php echo esc_html($formipay_settings['thankyou_page_container_bg_color']) ?? '#808080'; ?>;
|
||||
--formipay-thankyou-wrapper-bg-color: <?php echo esc_html($formipay_settings['thankyou_page_wrapper_bg_color']) ?? '#ffffff'; ?>;
|
||||
--formipay-thankyou-table-alignment: <?php echo esc_html(formipay_get_post_meta($form_id, 'thankyou_screen_table_alignment')) ?? 'center'; ?>;
|
||||
--formipay-confirm-dropzone-bg-color: <?php echo esc_html($formipay_settings['bank_transfer_confirmation_dropzone_color']) ?? '#cccccc'; ?>;
|
||||
--formipay-confirm-dropzone-text-color: <?php echo esc_html($formipay_settings['bank_transfer_confirmation_dropzone_text_color']) ?? '#808080'; ?>;
|
||||
<?php
|
||||
switch (formipay_get_post_meta($form_id, 'thankyou_screen_table_alignment')) {
|
||||
case 'left':
|
||||
?>
|
||||
--formipay-thankyou-table-alignment-left: unset;
|
||||
--formipay-thankyou-table-alignment-right: auto;
|
||||
<?php
|
||||
break;
|
||||
case 'right':
|
||||
?>
|
||||
--formipay-thankyou-table-alignment-left: auto;
|
||||
--formipay-thankyou-table-alignment-right: unset;
|
||||
<?php
|
||||
break;
|
||||
|
||||
default:
|
||||
?>
|
||||
--formipay-thankyou-table-alignment-left: auto;
|
||||
--formipay-thankyou-table-alignment-right: auto;
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
?>
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="formipay-container">
|
||||
<?php
|
||||
$this->view_access();
|
||||
wp_footer();
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user