<?php ob_start(); ?>
<?php
/**
 * ITSWEBER CMS – Business Theme: Homepage
 * Page Builder rendering loop (3.2.0)
 */
?>

<?= render_section_assets($sections, 'head') ?>

<?php if (!empty($sections)): ?>
<?php foreach ($sections as $section): ?>
<?php if (!$section['is_active']) continue; ?>
<?= render_page_section($section, $sections) ?>
<?php endforeach; ?>
<?php endif; ?>

<?= render_section_assets($sections, 'footer') ?>

<?php $content = ob_get_clean(); include __DIR__ . '/layout.php'; ?>
