| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || exit; |
| 3 |
|
| 4 |
/** |
| 5 |
* @var string $title |
| 6 |
* @var string $body |
| 7 |
* @var string $btn_url |
| 8 |
* @var string $btn_text |
| 9 |
*/ |
| 10 |
?> |
| 11 |
|
| 12 |
<!DOCTYPE html> |
| 13 |
<html lang='en'> |
| 14 |
<head> |
| 15 |
<title>Something went wrong</title> |
| 16 |
<meta charset='utf-8'> |
| 17 |
|
| 18 |
<meta content='width=device-width, initial-scale=1' name='viewport'> |
| 19 |
<meta content='yes' name='apple-mobile-web-app-capable'> |
| 20 |
<meta name="robots" content="noindex"/> |
| 21 |
|
| 22 |
<style> |
| 23 |
body * { |
| 24 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; |
| 25 |
} |
| 26 |
body { |
| 27 |
background: #f6f6f6; |
| 28 |
} |
| 29 |
.fcal_error_wrap { |
| 30 |
margin: 100px auto; |
| 31 |
max-width: 600px; |
| 32 |
background: white; |
| 33 |
border-radius: 8px; |
| 34 |
box-shadow: 0 0 10px rgba(0,0,0,.1); |
| 35 |
} |
| 36 |
|
| 37 |
.error_header { |
| 38 |
padding: 10px 15px; |
| 39 |
border-bottom: 1px solid #ebebeb; |
| 40 |
} |
| 41 |
|
| 42 |
.error_header h3 { |
| 43 |
margin: 0; |
| 44 |
} |
| 45 |
|
| 46 |
.error_body { |
| 47 |
padding: 10px 15px; |
| 48 |
} |
| 49 |
|
| 50 |
.error_footer { |
| 51 |
padding: 10px 15px; |
| 52 |
text-align: center; |
| 53 |
border-top: 1px solid #ebebeb; |
| 54 |
} |
| 55 |
|
| 56 |
.error_footer a { |
| 57 |
padding: 9px 12px; |
| 58 |
display: inline-block; |
| 59 |
text-decoration: none; |
| 60 |
background: #3F51B5; |
| 61 |
color: white; |
| 62 |
border-radius: 6px; |
| 63 |
} |
| 64 |
</style> |
| 65 |
</head> |
| 66 |
<body> |
| 67 |
<div class="fcal_error_wrap"> |
| 68 |
<div class="error_header"> |
| 69 |
<h3><?php echo esc_html($title); ?></h3> |
| 70 |
</div> |
| 71 |
<div class="error_body"> |
| 72 |
<p><?php echo wp_kses_post($body); ?></p> |
| 73 |
</div> |
| 74 |
<?php if (!empty($btn_url)): ?> |
| 75 |
<div class="error_footer"> |
| 76 |
<a href="<?php echo esc_url($btn_url); ?>" class="button"><?php echo esc_html($btn_text); ?></a> |
| 77 |
</div> |
| 78 |
<?php endif; ?> |
| 79 |
</div> |
| 80 |
</body> |
| 81 |
</html> |
| 82 |
|