<?php
declare(strict_types=1);
if ( ! defined( 'ABSPATH' ) ) { exit; }
if ( ! function_exists( 'wte_render_sns_icons' ) ) { return; }
$wte_has_sns = false;
$sns_keys = [ 'wte_sns_x', 'wte_sns_instagram', 'wte_sns_facebook', 'wte_sns_linkedin', 'wte_sns_youtube', 'wte_sns_note', 'wte_sns_github' ];
foreach ( $sns_keys as $key ) {
	if ( get_theme_mod( $key, '' ) ) { $wte_has_sns = true; break; }
}
if ( ! $wte_has_sns ) { return; }
?>
<section id="wte-sns" class="wte-section wte-section--alt wte-section--sns">
	<div class="wte-container wte-text-center">
		<header class="wte-section__header">
			<h2 class="wte-section__heading"><?php esc_html_e( 'SNS', 'wte_' ); ?></h2>
		</header>
		<?php wte_render_sns_icons( 'section' ); ?>
	</div>
</section>
