<?php $facebook = get_field("facebook", "options"); $instagram = get_field("instagram", "options"); $linkedin = get_field("linkedin", "options"); $twitter = get_field("twitter", "options"); $youtube = get_field("youtube", "options"); if (!get_field("hide_socials", "options")): ?> <div class="footer__connect__socials"> <ul> <?php if (!empty($facebook)): ?> <li><a href="<?php echo $facebook; ?>"><i class="fa fa-facebook-f"></i></a></li> <?php endif; ?> <?php if (!empty($instagram)): ?> <li><a href="<?php echo $instagram; ?>"><i class="fa fa-instagram"></i></a></li> <?php endif; ?> <?php if (!empty($linkedin)): ?> <li><a href="<?php echo $linkedin; ?>"><span class="iconify" data-icon="ion:logo-linkedin"></span></li> <?php endif; ?> <?php if (!empty($twitter)): ?> <li><a href="<?php echo $twitter; ?>"><i class="fa fa-twitter"></i></a></li> <?php endif; ?> <?php if (!empty($youtube)): ?> <li><a href="<?php echo $youtube; ?>"><i class="fa fa-youtube"></i></a></li> <?php endif; ?> <ul> </div> <?php endif; ?>
Displaying socials links and custom icons