fix: balance contact section socials

This commit is contained in:
bisco
2026-06-26 09:17:29 +02:00
parent bf465edb8c
commit 482928a296
4 changed files with 23 additions and 11 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ $social_links = array_values(
array(
array( 'label' => 'Instagram', 'url' => trim( azionelab_mod( 'contact_instagram' ) ), 'icon' => 'instagram' ),
array( 'label' => 'Facebook', 'url' => trim( azionelab_mod( 'contact_facebook' ) ), 'icon' => 'facebook' ),
array( 'label' => 'YouTube', 'url' => trim( azionelab_mod( 'contact_youtube' ) ), 'icon' => 'youtube' ),
),
static fn ( array $link ): bool => '' !== $link['url']
)
@@ -198,7 +199,7 @@ $social_links = array_values(
<?php foreach ( $social_links as $social_link ) : ?>
<a class="social-link social-link-<?php echo esc_attr( $social_link['icon'] ); ?>" href="<?php echo esc_url( $social_link['url'] ); ?>" rel="noopener noreferrer">
<?php echo azionelab_social_icon( $social_link['icon'] ); ?>
<span><?php echo esc_html( $social_link['label'] ); ?></span>
<span class="visually-hidden"><?php echo esc_html( $social_link['label'] ); ?></span>
</a>
<?php endforeach; ?>
</div>