46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Main Layout
|
|
*
|
|
* This file serves as the primary layout structure, including the header, footer, and optional sections
|
|
* like the hero section and slider, which can be enabled per page.
|
|
*/
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<?php $this->render('layouts/head', $data); ?>
|
|
</head>
|
|
<body>
|
|
<?php if (isset($showHeader)) : ?>
|
|
<?php $this->render('layouts/header', $data); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php $this->render('partials/navbar', $data); ?>
|
|
|
|
<?php if (isset($heroConfig)) : ?>
|
|
<?php $this->render('partials/hero', compact('heroConfig')); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($showSlider)) : ?>
|
|
<?php $this->render('partials/slider', ['sliderConfig' => $showSlider]); ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<?php $this->render('partials/sidebar', $data); ?>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<!-- Main Page Content -->
|
|
<?php echo $content ?? ''; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php $this->render('layouts/footer', $data); ?>
|
|
</body>
|
|
</html>
|