Example #1
0
        <h1><?php 
the_title();
?>
</h1>
        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        the_content();
    }
}
?>
    </article>
    <aside>
        <?php 
booking_form('step1');
?>
        <?php 
if ($widgets = get_field('widgets')) {
    foreach ($widgets as $wi) {
        $layout = $wi['acf_fc_layout'];
        echo '<div class="' . $layout . ' cfx">';
        if ($layout == 'video') {
            echo '<div class="fullframe">' . $wi['video'] . '</div>';
        } else {
            if ($layout == 'text_button') {
                echo '<h3>' . $wi['title'] . '</h3><a href="' . $wi['button_link'] . '" class="button gray alignright">' . $wi['button_text'] . '</a>';
            } else {
                if ($layout == 'custom_content') {
                    echo ($wi['widget_title'] ? '<div class="t">' . $wi['widget_title'] . '</div>' : '') . $wi['content'];
                }
}
if (isset($_POST["form-Minimum-Age"])) {
    $_SESSION['api']["Age"] = $_POST["form-Minimum-Age"];
}
if (isset($_POST["PromoCode"])) {
    $_SESSION['api']["PromoCode"] = $_POST["PromoCode"];
}
if (isset($_POST["refid"])) {
    $_SESSION['api']["refid"] = $_POST["refid"];
}
get_header();
?>
<section id="rent-details" class="row cfx">
    <aside>
        <?php 
booking_form();
?>
        <div class="checked-car">
            <div class="bg_title">SUZUKI ALTO</div>
            <figure>
                <img alt="" src="<?php 
echo theme('images/tmp/car-img.jpg');
?>
">
            </figure>
            <div class="price">
                <mark><sup>$</sup>25</mark>
                <div class="pd">
                    <strong>Per Day</strong>
                    <span>(For 4 Days)</span>
                </div>