WizdomWeb/resources/views/layouts/main.php

43 lines
1.1 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 $this->render('layouts/header', $data); ?>
<?php $this->render('partials/navbar', $data); ?>
<?php if (!empty($showHero)) : ?>
<?php $this->render('partials/hero', $data); ?>
<?php endif; ?>
<?php if (!empty($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>