<?php
//social links
$social_accounts['twitter'] 	= get_field('twitter_profile', 'option' );
$social_accounts['facebook'] 	= get_field('facebook_profile', 'option' );
$social_accounts['youtube'] 	= get_field('youtube_profile', 'option' );
$social_accounts['vimeo']    	= get_field('vimeo_profile', 'option' );
$social_accounts['instagram'] 	= get_field('instagram_profile', 'option' );
$social_accounts['linkedin'] 	= get_field('linkedin_profile', 'option' );
$social_accounts['google-plus'] 	= get_field('googleplus_profile', 'option' );
 ?>
<?php foreach ( $social_accounts AS $network => $account ) : ?>

  <?php if ( false != $account ) : ?>

    <div class="inline <?php echo esc_attr( $network ); ?>">
      <a href="<?php echo esc_url( $account ); ?>" target="_blank">
        <i class="fa fa-<?php echo esc_attr( $network ); ?>" aria-hidden="true"></i>
      </a>
    </div>

  <?php endif; ?>

<?php endforeach; ?>
