Malin gist felülvizsgálása . Revízióhoz ugrás
1 file changed, 73 insertions
page-logout-confirmation.php(fájl létrehozva)
| @@ -0,0 +1,73 @@ | |||
| 1 | + | <?php | |
| 2 | + | /* | |
| 3 | + | Template Name: Confirmación de Cierre de Sesión | |
| 4 | + | */ | |
| 5 | + | ||
| 6 | + | // for QRh | |
| 7 | + | ||
| 8 | + | if (!is_user_logged_in()) { | |
| 9 | + | wp_redirect(home_url()); | |
| 10 | + | exit; | |
| 11 | + | } | |
| 12 | + | ||
| 13 | + | get_header(); | |
| 14 | + | ?> | |
| 15 | + | ||
| 16 | + | <div class="logout-confirmation"> | |
| 17 | + | <h1><?php _e('¿Está seguro de que desea cerrar sesión?', 'your-theme'); ?></h1> | |
| 18 | + | <p><?php _e('Gracias por comprar en Quick Response Hairdressing. ¡Esperamos verte pronto!', 'your-theme'); ?></p> | |
| 19 | + | <a href="<?php echo wp_logout_url(home_url()); ?>" class="logout-button"><?php _e('Sí, cerrar sesión', 'your-theme'); ?></a> | |
| 20 | + | <a href="<?php echo home_url(); ?>" class="cancel-button"><?php _e('Cancelar', 'your-theme'); ?></a> | |
| 21 | + | </div> | |
| 22 | + | ||
| 23 | + | <style> | |
| 24 | + | .logout-confirmation { | |
| 25 | + | text-align: center; | |
| 26 | + | padding: 20px; | |
| 27 | + | } | |
| 28 | + | .logout-confirmation h1 { | |
| 29 | + | font-family: "Nexa-Heavy", Sans-serif; | |
| 30 | + | font-weight: 600; | |
| 31 | + | font-size: 24px; | |
| 32 | + | line-height: 32px; | |
| 33 | + | color: #21210E; | |
| 34 | + | margin-bottom: 20px; | |
| 35 | + | } | |
| 36 | + | .logout-confirmation p { | |
| 37 | + | font-family: 'Roboto', sans-serif; | |
| 38 | + | font-size: 16px; | |
| 39 | + | line-height: 24px; | |
| 40 | + | color: #21210E; | |
| 41 | + | margin-bottom: 20px; | |
| 42 | + | } | |
| 43 | + | .logout-button, .cancel-button { | |
| 44 | + | display: inline-block; | |
| 45 | + | font-family: 'Roboto', sans-serif; | |
| 46 | + | font-size: 16px; | |
| 47 | + | line-height: 24px; | |
| 48 | + | padding: 10px 20px; | |
| 49 | + | margin: 5px; | |
| 50 | + | text-decoration: none; | |
| 51 | + | color: #ffffff; | |
| 52 | + | } | |
| 53 | + | .logout-button { | |
| 54 | + | background-color: #E50913; | |
| 55 | + | } | |
| 56 | + | .logout-button:hover { | |
| 57 | + | background-color: #21210E; | |
| 58 | + | text-decoration: underline; | |
| 59 | + | color: #ffffff; | |
| 60 | + | } | |
| 61 | + | .cancel-button { | |
| 62 | + | background-color: #21210E; | |
| 63 | + | } | |
| 64 | + | .cancel-button:hover { | |
| 65 | + | background-color: #E50913; | |
| 66 | + | text-decoration: underline; | |
| 67 | + | color: #ffffff; | |
| 68 | + | } | |
| 69 | + | </style> | |
| 70 | + | ||
| 71 | + | <?php | |
| 72 | + | get_footer(); | |
| 73 | + | ?> | |
Újabb
Régebbi