| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<div class="fct-not-found-container" role="main" aria-labelledby="fct-not-found-title"> |
| 3 |
<div class="fct-not-found-content"> |
| 4 |
<?php if (!empty($notFoundImg)): ?> |
| 5 |
<img class="fct-not-found-image" |
| 6 |
src="<?php echo esc_url($notFoundImg ?? ''); ?>" |
| 7 |
alt="<?php esc_attr_e('Page not found illustration', 'fluent-cart'); ?>" |
| 8 |
> |
| 9 |
<?php endif; ?> |
| 10 |
|
| 11 |
<?php if (isset($title)): ?> |
| 12 |
<h1 id="fct-not-found-title" class="fct-not-found-title"> |
| 13 |
<?php echo wp_kses_post($title); ?> |
| 14 |
</h1> |
| 15 |
<?php endif; ?> |
| 16 |
|
| 17 |
<?php if (isset($text)): ?> |
| 18 |
<p class="fct-not-found-text"> |
| 19 |
<?php echo wp_kses_post($text); ?> |
| 20 |
</p> |
| 21 |
<?php endif; ?> |
| 22 |
|
| 23 |
<?php if (isset($buttonText)): ?> |
| 24 |
<a |
| 25 |
href="<?php echo empty($buttonUrl) ? esc_url(home_url()) : esc_url($buttonUrl); ?>" |
| 26 |
class="fct-not-found-button" |
| 27 |
role="button" |
| 28 |
aria-label="<?php |
| 29 |
printf( |
| 30 |
/* translators: %s is the button text/destination */ |
| 31 |
esc_attr__('Return to %s', 'fluent-cart'), |
| 32 |
esc_html($buttonText) |
| 33 |
); |
| 34 |
?>" |
| 35 |
> |
| 36 |
<?php echo esc_html($buttonText); ?> |
| 37 |
</a> |
| 38 |
<?php endif; ?> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
|