<?php if ( lsvr_beautyspot_has_header_social_links() ) : ?>
<!-- HEADER SOCIAL : begin -->
<div class="header-social">
<ul class="header-social__list">
<?php // Add custom code at the start of the Header Social
do_action( 'lsvr_beautyspot_header_social_start' ); ?>
<?php foreach ( lsvr_beautyspot_get_social_links() as $social_link ) : ?>
<?php if ( ! empty( $social_link['url'] ) && ! empty( $social_link['icon'] ) && ! empty( $social_link['name'] ) ) : ?>
<li class="header-social__item header-social__item--<?php echo esc_attr( $social_link['name'] ); ?>">
<a class="header-social__item-link header-social__item-link--<?php echo esc_attr( $social_link['name'] ); ?>" target="_blank"
<?php if ( filter_var( $social_link['url'], FILTER_VALIDATE_EMAIL ) ) : ?>
href="mailto:<?php echo esc_attr( $social_link['url'] ); ?>"
<?php else : ?>
href="<?php echo esc_url( $social_link['url'] ); ?>"
<?php endif; ?>
<?php if ( ! empty( $social_link['label'] ) ) { echo ' title="' . esc_attr( $social_link['label'] ) . '"'; } ?>>
<span class="header-social__icon <?php echo esc_attr( $social_link['icon'] ); ?>" aria-hidden="true"></span>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
<?php // Add custom code at the end of the Header Social
do_action( 'lsvr_beautyspot_header_social_end' ); ?>
</ul>
</div>
<!-- HEADER SOCIAL : end -->
<?php endif; ?> |