45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Main Layout
|
|
*
|
|
* This file defines the overall structure of the web pages, ensuring consistency across all views.
|
|
*/
|
|
|
|
use WizdomNetworks\WizeWeb\Core\View;
|
|
|
|
|
|
?><!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<?php View::render('layouts/head', $data); ?>
|
|
</head>
|
|
<body>
|
|
<?php View::render('partials/navbar', $data); ?>
|
|
|
|
<!-- Render Hero Section if Defined -->
|
|
<?php if (isset($heroConfig)) : ?>
|
|
<?php View::render('partials/hero', compact('heroConfig')); ?>
|
|
<?php endif; ?>
|
|
|
|
<!-- Render Slider if Defined -->
|
|
<?php if (isset($showSlider)) : ?>
|
|
<?php View::render('partials/slider', $showSlider); ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<?php View::render('partials/sidebar', $data); ?>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<!-- Main Page Content -->
|
|
<?php echo $content ?? ''; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php View::render('layouts/footer', $data); ?>
|
|
</body>
|
|
</html>
|