| Server IP : 170.10.162.208 / Your IP : 216.73.216.38 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 : /proc/self/root/home/deltahospital/www/wp-content/themes/imedica/ |
Upload File : |
<?php
global $imedica_opts, $post;
$top_margin_fix = redux_post_meta( "imedica_opts", $post->ID, "imedica-top-margin" );
$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" );
$enable_related_posts = isset($imedica_opts['display-related-posts']) ? $imedica_opts['display-related-posts'] : '';
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){
get_header();
} else {
get_header('blank');
}
if (isset($top_margin_fix) && $top_margin_fix == true) {
$margin_style = 'margin-top: 0;';
} else {$margin_style = '';}
?>
<div class="imedica-row">
<div class="<?php echo esc_attr( $imedica_layout ); ?> imedica-container">
<?php
$current_position = function_exists( 'fw_ext_sidebars_get_current_position' ) ? fw_ext_sidebars_get_current_position() : '';
?>
<?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"){
get_sidebar();
}
?>
<div id="primary" class="site-content <?php echo esc_attr( $cls ); ?>" style="<?php echo esc_attr( $margin_style ); ?>">
<div id="content" role="main">
<?php
while(have_posts()){
the_post();
?>
<div class="col-md-4" style="text-align:center;">
<?php the_post_thumbnail('doctor', array(
'class' =>'img-thumbnail'
)); ?>
<h5><?php the_title(); ?></h5>
<p style="line-height:5px"><b><?php the_field('designation'); ?></b></p>
<!--<p 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 '<a href="'.$link.'">'.$term->name. '</a>';
}
?>
</p> -->
<p style="line-height:5px; font-size:12px"><a href="<?php the_permalink ();?>">View Profile</a></p>
<!-- Custom Post Call Here -->
<p style="border-bottom: 1px solid #ddd;"></p>
</div>
<?php
}
?>
</div><!-- #content -->
</div><!-- #primary -->
<?php
if($current_position == "right" || trim($current_position) == ''){
get_sidebar();
}
if($imedica_footer_display){
get_footer();
} else {
get_footer('blank');
}