Esempio n. 1
0
function ac_person_get_social_icon($post = 0, $type)
{
    $post = get_post($post);
    $return = '';
    // Get the meta
    $meta = ac_get_meta($type);
    if ($meta) {
        // Ensure it's a proper URL
        $url = ac_ensure_http($meta);
        // Get the icon class
        $icon_class = "el-icon-" . $type;
        $return = "<a href='" . esc_url($url) . "' target='_blank'><span class='{$icon_class}'></span></a>";
    }
    return $return;
}
$email_address = ac_get_meta('email_address');
if ($email_address) {
    ?>
			<li class="email-address"><i class="entypo smaller icon-link-1"></i><a href="mailto:<?php 
    echo $email_address;
    ?>
"><?php 
    echo $email_address;
    ?>
</a></li> <?php 
}
$web_address = ac_get_meta('web_address');
if ($web_address) {
    ?>
			<li class="web-address"><i class="entypo smaller icon-mail-1"></i><a href="<?php 
    echo esc_url(ac_ensure_http($web_address));
    ?>
"><?php 
    echo $web_address;
    ?>
</a></li> <?php 
}
?>

		<?php 
echo ac_person_get_all_social_icons($post, 'li');
?>

		<?php 
if (get_the_terms($post->ID, 'people-category')) {
    ?>