| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | * @var string $btn_txt |
| 9 | 9 | */ |
| 10 | 10 | ?> |
| 11 | 11 | <!DOCTYPE html> |
| 12 | -<html style="background: #f0f0f1;" lang='en'> | |
| 12 | +<html style="background: #f0f0f1;" <?php language_attributes(); ?>> | |
| 13 | 13 | <head> |
| 14 | 14 | <title><?php echo esc_attr($title); ?></title> |
| 15 | 15 | <meta charset='utf-8'> |
| 16 | 16 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover"/> |
| @@ -16,8 +16,13 @@ | ||
| 16 | 16 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover"/> |
| 17 | 17 | <meta name="mobile-web-app-capable" content="yes"> |
| 18 | 18 | <meta name="description" content="<?php echo esc_attr($description); ?>"> |
| 19 | 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; ?> | |
| 20 | 25 | </head> |
| 21 | 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"'> |
| 22 | 27 | <div style="display: block; width: 100%;" class="fluent_com"> |
| 23 | 28 | <div style="max-width: 600px;margin: 150px auto;border: 1px solid #e3e8ee;border-radius: 10px;" class="fcom_error_wrapper"> |
| @@ -24,17 +29,17 @@ | ||
| 24 | 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"> |
| 25 | 30 | <h3 style="margin: 0"><?php echo wp_kses_post($title); ?></h3> |
| 26 | 31 | </div> |
| 27 | 32 | <div style="padding: 20px 20px 40px;background: white;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;" class="fcom_error_body"> |
| 28 | - <p> | |
| 29 | - <?php echo wp_kses_post($description); ?> | |
| 30 | - </p> | |
| 33 | + <p><?php echo wp_kses_post($description); ?></p> | |
| 31 | 34 | |
| 32 | - <div style="text-align: center;margin-top: 40px;" class="btn_wrapper"> | |
| 33 | - <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"> | |
| 34 | - <?php echo wp_kses_post($btn_txt); ?> | |
| 35 | - </a> | |
| 36 | - </div> | |
| 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; ?> | |
| 37 | 42 | </div> |
| 38 | 43 | </div> |
| 39 | 44 | </div> |
| 40 | 45 | </body> |