<?php if (isset($page) && !empty($page)) { ?>
    <!-- Home Design Inner Pages -->
    <div class="ulockd-inner-home">
        <div class="container">
            <div class="row">
                <div class="inner-conraimer-details">
                    <div class="col-md-12">
                        <h1 class="text-uppercase"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?></h1>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Home Design Inner Pages -->
    <div class="ulockd-inner-page">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="ulockd-icd-layer">
                        <ul class="list-inline ulockd-icd-sub-menu">
                            <li><a href="<?php echo site_url(); ?>"> <?php echo $this->lang->line('home'); ?> </a></li>
                            <li><a href="#"> > </a></li>
                            <li> <a href="#"> <?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?> </a> </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Pages -->
    <section class="ulockd-service-details">
        <div class="container">
            <div class="row">
                <div class="<?php echo $page->sidebar == 1 ? 'col-md-8 col-lg-9' : 'col-md-12 col-lg-12'; ?>">
                    <?php if ($page->image_view == 1) { ?>
                        <?php if ($page->image_full_width == 1) { ?>
                            <div class="row">
                                <div class="col-md-12 ulockd-mrgn1210">
                                    <div class="ulockd-project-sm-thumb">
                                        <img class="img-responsive img-whp" src="<?php echo UPLOAD_PATH; ?>page/<?php echo $page->image; ?>" title="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?>" alt="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?>">
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <article class="ulockd-pd-content">
                                        <h3><?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?></h3>
                                        <?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_description : $page->description; ?>
                                    </article>
                                </div>
                            </div>
                        <?php } else { ?>
                            <div class="row">
                                <div class="col-md-12">
                                    <article class="ulockd-pd-content">
                                        <h3><?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?></h3>
                                        <div class="ulockd-project-sm-thumb">
                                            <img style="float:left; width: 250px !important; margin-right: 25px; margin-top: 10px;" class="img-responsive img-whp" src="<?php echo UPLOAD_PATH; ?>page/<?php echo $page->image; ?>" title="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?>" alt="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?>">
                                        </div>
                                        <?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_description : $page->description; ?>
                                    </article>
                                </div>
                            </div>
                        <?php }  ?>
                    <?php } else {  ?>
                        <div class="row">
                            <div class="col-md-12">
                                <article class="ulockd-pd-content">
                                    <h3><?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_title : $page->title; ?></h3>
                                    <?php echo $this->session->userdata('site_lang') == 'bengali' ? $page->bn_description : $page->description; ?>
                                </article>
                            </div>
                        </div>
                    <?php }  ?>
                </div>
                <?php if ($page->sidebar == 1) { ?>
                    <?php $this->load->view('layout/sidebar'); ?>
                <?php } ?>
            </div>
        </div>
    </section>
<?php }  ?>

<!-- Active Class Script -->
<script type="text/javascript">
    window.onload = function() {
        $('#page<?php echo $page->parent_id; ?>').addClass('active');
    };
</script>