page-logout-confirmation.php
· 1.8 KiB · PHP
Raw
<?php
/*
Template Name: Confirmación de Cierre de Sesión
*/
// for QRh
if (!is_user_logged_in()) {
wp_redirect(home_url());
exit;
}
get_header();
?>
<div class="logout-confirmation">
<h1><?php _e('¿Está seguro de que desea cerrar sesión?', 'your-theme'); ?></h1>
<p><?php _e('Gracias por comprar en Quick Response Hairdressing. ¡Esperamos verte pronto!', 'your-theme'); ?></p>
<a href="<?php echo wp_logout_url(home_url()); ?>" class="logout-button"><?php _e('Sí, cerrar sesión', 'your-theme'); ?></a>
<a href="<?php echo home_url(); ?>" class="cancel-button"><?php _e('Cancelar', 'your-theme'); ?></a>
</div>
<style>
.logout-confirmation {
text-align: center;
padding: 20px;
}
.logout-confirmation h1 {
font-family: "Nexa-Heavy", Sans-serif;
font-weight: 600;
font-size: 24px;
line-height: 32px;
color: #21210E;
margin-bottom: 20px;
}
.logout-confirmation p {
font-family: 'Roboto', sans-serif;
font-size: 16px;
line-height: 24px;
color: #21210E;
margin-bottom: 20px;
}
.logout-button, .cancel-button {
display: inline-block;
font-family: 'Roboto', sans-serif;
font-size: 16px;
line-height: 24px;
padding: 10px 20px;
margin: 5px;
text-decoration: none;
color: #ffffff;
}
.logout-button {
background-color: #E50913;
}
.logout-button:hover {
background-color: #21210E;
text-decoration: underline;
color: #ffffff;
}
.cancel-button {
background-color: #21210E;
}
.cancel-button:hover {
background-color: #E50913;
text-decoration: underline;
color: #ffffff;
}
</style>
<?php
get_footer();
?>
| 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 | ?> |
| 74 |