WizdomWeb/resources/views/pages/home.php

48 lines
1.8 KiB
PHP

<?php
use WizdomNetworks\WizeWeb\Core\View;
/**
* Home Page View (v2)
*
* This view dynamically renders the homepage using data provided by the HomeController.
*
* ## Features:
* - Loads dynamic configurations for hero, slider, and sidebar.
* - Ensures configurations are correctly passed to avoid undefined variable issues.
* - Uses the main layout structure for rendering.
*
* ## Variables Passed:
* - `$pageId` (string) - Unique identifier for the page, used for loading page-specific styles.
* - `$heroConfig` (array) - Configuration settings for the hero section.
* - `$sliderConfig` (array) - Configuration settings for the slider.
* - `$sidebarConfig` (array) - Configuration settings for the sidebar.
*/
$title = 'Home - Wizdom Networks';
$content = "
<section class='home-intro'>
<h1>Welcome to Wizdom Networks</h1>
<p>Your trusted partner for IT Consulting and Services.</p>
</section>
<section class='home-services'>
<h2>Our Services</h2>
<ul>
<li><a href='/services/technology'>Technology Solutions</a></li>
<li><a href='/services/catalogue-management'>Catalogue Management</a></li>
<li><a href='/services/contact-management'>Contact Management</a></li>
<li><a href='/services/media-solutions'>Media Solutions</a></li>
<li><a href='/services/data-archiving'>Data Archiving</a></li>
<li><a href='/services/cybersecurity'>Cybersecurity</a></li>
</ul>
</section>
<section class='home-contact'>
<h2>Get in Touch</h2>
<p>Contact us today to learn how Wizdom Networks can help your business thrive.</p>
<a href='/contact' class='btn btn-primary'>Contact Us</a>
</section>
";
View::render('layouts/main', compact('title', 'pageId', 'heroConfig', 'sliderConfig', 'sidebarConfig', 'content'));
?>