Minecraft-Modern-Theme/header.php aktualisiert

This commit is contained in:
2026-01-07 21:09:20 +00:00
parent 8499b29174
commit 519c7c6b52

View File

@@ -46,35 +46,35 @@
<div class="header-info"> <div class="header-info">
<div class="social-links"> <div class="social-links">
<?php <?php
// Array mit den Social-Media-Plattformen und ihren Font Awesome Klassen // Array mit den Social-Media-Plattformen und ihren Font Awesome Klassen
$social_icons = array( $social_icons = array(
'discord' => 'fab fa-discord', 'discord' => 'fab fa-discord',
'youtube' => 'fab fa-youtube', 'youtube' => 'fab fa-youtube',
'twitter' => 'fab fa-x-twitter', // Neues Icon für Twitter/X 'twitter' => 'fab fa-x-twitter', // Neues Icon für Twitter/X
'facebook' => 'fab fa-facebook-f', 'facebook' => 'fab fa-facebook-f',
'instagram' => 'fab fa-instagram', 'instagram' => 'fab fa-instagram',
'tiktok' => 'fab fa-tiktok', 'tiktok' => 'fab fa-tiktok',
'twitch' => 'fab fa-twitch', 'twitch' => 'fab fa-twitch',
'steam' => 'fab fa-steam', 'steam' => 'fab fa-steam',
'github' => 'fab fa-github', 'github' => 'fab fa-github',
'linkedin' => 'fab fa-linkedin-in', 'linkedin' => 'fab fa-linkedin-in',
'pinterest' => 'fab fa-pinterest-p', 'pinterest' => 'fab fa-pinterest-p',
'reddit' => 'fab fa-reddit-alien', 'reddit' => 'fab fa-reddit-alien',
'teamspeak' => 'fab fa-teamspeak', 'teamspeak' => 'fab fa-teamspeak',
'spotify' => 'fab fa-spotify' 'spotify' => 'fab fa-spotify'
); );
// Schleife, die alle verfügbaren Icons durchgeht // Schleife, die alle verfügbaren Icons durchgeht
foreach ($social_icons as $key => $class) { foreach ($social_icons as $key => $class) {
// Prüfen, ob für diese Plattform eine URL im Customizer hinterlegt wurde // Prüfen, ob für diese Plattform eine URL im Customizer hinterlegt wurde
if (get_theme_mod('social_' . $key)) { if (get_theme_mod('social_' . $key)) {
// Wenn ja, Link und Icon ausgeben // Wenn ja, Link und Icon ausgeben
echo '<a href="' . esc_url(get_theme_mod('social_' . $key)) . '" target="_blank"><i class="' . esc_attr($class) . '"></i></a>'; echo '<a href="' . esc_url(get_theme_mod('social_' . $key)) . '" target="_blank"><i class="' . esc_attr($class) . '"></i></a>';
} }
} }
?> ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>