Current Path : /home/theafprt/khurram.com/wp-content/themes/classic-portfolio/template-parts/post/ |
Current File : /home/theafprt/khurram.com/wp-content/themes/classic-portfolio/template-parts/post/content-grid.php |
<?php /** * @package Classic Portfolio */ ?> <?php $classic_portfolio_post_date = get_the_date(); $classic_portfolio_year = get_the_date('Y'); $classic_portfolio_month = get_the_date('m'); $classic_portfolio_author_id = get_the_author_meta('ID'); $classic_portfolio_author_link = esc_url(get_author_posts_url($classic_portfolio_author_id)); $classic_portfolio_author_name = get_the_author(); ?> <div class="col-lg-4 col-md-4 postsec-list"> <article id="post-<?php the_ID(); ?>" <?php post_class('blog-post'); ?>> <div class="listarticle"> <?php if (has_post_thumbnail() ){ ?> <div class="post-thumb"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> </div> <?php } ?> <header class="entry-header"> <h2 class="single_title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php if ('post' == get_post_type() && ( get_theme_mod('classic_portfolio_metafields_date', true) || get_theme_mod('classic_portfolio_metafields_comments', true) || get_theme_mod('classic_portfolio_metafields_author', true) || get_theme_mod('classic_portfolio_metafields_time', true))) : ?> <div class="postmeta"> <?php if (get_theme_mod('classic_portfolio_metafields_date', true)) : ?> <div class="post-date"> <a href="<?php echo esc_url(get_month_link($classic_portfolio_year, $classic_portfolio_month)); ?>"> <i class="fas fa-calendar-alt"></i> <?php echo esc_html($classic_portfolio_post_date); ?> <span class="screen-reader-text"><?php echo esc_html($classic_portfolio_post_date); ?></span> </a> </div> <?php endif; ?> <?php if (get_theme_mod('classic_portfolio_metafields_comments', true)) : ?> <div class="post-comment"> <a href="<?php echo esc_url(get_comments_link()); ?>"> <span><?php echo esc_html(get_theme_mod('classic_portfolio_metabox_seperator', '|'));?></span><i class="fa fa-comment"></i> <?php comments_number(); ?> <span class="screen-reader-text"><?php comments_number(); ?></span> </a> </div> <?php endif; ?> <?php if (get_theme_mod('classic_portfolio_metafields_author', true)) : ?> <div class="post-author"> <a href="<?php echo $classic_portfolio_author_link; ?>"> <span><?php echo esc_html(get_theme_mod('classic_portfolio_metabox_seperator', '|'));?></span><i class="fas fa-user"></i> <?php echo esc_html($classic_portfolio_author_name); ?> <span class="screen-reader-text"><?php echo esc_html($classic_portfolio_author_name); ?></span> </a> </div> <?php endif; ?> <?php if (get_theme_mod('classic_portfolio_metafields_time', true)) : ?> <div class="post-time"> <a href="#"> <span><?php echo esc_html(get_theme_mod('classic_portfolio_metabox_seperator', '|'));?></span><i class="fas fa-clock"></i> <?php echo esc_html(get_the_time()); ?> <span class="screen-reader-text"><?php echo esc_html(get_the_time()); ?></span> </a> </div> <?php endif; ?> </div> <?php endif; ?> </header> <div class="entry-summary"> <?php if(get_theme_mod('classic_portfolio_blog_post_description_option') == 'Full Content'){ ?> <div class="entry-content"><?php $classic_portfolio_content = get_the_content(); ?> <p><?php echo wpautop($classic_portfolio_content); ?></p> </div> <?php } if(get_theme_mod('classic_portfolio_blog_post_description_option', 'Excerpt Content') == 'Excerpt Content'){ ?> <?php if(get_the_excerpt()) { ?> <div class="entry-content"> <p><?php $classic_portfolio_excerpt = get_the_excerpt(); echo esc_html($classic_portfolio_excerpt); ?></p> </div> <?php }?> <?php }?> </div> <div class="clearfix"></div> </div> </article> </div>