<?php get_header();?>
    <main>
        <div class="mt-4 mb-5">
            <div class="custom-container">

                <div class="error-404">
                    <?php
                    $img404 = get_option(TEXT_DOMAIN . '_404_image');
                    if (!empty($img404)) { ?>
                        <img src="<?php echo $img404 ?>" alt="error 404" class="img-fluid">

                    <?php } else { ?>
                        <img src="<?php bloginfo('template_directory'); ?>/images/404.webp" alt="error 404" class="img-fluid">
                    <?php } ?>

                    <h1 class="title"><?php esc_html_e( 'The page you are looking for was not found!', TEXT_DOMAIN ); ?></h1>
                    <a href="/" class="back"><?php esc_html_e( 'Go to home page', TEXT_DOMAIN ); ?></a>
                </div>
            </div>
        </div>
    </main>
<?php get_footer();?>