| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/successkpi/wp-content/themes/successkpi/ |
Upload File : |
<?php
get_header();
$error_heading = get_field('error_heading', 'option');
$error_description = get_field('error_description', 'option');
?>
<section class="error-404-page">
<div class="container">
<div class="error-404-content">
<?php if (isset($error_heading) && !empty($error_heading)) : ?>
<h1>
<?php echo esc_html($error_heading); ?>
</h1>
<?php endif; ?>
<?php if (isset($error_description) && !empty($error_description)) : ?>
<?php echo wp_kses_post($error_description); ?>
<?php endif; ?>
<?php if (have_rows('content_button', 'option')) : ?>
<?php
ob_start();
?>
<?php while (have_rows('content_button', 'option')) : the_row();
$redirect_link = get_sub_field('redirect_link');
if (!isset($redirect_link) || empty($redirect_link)) {
continue;
}
$link_url = isset($redirect_link['url']) ? $redirect_link['url'] : '';
$link_title = isset($redirect_link['title']) ? $redirect_link['title'] : '';
$link_target = isset($redirect_link['target']) && !empty($redirect_link['target'])
? $redirect_link['target']
: '_self';
if (empty($link_url) || empty($link_title)) {
continue;
}
?>
<a
href="<?php echo esc_url($link_url); ?>"
class="cta-button"
target="<?php echo esc_attr($link_target); ?>">
<?php echo esc_html($link_title); ?>
</a>
<?php endwhile; ?>
<?php
$buttons_output = ob_get_clean();
if (!empty(trim($buttons_output))) :
?>
<div class="error-content-cta">
<?php echo $buttons_output; ?>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</section>
<?php
get_footer();
?>