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,13 +27,11 @@ includeHeader($page_title, $page_description, $current_page);
]);
?>
<h1 class="product-hero-title">
Virtual Private Container
<span class="highlight">auf Proxmox LXC</span>
<?php echo htmlspecialchars($product['name']); ?>
<span class="highlight"><?php echo htmlspecialchars($product['hero_highlight'] ?? ''); ?></span>
</h1>
<p class="product-hero-description">
Erleben Sie die Effizienz von Linux-Containern mit der Zuverlässigkeit
von Proxmox. Unsere VPC-Lösungen bieten optimale Performance bei
minimalem Ressourcenverbrauch.
<?php echo htmlspecialchars($product['hero_description'] ?? $product['description']); ?>
</p>
<div class="product-hero-features">
<div class="hero-feature">
@@ -64,9 +62,9 @@ includeHeader($page_title, $page_description, $current_page);
<section class="packages">
<div class="container">
<div class="section-header">
<h2 class="section-title">VPC Pakete</h2>
<h2 class="section-title"><?php echo htmlspecialchars($product['packages_title'] ?? ($product['short_name'] . ' Pakete')); ?></h2>
<p class="section-description">
Wählen Sie das perfekte Container-Paket für Ihre Anforderungen
<?php echo htmlspecialchars($product['packages_description'] ?? 'Wählen Sie das passende Paket für Ihre Anforderungen'); ?>
</p>
</div>
<div class="packages-grid">
@@ -165,8 +163,8 @@ includeHeader($page_title, $page_description, $current_page);
<section class="cta">
<div class="container">
<div class="cta-content glass-card">
<h2>Bereit für Ihren VPC?</h2>
<p>Starten Sie noch heute mit einem Virtual Private Container</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=vpc" class="btn btn-primary">Jetzt bestellen</a>
<a href="/contact" class="btn btn-secondary">Beratung anfordern</a>