33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Hero Section Partial
|
|
*
|
|
* This partial is responsible for displaying the hero section with a background image,
|
|
* a headline, subheadline, and an optional call-to-action button.
|
|
*
|
|
* The hero section can be enabled or disabled per page.
|
|
*/
|
|
|
|
if (!isset($showHero) || !$showHero) {
|
|
return;
|
|
}
|
|
|
|
$heroTitle = $heroTitle ?? "Welcome to Wizdom Networks";
|
|
$heroDescription = $heroDescription ?? "Your trusted partner for IT Consulting and Services.";
|
|
$heroImage = $heroImage ?? "/assets/images/default-hero.jpg";
|
|
$heroCTA = $heroCTA ?? null;
|
|
?>
|
|
|
|
<section class="hero-section" style="background-image: url('<?php echo $heroImage; ?>');">
|
|
<div class="hero-overlay">
|
|
<div class="hero-content text-center">
|
|
<h1><?php echo $heroTitle; ?></h1>
|
|
<p><?php echo $heroDescription; ?></p>
|
|
<?php if ($heroCTA): ?>
|
|
<a href="<?php echo $heroCTA['link']; ?>" class="btn btn-primary"> <?php echo $heroCTA['text']; ?> </a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|