<?php // @Layout name: Main ?>
<?php echo ipView('_header.php')->render(); ?>
    <!-- Page Header-->
    <header class="masthead" style="background-image: url('<?php echo ipFileUrl('Theme/Clean/assets/img/cover.png'); ?>')">
        <!-- Navigation-->
        <nav id='klang-menu'>
            <div class="logo"><a href="<?php echo ipHomeUrl(); ?>"><?php echo ipGetOption( 'Config.en.websiteTitle' ); ?></a></div>
            <div id="head-mobile"></div>
            <div class="button"></div>
            <?php echo ipSlot('menu', 'menu1'); ?>
        </nav>
    </header>
    <!-- Post Content-->
    <article class="mb-4">
        <div class="container px-4 px-lg-5">
            <div class="row gx-4 gx-lg-5 justify-content-center">
                <div class="col-md-10 col-lg-8 col-xl-7">
                    <?php echo ipBlock('main')->render(); ?>
                    
                    <?php if(!is_null(ipContent()->getCurrentPage())) { ?>
                        <div class="meta">
                            <span class="meta-icon"><i class="fa fa-calendar"></i></span>
                            <span class="meta-date"><?php echo '<strong>Published:</strong> '. date('jS, M, Y', strtotime(ipPageCreatedAt())); ?></span>
                            <span class="meta-icon"><i class="fa fa-clock-o"></i></span>
                            <span class="meta-date"><?php echo '<strong>Last Modified:</strong> '. date('jS, M, Y', strtotime(ipPageUpdatedAt())); ?></span>
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    </article>
<?php echo ipView('_footer.php')->render(); ?>
