<?php get_header(); ?>
<?php if( get_field('image404', 'options') ){ 
        $url = get_field('image404', 'options'); } 
        else { $url = get_bloginfo('template_url').'/images/events-bg.jpg'; } ?>
    <section id="pageTitle" <?php if($url){ echo' style="background-image: url('.$url.'"';} ?>>
        <div class="title-line">
            <div class="container">
                <h1><?php the_field('title', 'options'); ?></h1>
            </div>
        </div>
    </section>

    <section id="pageContent">
        <div class="container">
            <div class="row">

                <div class="col-md-17 col-lg-18">

                    <div class="page-content clearfix">
                        <?php the_field('content', 'options'); ?>
                    </div>

                </div>

                <?php get_sidebar(); ?>

            </div>
        </div>
    </section>

<?php get_footer(); ?>