<?php
$image = $inner_title = null;
if($imgHtml) {
    $image .= '<div class="'.esc_attr($image_area).'">';
    if ($disable_detail_page_link) {
        $image .= $imgHtml;
    } else {
        $image .= '<a title="' . $title . '" href="' . $pLink . '">'.$imgHtml.'</a>';
    }
    $image .= '</div>';
}
if ($disable_detail_page_link) {
    $inner_title = '<h3 class="name">' . $title . '</h3>';
} else {
    $inner_title = '<h3 class="name"><a title="' . $title . '" href="' . $pLink . '">' . $title . '</a></h3>';
}
$designation_html = null;
if ($designation) {
    $designation_html .= sprintf('<div class="designation">%s</div>', $designation);
}
$short_bio_html = null;
if ($short_bio) {
    $short_bio_html .= sprintf('<div class="short-bio"><p>%s</p></div>', $short_bio);
}
$sLink_html = null;
if ($sLink) {
    foreach ($sLink as $id => $link) {
        if ( $id == 'google-plus' ) continue;
        $sLink_html .= "<a href='{$sLink[$id]}' title='$id' target='_blank'><i class='fa fa-$id'></i></a>";
    }
    $sLink_html = $sLink_html ? sprintf('<div class="tpl-social">%s</div>', $sLink_html) : null;
}
?>
<div class="team-member tlp-equal-height <?php echo esc_attr($grid) ?>">
    <div class="single-team-area tlp-row">
        <?php echo $image; ?>
        <div class="<?php echo esc_attr($content_area); ?>">
            <?php echo $inner_title; ?>
            <?php echo $designation_html ?>
            <?php echo $short_bio_html ?>
            <?php echo $sLink_html; ?>
        </div>
    </div>
</div>
