| Server IP : 62.72.47.131 / Your IP : 216.73.217.34 Web Server : Apache/2.4.66 (Debian) System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : ( 501) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/medicate/template-parts/post/ |
Upload File : |
<?php
$pqf_options = get_option('pqf_options');
$archive_year = get_the_time( 'Y' );
$archive_month = get_the_time( 'm' );
$archive_day = get_the_time( 'd' );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="pt-blog-post">
<div class="pt-post-media">
<?php
if(has_post_thumbnail())
{
?>
<div class="pt-post-media">
<?php the_post_thumbnail(); ?>
<div class="pt-post-date">
<a href="<?php echo esc_url( get_day_link($archive_year, $archive_month, $archive_day ) ); ?>">
<span><?php echo esc_html( get_the_date()); ?></span></a>
</div>
</div>
<?php
}
?>
</div>
<div class="pt-blog-contain">
<?php
if ( is_single() ) {
$cats = get_the_category();
$primary_cat = ! empty( $cats ) ? $cats[0] : null;
?>
<header class="kc-single-head">
<?php if ( $primary_cat ) : ?>
<p class="kc-single-eyebrow"><a href="<?php echo esc_url( get_category_link( $primary_cat->term_id ) ); ?>"><?php echo esc_html( $primary_cat->name ); ?></a></p>
<?php endif; ?>
<h1 class="kc-single-title"><?php the_title(); ?></h1>
</header>
<?php
}
?>
<div class="pt-post-meta<?php echo is_single() ? ' kc-single-meta' : ''; ?>">
<?php
if(is_sticky() && !is_single())
{
?>
<span class="pt-sticky-post-label"><i class="fa fa-star" aria-hidden="true"></i><?php echo esc_html__('Featured', 'medicate') ?></span>
<?php } ?>
<ul>
<li class="pt-post-author"><i class="fa fa-user"></i><?php the_author(); ?></li>
<li class="pt-post-comment">
<?php
if(get_comments_number(get_the_ID()) == 1)
{
$comment = esc_html__('Comment','medicate');
}
else
{
$comment = esc_html__('Comments','medicate');
}
?>
<a href="<?php the_permalink(); ?>#comments"><i class="fa fa-comments"></i><?php echo get_comments_number(get_the_ID()).' '.$comment; ?></a>
</li>
</ul>
</div>
<?php
if(!is_single())
{
?>
<h5 class="pt-blog-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
<?php } ?>
<?php
if(is_single())
{
?>
<div class="entry-content kc-entry-prose">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'medicate' ),
'after' => '</div>',
'link_before' => '<span class="page-number">',
'link_after' => '</span>',
)
);
?>
</div>
<?php
get_template_part( 'template-parts/article/article', 'end-cta' );
}
else
{
the_excerpt();
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'medicate' ),
'after' => '</div>',
'link_before' => '<span class="page-number">',
'link_after' => '</span>',
) );
?>
<?php
$btn_text = 'Read More';
if(isset($pqf_options['blog_btn_text']) && !empty($pqf_options['blog_btn_text']))
{
$btn_text = $pqf_options['blog_btn_text'];
}
?>
<div class="pt-btn-container">
<a href="<?php the_permalink(); ?>" class="pt-button">
<div class="pt-button-block">
<span class="pt-button-text"><?php echo esc_html($btn_text); ?></span>
<i class="ion ion-plus-round"></i>
</div>
</a>
</div>
<?php
}
?>
</div>
</div>
<?php
if(isset($pqf_options['enable_comment']))
{
$options = $pqf_options['enable_comment'];
if($options == "yes")
{
if(is_single()){
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
}
}
}
else {
if(is_single()){
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
}
}
?>
</article><!-- #post-## -->