Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/blog-designer-pack/templates/list/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/blog-designer-pack/templates/list/design-1.php |
<?php
/**
* List Design 1
*
* @package Blog Designer Pack
* @since 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<div class="bdp-post-list bdp-clearfix">
<div class="bdp-post-list-content">
<?php if ( has_post_thumbnail() ) { ?>
<div class="bdp-medium-6 bdp-columns">
<div class="bdp-post-image-bg">
<a href="<?php echo esc_url( $post_link ); ?>">
<img src="<?php echo esc_url( $post_featured_image ); ?>" alt="<?php the_title_attribute(); ?>" />
</a>
</div>
</div>
<?php } ?>
<div class="<?php if ( ! has_post_thumbnail() ) { echo 'bdp-medium-12 bdp-columns'; } else { echo 'bdp-medium-6 bdp-columns'; } ?>">
<?php if( $showCategory == "true" && $cate_name != '' ) { ?>
<div class="bdp-post-categories">
<?php echo wp_kses_post( $cate_name ); ?>
</div>
<?php } ?>
<h2 class="bdp-post-title">
<a href="<?php echo esc_url( $post_link ); ?>"><?php the_title(); ?></a>
</h2>
<?php if( $showDate == "true" || $showAuthor == 'true' || $show_comments =="true" ) { ?>
<div class="bdp-post-meta-innr bdp-post-meta">
<?php if( $showAuthor == 'true' ) { ?>
<span class="bdp-post-meta-innr bdp-user-img"><?php the_author(); ?></span>
<?php }
echo ( $showAuthor == 'true' && $showDate == 'true' ) ? '<span class="bdpp-post-meta-sep">/</span>' : '';
if( $showDate == "true" ) { ?>
<span class="bdp-post-meta-innr bdp-time"><?php echo get_the_date(); ?></span>
<?php }
echo ( $showAuthor == 'true' && $showDate == 'true' && $show_comments == 'true' && ! empty( $comments ) ) ? '<span class="bdpp-post-meta-sep">/<span>' : '';
if( ! empty( $comments ) && $show_comments == 'true' ) { ?>
<span class="bdp-post-meta-innr bdp-post-comments">
<a href="<?php the_permalink(); ?>#comments"><?php echo esc_html( $comments.' '.$reply ); ?></a>
</span>
<?php } ?>
</div>
<?php }
if( $showContent == "true" ) { ?>
<div class="bdp-post-content">
<div class="bdp-post-short-content"><?php echo bdp_get_post_excerpt( $post->ID, get_the_content(), $words_limit); ?></div>
<?php if( $showreadmore == 'true' ) { ?>
<a href="<?php echo esc_url( $post_link ); ?>" class="bdp-readmorebtn"><?php esc_html_e('Read More', 'blog-designer-pack'); ?></a>
<?php } ?>
</div>
<?php }
if( $show_tags == 'true' && ! empty( $tags ) ) { ?>
<div class="bdp-post-tags"><?php echo wp_kses_post( $tags ); ?></div>
<?php } ?>
</div>
</div>
</div>