| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/d2m/sofident_cz/wp-content/themes/sofident/ |
Upload File : |
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Sofident
*/
get_header(); ?>
<div id="primary" class="content-area container">
<main id="main" class="site-main row" role="main">
<section class="col-xs-12 col-sm-8 wow fadeIn error-404 not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'sofident' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'sofident' ); ?></p>
</div><!-- .page-content -->
</section><!-- .error-404 -->
<aside id="secondary" class="widget-area col-xs-12 col-sm-4" role="complementary">
<section id="call-use" class="widget">
<h3 class="wow fadeInDown"><?php _e('Objednat se', 'sofident'); ?> </h3>
<strong id="phone-number" class="wow fadeInUp">+420 777 134 305</strong>
</section>
<section id="subform" class="widget white-back">
<h3 class="wow fadeInDown"><?php _e('Objednat se', 'sofident'); ?> </h3>
<?php if (ICL_LANGUAGE_CODE == 'en') { ?>
<?php echo do_shortcode('[contact-form-7 id="560" title="Request page EN"]'); ?>
<?php } elseif (ICL_LANGUAGE_CODE == 'ru') { ?>
<?php echo do_shortcode('[contact-form-7 id="559" title="Request page RU"]'); ?>
<?php } else { ?>
<?php echo do_shortcode('[contact-form-7 id="558" title="Request page CS"]'); ?>
<?php } ?>
</section>
<?php
$offer = get_field('selected_offer');
if ($offer):
// override $post
$post = $offer;
setup_postdata($post);
?>
<section id="widget-offer" class="widget">
<div style="background: url('<?php the_post_thumbnail_url(); ?>') center left 60px no-repeat">
<h2 class="wow fadeInDown"><?php the_title(); ?></h2>
<a class="btn btn-orange wow fadeInUp" href="<?php the_field('offer_link'); ?>"><?php _e('Objednat', 'sofident'); ?></a>
</div>
</section>
<?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?>
<?php endif; ?>
<?php get_sidebar(); ?>
</aside>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();