<div id="homeContent" class="home-wrapper">
    <!--<marquee behavior="alternate" scrollamount="3" style="color: #ff0000;font-size: 25px;">  <?php $isRestaaurantOpened == 1 ? print'<span style="color:green;font-weight:bold;">We are online now</span>' : print'<span style="color:red;font-weight:bold;">We are offline now! Open ' . $service_time[strtolower(date('D'))]->open . '</span>' ?></marquee>-->
    <div class="container inner">
        <div class="row story">
            <div class="col-sm-5 hidden-xs">
                <h1 class="section-title text-center">&nbsp;</h1>
                <div class="img-responsive">
                    <img class="homeImage" src="<?php echo UPLOAD_PATH . 'page/' . $home[0]->image ?>"/>
                    
                </div>
            </div>
            <div class="col-sm-7 col-xs-12 opening-hour-block">
                <h1 class="section-title text-center"><?php echo $home[0]->title ?></h1>
                <p class="Homecontent"><?php echo $home[0]->content ?></p>
            </div>
        </div>
        <?php if (!empty($delivery_areas) && $this->config->item('gk_order_delivery') == 'yes'): ?>
            <?php $deliveryAreaString = '' ?>
            <?php foreach ($delivery_areas as $dArea): ?>
                <?php $deliveryAreaString .= ' , ' . $dArea->initial_code ?>
            <?php endforeach; ?>
            <?php $deliveryAreaString = substr_replace($deliveryAreaString, ' ', 1, 1) ?>
            <marquee behavior="alternate" scrollamount="5" style="color: #ccc;">
                <p>
                    <span><?php $isRestaaurantOpened == 1 ? print'<span style="color:#ccc;font-weight:bold;">We are online now.</span>' : print'<span style="font-weight:bold;">We are offline now! Open ' . $service_time[strtolower(date('D'))]->open . '.</span>' ?></span>
                    <?php echo "<strong>We provide delivery service to " . strtoupper($deliveryAreaString) . ' ' . ' within ' . $this->config->item('deliveryplan_radius_distance') . ' miles radius from ' . $this->config->item('deliveryplan_source_postcode') . ' and for first ' . $this->config->item('deliveryplan_offset') . ' miles, delivery charge is free </strong>'; ?>
                </p>
            </marquee>
        <?php else: ?>
            <marquee behavior="alternate" scrollamount="5" style="color: #ccc;">
                <span><?php $isRestaaurantOpened == 1 ? print'<span style="color:#ccc;font-weight:bold;">We are online now.</span>' : print'<span style="font-weight:bold;">We are offline now! Open ' . $service_time[strtolower(date('D'))]->open . '.</span>' ?></span>
            </marquee>
        <?php endif; ?>
        <div class="hidden-sm hidden-lg hidden-md">
            <div style="margin-bottom: 50px;">&nbsp;</div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        var Homecontent = $('.Homecontent').height();
        $('.homeImage').css({'min-height': Homecontent + 'px'});
    });
</script>
