Refactor product pages to utilize dynamic content: Updated mail-gateway.php, vpc.php, vps.php, and webhosting.php to replace static text with dynamic PHP variables for product names, descriptions, and call-to-action elements. This change enhances maintainability and allows for easier updates to product information.

This commit is contained in:
𝓜𝓪𝓬𝓮™
2026-04-02 12:01:30 +02:00
parent 20ee9c2513
commit cc804c01de
4 changed files with 28 additions and 33 deletions

View File

@@ -27,12 +27,11 @@ includeHeader($page_title, $page_description, $current_page);
]);
?>
<h1 class="product-hero-title">
Webhosting
<span class="highlight">Alles für Ihre Website</span>
<?php echo htmlspecialchars($product['name']); ?>
<span class="highlight"><?php echo htmlspecialchars($product['hero_highlight'] ?? ''); ?></span>
</h1>
<p class="product-hero-description">
Klassisches Webhosting mit allem, was Sie für eine erfolgreiche Website benötigen.
PHP, MySQL, SSL-Zertifikate und E-Mail-Postfächer - alles inklusive.
<?php echo htmlspecialchars($product['hero_description'] ?? $product['description']); ?>
</p>
<div class="product-hero-features">
<div class="hero-feature">
@@ -65,9 +64,9 @@ includeHeader($page_title, $page_description, $current_page);
<section class="packages">
<div class="container">
<div class="section-header">
<h2 class="section-title">Webhosting Pakete</h2>
<h2 class="section-title"><?php echo htmlspecialchars($product['packages_title'] ?? ($product['short_name'] . ' Pakete')); ?></h2>
<p class="section-description">
Von der ersten Website bis zum professionellen Online-Shop
<?php echo htmlspecialchars($product['packages_description'] ?? 'Wählen Sie das passende Paket für Ihre Anforderungen'); ?>
</p>
</div>
<div class="packages-grid">
@@ -168,8 +167,8 @@ includeHeader($page_title, $page_description, $current_page);
<section class="cta">
<div class="container">
<div class="cta-content glass-card">
<h2>Bereit für Ihr Webhosting?</h2>
<p>Starten Sie noch heute mit professionellem Webhosting</p>
<h2><?php echo htmlspecialchars($product['cta_title'] ?? ('Bereit für ' . $product['name'] . '?')); ?></h2>
<p><?php echo htmlspecialchars($product['cta_description'] ?? ('Starten Sie noch heute mit ' . $product['name'])); ?></p>
<div class="cta-actions">
<a href="contact.php?product=webhosting" class="btn btn-primary">Jetzt bestellen</a>
<a href="/contact" class="btn btn-secondary">Beratung anfordern</a>