| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/venus-cms/wp-content/themes/venus/ |
Upload File : |
<?php
/**
* Display archive VENUS for the theme.
*
* @copyright ZiniMedia 2016
* @version Release: 0.1
* @package venus
* @author ZiniMedia-BM
*/
?>
<?php get_header(); ?>
<?php
$term_name = get_queried_object()->name;
$site_url = get_site_url();
$strLang = "";
if('en' == ICL_LANGUAGE_CODE) {
$strLang = "en";
}
$categories = get_terms( 'specialist', array('orderby' => 'id') );
$termSpecialist = get_terms([
'taxonomy' => 'specialist',
'hide_empty' => false,
]);
$args = array(
'posts_per_page' => POSTS_PER_PAGE,
'orderby' => 'date',
'order' => 'DESC',
'post_type' => 'doctor',
'post_status' => 'publish',
'suppress_filters' => true,
'tax_query' => array(
array(
'taxonomy' => 'specialist',
'field' => 'slug'
)
)
);
$loop = get_posts( $args, ARRAY_A );
?>
<!-- main content -->
<main class="main-content">
<!-- section-header-page -->
<section class="section-header-page" style="background-image: url('<?php bloginfo('template_directory'); ?>/assets/images/bg/bg-doctor.jpg')">
<div class="container">
<h1 class="title-page h2-sm"><?php _e('Đội ngũ bác sĩ, nhân viên chuyên nghiệp', 'venus'); ?></h1>
<div class="taxonomy-select">
<div class="filter-doctor">
<div class="row group-form-control">
<div class="col-sm-12">
<div class="form-group custom-select-filter has-arrow">
<i class="ico-pro"></i>
<select class="form-control"
onChange="window.location.replace('<?php echo $site_url . '/' . $strLang?>/specialist/'+this.value)"
name="specialist"
id="specialist">
<option class="option selected"><?php _e('Chuyên khoa', 'venus'); ?> </option>
<?php
foreach($termSpecialist as $term) {?>
<option value=<?php echo $term->slug?>>
<?php echo $term->name ?>
</option>
</a>
<?php } ?>
</select>
</div>
</div>
<div class="col-sm-6">
</div>
</div>
</div>
</div>
</div>
</section>
<!-- section-doctor -->
<div class="primary-content">
<section class="section-doctors">
<div class="container">
<div class="list-doctors">
<div class="row">
<?php
$args1 = array(
'posts_per_page' => -1,
'post_type' => 'doctor',
'post_status' => 'publish',
'suppress_filters' => true,
);
$loop1 = new WP_Query($args1 , ARRAY_A);
?>
<?php if ($loop1->have_posts()) while ($loop1->have_posts()) : $loop1->the_post(); ?>
<div class="col-sm-6 col-md-4 col-lg-3">
<div class="team-item">
<a href="<?php echo get_the_permalink($id); ?>" title="<?php echo the_title(); ?>" class="">
<?php if (has_post_thumbnail($id, "276x345")) {
$imgThumb = wp_get_attachment_image_src(get_post_thumbnail_id($id), "276x345");
?>
<figure class="figure-img-fix">
<img src="<?php echo $imgThumb[0]; ?>" alt="<?php echo the_title(); ?>" />
</figure>
<?php } else { ?>
<figure class="figure-img-fix">
<img src="<?php bloginfo('template_directory'); ?>/assets/images/upload/user_not_thumb.png" alt="<?php echo get_the_title($id); ?>">
</figure>
<?php } ?>
</a>
<div class="team-head">
<h3 class="team-name h6"><a href="<?php echo the_permalink(); ?>" title="<?php echo the_title(); ?>" class=""><?php echo wp_trim_words(the_title(), 14); ?></a></h3>
<span class="position">
<?php echo get_field("position") ?>
</span>
</div>
<div class="team-text">
<blockquote class="dotdotdot">
<?php echo wp_trim_words(the_excerpt(), 35); ?>
</blockquote>
<div class="view-detail">
<a href="<?php echo the_permalink(); ?>" class="link-view-detail"><?php _e('Tìm hiểu thêm', 'venus'); ?> <i class="ico-arrow-right"></i></a>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- e: section-doctors -->
</main>
<?php get_footer(); ?>