| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 3 |
|
| 4 |
/** |
| 5 |
* @var string $title |
| 6 |
* @var string $description |
| 7 |
* @var string $url |
| 8 |
* @var string $btn_txt |
| 9 |
*/ |
| 10 |
?> |
| 11 |
<!DOCTYPE html> |
| 12 |
<html style="background: #f0f0f1;" <?php language_attributes(); ?>> |
| 13 |
<head> |
| 14 |
<title><?php echo esc_attr($title); ?></title> |
| 15 |
<meta charset='utf-8'> |
| 16 |
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover"/> |
| 17 |
<meta name="mobile-web-app-capable" content="yes"> |
| 18 |
<meta name="description" content="<?php echo esc_attr($description); ?>"> |
| 19 |
<link rel="icon" type="image/x-icon" href="<?php echo esc_url(get_site_icon_url()); ?>"/> |
| 20 |
<?php |
| 21 |
$fluent_community_custom_css = apply_filters('fluent_community/error_page_custom_css', ''); |
| 22 |
if ($fluent_community_custom_css): ?> |
| 23 |
<style><?php echo wp_strip_all_tags($fluent_community_custom_css); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- intentional CSS output, tags stripped ?></style> |
| 24 |
<?php endif; ?> |
| 25 |
</head> |
| 26 |
<body style='font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'> |
| 27 |
<div style="display: block; width: 100%;" class="fluent_com"> |
| 28 |
<div style="max-width: 600px;margin: 150px auto;border: 1px solid #e3e8ee;border-radius: 10px;" class="fcom_error_wrapper"> |
| 29 |
<div style="padding: 15px 20px;background: #f0f2f5;border-top-left-radius: 10px;border-top-right-radius: 10px;border-bottom: 1px solid #e3e8ee;" class="fcom_error_title"> |
| 30 |
<h3 style="margin: 0"><?php echo wp_kses_post($title); ?></h3> |
| 31 |
</div> |
| 32 |
<div style="padding: 20px 20px 40px;background: white;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;" class="fcom_error_body"> |
| 33 |
<p><?php echo wp_kses_post($description); ?></p> |
| 34 |
|
| 35 |
<?php if($btn_txt): ?> |
| 36 |
<div style="text-align: center;margin-top: 40px;" class="btn_wrapper"> |
| 37 |
<a style=" background: black;color: white;padding: 10px 20px;border-radius: 5px;text-decoration: none;display: inline-block;" href="<?php echo esc_url($url); ?>" class="fcom_btn fcom_btn_primary"> |
| 38 |
<?php echo wp_kses_post($btn_txt); ?> |
| 39 |
</a> |
| 40 |
</div> |
| 41 |
<?php endif; ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</body> |
| 46 |
</html> |
| 47 |
|