File: /home/kbdhpghp/damusica.casa/wp-content/plugins/team-press/templates/single-team.php
<?php
get_header();?>
<div class="extp-member-single">
<div class="extp-content-member">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php if(has_post_thumbnail()){?>
<div class="member-img">
<div class="first-img">
<?php the_post_thumbnail('full');?>
</div>
<?php ex_teampress_social(get_the_ID());?>
</div>
<?php } ?>
<div class="member-desc">
<div class="member-info">
<h3><?php the_title(); ?></h3>
<?php $position = get_post_meta( get_the_ID(), 'extp_position', true );
if($position!=''){ ?>
<div class="mb-meta">
<span><?php echo esc_html__('Professor: ','teampress'); ?></span>
<?php echo html_entity_decode($position); ?>
</div>
<?php }?>
<?php $phone = get_post_meta( get_the_ID(), 'extp_phone', true );
if($phone!=''){ ?>
<div class="mb-meta">
<span><?php echo esc_html__('Phone: ','teampress'); ?></span>
<a href="tel:<?php echo esc_attr($phone); ?>"><?php echo $phone; ?></a>
</div>
<?php }?>
<?php $email = get_post_meta( get_the_ID(), 'extp_email', true );
if($email!=''){ ?>
<div class="mb-meta">
<span> <?php echo esc_html__('Email: ','teampress'); ?></span>
<a href="mailto:<?php echo sanitize_email($email); ?>"><?php echo urldecode($email); ?></a>
</div>
<?php }
$custom_info = get_post_meta( get_the_ID(), 'extp_custom_team_info', true );
if(!empty($custom_info)){
foreach($custom_info as $info){
?>
<div class="mb-meta">
<span> <?php echo $info['_name']. ': '; ?></span>
<?php echo $info['_content']; ?>
</div>
<?php
}
}
$cate = extp_taxonomy_info('extp_cat','off',get_the_ID());
if($cate!=''){
?>
<div class="mb-meta team-cat-info">
<span> <?php echo esc_html__('Categorias: ','teampress'); ?></span>
<?php echo $cate; ?>
</div>
<?php
}
$location = extp_taxonomy_info('extp_loc','off',get_the_ID());
if($location!=''){
?>
<div class="mb-meta team-loc-info">
<span> <?php echo esc_html__('Location: ','teampress'); ?></span>
<?php echo $location; ?>
</div>
<?php
}
?>
</div>
<?php the_content();?>
</div>
</div>
<?php endwhile;
if(isset($_GET['btpage']) && is_numeric($_GET['btpage']) && get_permalink($_GET['btpage'])!=false){?>
<div class="extp-back-to-list">
<div class="bt-back">
<a href="<?php echo esc_url(get_permalink($_GET['btpage']));?>"><i class="fa fa-angle-left" aria-hidden="true"></i><?php echo esc_html__('Back to member list page','teampress');?></a>
</div>
</div>
<?php
}
endif; ?>
</div><!--end post-->
</div><!--end main-content-->
<?php
get_footer(); ?>