Your IP : 216.73.216.5


Current Path : /home/theafprt/khurram.com/wp-content/themes/petrix/template-parts/
Upload File :
Current File : /home/theafprt/khurram.com/wp-content/themes/petrix/template-parts/content.php

<?php $categories = get_the_terms($post->ID, 'category');  ?>
<?php if (is_single()) : ?>
     <article id="post-<?php the_ID(); ?>" <?php post_class('blog_details_area mb-5 post_content'); ?>>
          <div class="blog_list_item fade_up">
               <div class="mb-5">
                    <?php if (has_post_thumbnail()) : ?>
                         <div class="blog_details_img">
                              <img src="<?php print esc_attr(get_the_post_thumbnail_url($post->ID, 'full')) ?>" alt="blog" class="img-fluid w-100" />
                         </div>
                    <?php endif; ?>
                    <div class="d-flex gap-4 mb-3 blog_details_info blog_post_info">
                         <h4><i class="fa-sharp fa-solid fa-circle-user"></i> <?php esc_html_e('By', 'petrix') ?> <?php print get_the_author() ?></h4>
                         <h4><i class="fa-sharp fa-solid fa-clock"></i> <?php the_time(get_option('date_format')); ?></h4>
                         <h4>
                              <a href="<?php comments_link(); ?>" class="color-primary mb-0">
                                   <i class="fa-sharp fa-solid fa-comments"></i>
                                   <?php comments_number(); ?>
                              </a>
                         </h4>
                    </div>
                    <?php the_content(); ?>
               </div>
               <?php if (get_the_tags()) : ?>
                    <div class="d-flex gap-2">
                         <h6 class="mb-0 w-70px"><i class="fa-sharp fa-solid fa-tag"></i> <?php esc_html_e('Tags :', 'petrix') ?></h6>
                         <?php print petrix_get_tag() ?>
                    </div>
               <?php endif ?>
          </div>
     </article>
<?php else : ?>
     <article <?php post_class('col-xl-12') ?> id="post-<?php the_ID(); ?>">
          <div class="blog_list_item fade_up">
               <div class="blog_post_info">
                    <h4><?php echo get_the_date() ?></h4>
               </div>
               <a class="title" href="<?php the_permalink() ?>"><?php the_title() ?></a>
               <?php the_excerpt(); ?>
               <?php if (has_post_thumbnail()) : ?>
                    <a href="<?php the_permalink() ?>" data-cursor="<i class='fa-sharp fa-light fa-arrow-up-right'></i>" class="mb-0 img hover_img">
                         <div class="img-box">
                              <img src="<?php print esc_attr(get_the_post_thumbnail_url($post->ID, 'full')) ?>" alt="blog list" class="img-fluid w-100">
                              <img src="<?php print esc_attr(get_the_post_thumbnail_url($post->ID, 'full')) ?>" alt="blog list" class="img-fluid w-100">

                         </div>
                    </a>
               <?php endif ?>
               <a class="read_btn mt-3" href="<?php the_permalink() ?>"><?php esc_html_e('read more', 'petrix') ?></a>
          </div>
     </article>
<?php endif; ?>