<?php
/**
 * Social Profile Template
 *
 * This template can be overridden by copying it to mytheme/addons-for-elementor/addons/team-members/social-profile.php
 *
 */
?>

<div class="tfl-social-wrap">
    <div class="social-icons"><i class="fas fa-share-alt"></i></div>
    <div class="tfl-social-list">

        <?php

        $email = $team_member['member_email'];
        $facebook_url = $team_member['facebook_url'];
        $twitter_url = $team_member['twitter_url'];
        $linkedin_url = $team_member['linkedin_url'];
        $dribbble_url = $team_member['dribbble_url'];
        $pinterest_url = $team_member['pinterest_url'];
        $googleplus_url = $team_member['google_plus_url'];
        $instagram_url = $team_member['instagram_url'];

        ?>

        <?php if ($email): ?>

            <div class="tfl-social-list-item">
                <a class="tfl-email" href="mailto:<?php echo $email; ?>"
                   title="<?php echo __("Send an email", 'themesflat'); ?>">
                    <i class="tfl-icon-email"></i>
                </a>
            </div>
        <?php endif; ?>
        <?php if ($facebook_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-facebook" href="<?php echo $facebook_url; ?>"
                   target="_blank"
                   title="<?php echo __("Follow on Facebook", 'themesflat'); ?>">
                    <i class="tfl-icon-facebook"></i>
                </a>
            </div>
        <?php endif; ?>

        <?php if ($twitter_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-twitter" href="<?php echo $twitter_url; ?>" target="_blank"
                   title="<?php echo __("Subscribe to Twitter Feed", 'themesflat'); ?>">
                    <i class="tfl-icon-twitter"></i>
                </a>
            </div>
        <?php endif; ?>

        <?php if ($linkedin_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-linkedin" href="<?php echo $linkedin_url; ?>"
                   target="_blank"
                   title="<?php echo __("View LinkedIn Profile", 'themesflat'); ?>">
                    <i class="tfl-icon-linkedin">

                    </i>
                </a>
            </div>
        <?php endif; ?>

        <?php if ($googleplus_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-googleplus" href="<?php echo $googleplus_url; ?>"
                   target="_blank"
                   title="<?php echo __("Follow on Google Plus", 'themesflat'); ?>">
                    <i class="tfl-icon-googleplus"></i>
                </a>
            </div>
        <?php endif; ?>

        <?php if ($instagram_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-instagram" href="<?php echo $instagram_url; ?>"
                   target="_blank"
                   title="<?php echo __("View Instagram Feed", 'themesflat'); ?>">
                    <i class="tfl-icon-instagram"></i>
                </a>
            </div>
        <?php endif; ?>

        <?php if ($pinterest_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-pinterest" href="<?php echo $pinterest_url; ?>"
                   target="_blank"
                   title="<?php echo __("Subscribe to Pinterest Feed", 'themesflat'); ?>">
                    <i class="tfl-icon-pinterest"></i>
                </a>
            </div>
        <?php endif; ?>

        <?php if ($dribbble_url): ?>
            <div class="tfl-social-list-item">
                <a class="tfl-dribbble" href="<?php echo $dribbble_url; ?>" target="_blank"
                   title="<?php echo __("View Dribbble Portfolio", 'themesflat'); ?>">
                    <i class="tfl-icon-dribbble"></i>
                </a>
            </div>
        <?php endif; ?>

    </div><!-- .tfl-social-list -->
</div><!-- .tfl-social-wrap -->


