<?php namespace ProcessWire;

/**
 * Initialize variables output in _main.php
 *
 * Values populated to these may be changed as desired by each template file.
 * You can setup as many such variables as you'd like. 
 *
 * This file is automatically prepended to all template files as a result of:
 * $config->prependTemplateFile = '_init.php'; in /site/config.php. 
 *
 * If you want to disable this automatic inclusion for any given template, 
 * go in your admin to Setup > Templates > [some-template] and click on the 
 * "Files" tab. Check the box to "Disable automatic prepend file". 
 *
 */

// Variables for regions we will populate in _main.php. Here we also assign 
// default values for each of them.
$title = $page->get('headline|title'); // headline if available, otherwise title
// default background image is banner.jpg
$background_image = $config->urls->templates.'styles/images/bootcamp-banner.jpg';
$background_image = $config->urls->templates.'styles/images/banner.jpg';
$slider = '            <!-- start slider section -->
            <style>
              .banner_main {
                background: url('.$background_image.');
                background-size: 100%;
                background-repeat: no-repeat;
              }
            </style>
            <div class="slider_section banner_main">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12">
                            <!-- <div class="main_text">
                                <h1>Welcome <br><strong class="bold_text">RLD</strong><strong class="bold_text_black">Active</strong></h1>
                                <span>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a</span>
                                <a href="#">Read More <i class="fa fa-angle-right" aria-hidden="true"></i></a>
                            </div> -->
                        </div>
                    </div>
                </div>
            </div>
            <!-- end slider section -->';
$content = $page->body;
$sidebar = $page->sidebar;


// We refer to our homepage a few times in our site, so we preload a copy 
// here in a $homepage variable for convenience. 
$homepage = $pages->get('/'); 

// if homepage
$siteTitle = $homepage->site_title;
if($homepage->id != $page->id){
    $siteTitle = $page->title . ' - ' . $homepage->site_title;
}


$footer = $homepage->footer;


// if ajax request set
$ajax = $input->post->ajax;


// Include shared functions (if any)
include_once("./_func.php"); 


// What happens after this?
// ------------------------
// 1. ProcessWire loads your page's template file (i.e. basic-page.php).
// 2. ProcessWire loads the _main.php file
// 
// See the README.txt file for more information.

