51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
|
|
|
use WizdomNetworks\WizeWeb\Core\View;
|
|
|
|
/**
|
|
* Main Layout (v2)
|
|
*
|
|
* This file serves as the primary layout template for rendering pages.
|
|
* It includes dynamic loading for sidebar, hero, and slider components.
|
|
*/
|
|
?>
|
|
|
|
?><!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<?php View::render('layouts/head', $data); ?>
|
|
</head>
|
|
<body>
|
|
<?php View::render('partials/navbar', $data); ?>
|
|
|
|
|
|
<?php if (isset($heroConfig)) : ?>
|
|
<!-- Render Hero Section if Defined -->
|
|
<?php View::render('partials/hero', compact('heroConfig')); ?>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php if (isset($sliderConfig)) : ?>
|
|
<!-- Render Slider if Defined -->
|
|
<?php View::render('partials/slider', compact('sliderConfig')); ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<!-- Sidebar -->
|
|
<?php if (isset($sidebarConfig) && $sidebarConfig['enabled']) : ?>
|
|
<div class="col-md-3">
|
|
<?php WizdomNetworks\WizeWeb\Core\View::render('partials/sidebar', compact('sidebarConfig')); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="col-md-9">
|
|
<!-- Main Page Content -->
|
|
<?php echo $content ?? ''; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php View::render('layouts/footer', $data); ?>
|
|
</body>
|
|
</html>
|