File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/advokat/single-attorneys.php
<?php
/**
* @author rs-theme
* @since 1.0
* @version 1.0
*/
get_header(); $licenseKey = get_option("AdvokatWordPressTheme_lic_Key",""); if(!empty($licenseKey)){ ?>
<!-- Main content Start -->
<div class="main-content">
<div class="rs-porfolios-details">
<?php while ( have_posts() ) : the_post();
//take metafield value
$designation = get_post_meta( get_the_ID(), 'designation', true );
$phone = get_post_meta( get_the_ID(), 'phone', true );
$email = get_post_meta( get_the_ID(), 'email', true );
$facebook = get_post_meta( get_the_ID(), 'facebook', true );
$twitter = get_post_meta( get_the_ID(), 'twitter', true );
$google_plus = get_post_meta( get_the_ID(), 'google_plus', true );
$linkedin = get_post_meta( get_the_ID(), 'linkedin', true );
?>
<div class="container">
<div id="content">
<div class="row">
<div class="col-lg-5 col-md-12 mb-md-30 pr-25">
<div class="ps-image">
<?php the_post_thumbnail('advokat_tainers_images'); ?>
</div>
</div>
<div class="col-lg-7 mmt-40 col-md-12 pl-25">
<div class="innertrainers">
<div class="ps-informations">
<h2 class="attorney_title"> <?php the_title(); ?> </h2>
<?php if($designation):?>
<div class="designation-info"><?php echo esc_html($designation); ?></div>
<?php endif; ?>
<div class="ps-informations team-social-icons">
<ul>
<?php if($email):?>
<li class="email">
<span><i class="glyph-icon flaticon-email"> </i> </span>
<a href="mailto:<?php echo esc_attr( $email ); ?>"><?php echo esc_html( $email ); ?></a>
</li>
<?php endif;?>
<?php if($phone):?>
<li class="phone">
<span><i class="glyph-icon flaticon-call"></i></span> <?php echo esc_html( $phone ); ?>
</li>
<?php endif; ?>
</ul>
<ul>
<?php if($facebook):?>
<li class="social-icon">
<a href="<?php echo esc_url( $facebook ); ?>" target="_blank">
<i class="fab fa-facebook"></i>
</a>
</li>
<?php endif;?>
<?php if($twitter):?>
<li class="social-icon">
<a href="<?php echo esc_url( $twitter ); ?>" target="_blank">
<i class="fab fa-twitter" aria-hidden="true"></i>
</a>
</li>
<?php endif;?>
<?php if($google_plus):?>
<li class="social-icon">
<a href="<?php echo esc_url( $google_plus ); ?>" target="_blank">
<i class="fab fa-google-plus"></i>
</a>
</li>
<?php endif; ?>
<?php if($linkedin):?>
<li class="social-icon"><a href="<?php echo esc_url( $linkedin ); ?>" target="_blank"> <i class="fab fa-linkedin"></i></a></li>
<?php endif; ?>
</ul>
</div>
</div>
<div class="project-desc">
<?php
the_content( sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'advokat' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
) );
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'advokat' ),
'after' => '</div>',
) );
?>
</div>
<?php $team_member_skill = get_post_meta( get_the_ID(), 'member_skill', true );
if(!empty($team_member_skill)){
?>
<div class="team-skill">
<div class="row">
<?php foreach ( $team_member_skill as $value ) { ?>
<div class="col-md-6">
<div class="progress rs-progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100" style="width:<?php echo wp_kses_post($value['skill_level']); ?>">
<span class="pb-label"><?php echo wp_kses_post($value['skill_title']); ?></span>
<span class="pb-percent"><?php echo wp_kses_post($value['skill_level']); ?></span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- Education Training -->
<?php $team_education_training = get_post_meta( get_the_ID(), 'education_training', true );
if(!empty($team_education_training)){ ?>
<div class="rs-education-training">
<div class="container">
<?php $edu_title = get_post_meta( get_the_ID(), 'edu_title', true );
if(!empty($edu_title)){ ?>
<div class="rs-title">
<h2 class="title"><?php echo wp_kses_post($edu_title); ?></h2>
</div>
<?php }
?>
<div class="row">
<?php foreach ( $team_education_training as $value ) { ?>
<div class="col-md-6">
<div class="details mb-30">
<h4 class="title"><?php echo wp_kses_post($value['education_title']); ?></h4>
<div class="years">
<?php echo wp_kses_post($value['education_date']); ?>
</div>
<div class="some-text">
<?php echo wp_kses_post($value['education_des']); ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<!-- Practice Areas -->
<?php $team_practice_areas = get_post_meta( get_the_ID(), 'practice_areas', true );
if(!empty($team_practice_areas)){ ?>
<div class="rs-practice-areas">
<div class="container">
<div class="row">
<?php foreach ( $team_practice_areas as $value ) { ?>
<div class="col-md-4">
<div class="items">
<div class="rs-title">
<h3 class="title"><?php echo wp_kses_post($value['practice_areas_title']); ?></h3>
</div>
<?php echo wp_kses_post($value['practice_areas_list']); ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<?php endwhile; ?>
</div>
</div>
<!-- Single Team End -->
<?php }
get_footer();