<?php
if (!empty($teamdata['pirate_crew_social'])) {
    echo '<nav class="picrew-social-icons">';
    foreach ($teamdata['pirate_crew_social'] as $social) {
	if (isset($social['link'])) {
	    echo '<span><a href="' . esc_url($social['link']) . '"><i class="picrew-icon-' . $social['icon'] . '" aria-hidden="true"></i><span class="screen-reader-text">'. $social['icon'].'</span></a></span>';
	}
    }
    echo '</nav>';
}
?>