index.php
50 lines
| 1 | <style> |
| 2 | #wpwrap { |
| 3 | --sc-color-primary-500: var(--sc-color-brand-primary); |
| 4 | background: var(--sc-color-brand-main-background); |
| 5 | } |
| 6 | |
| 7 | .wrap .container { |
| 8 | width: 100%; |
| 9 | padding-top: 3em; |
| 10 | } |
| 11 | |
| 12 | .wrap .container sc-card { |
| 13 | width: 100%; |
| 14 | max-width: 600px; |
| 15 | } |
| 16 | |
| 17 | .wrap .container sc-card sc-icon { |
| 18 | font-size: 24px; |
| 19 | color: var(--sc-color-primary-500); |
| 20 | } |
| 21 | |
| 22 | .wrap .container .button-container { |
| 23 | gap: 1em; |
| 24 | } |
| 25 | |
| 26 | </style> |
| 27 | <div class="wrap"> |
| 28 | <?php \SureCart::render( 'layouts/partials/admin-index-styles' ); ?> |
| 29 | |
| 30 | <sc-flex justify-content="center" class="container"> |
| 31 | <sc-card style="--sc-card-padding: var(--sc-spacing-xxx-large)"> |
| 32 | <form action="" method="post"> |
| 33 | <?php wp_nonce_field( 'restore_missing_page', 'nonce' ); ?> |
| 34 | <input type="hidden" name="restore" value="<?php echo esc_attr( $restore ?? '' ); ?>" /> |
| 35 | <sc-flex flex-direction="column" style="--sc-flex-column-gap:1em;"> |
| 36 | <sc-icon name="repeat"></sc-icon> |
| 37 | <sc-heading size="large"><?php esc_html_e( 'Restore', 'surecart' ); ?></sc-heading> |
| 38 | <sc-text> |
| 39 | <?php esc_html_e( 'This page is important for certain SureCart eCommerce features. Bringing back this page will make sure SureCart works as expected.', 'surecart' ); ?> |
| 40 | </sc-text> |
| 41 | <sc-flex class="button-container" justify-content="flex-start"> |
| 42 | <sc-button size="large" type="primary" submit><?php esc_html_e( 'Restore', 'surecart' ); ?></sc-button> |
| 43 | <sc-button size="large" type="link" onclick="window.history.back()"><?php esc_html_e( 'Cancel', 'surecart' ); ?></sc-button> |
| 44 | </sc-flex> |
| 45 | </sc-flex> |
| 46 | </form> |
| 47 | </sc-card> |
| 48 | </sc-flex> |
| 49 | </div> |
| 50 |