File "design-1.php"

Full Path: /home/rattkxnv/byattorney.com/wp-content/plugins/blog-designer-pack/templates/carousel/design-1.php
File size: 1.99 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Carousel Template 1
 * 
 * @package Blog Designer Pack
 * @since 1.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

global $post;

// Post Meta Data
$meta_data = array(
				'author'	=> $atts['show_author'],
				'post_date'	=> $atts['show_date'],
				'comments' 	=> $atts['show_comments'],
			);
?>
<div class="bdpp-post-slide <?php echo esc_attr( $atts['wrp_cls'] ); ?>">
	<div class="bdpp-post-carousel-content">
		<?php if ( $atts['feat_img'] ) { ?>
		<div class="bdpp-post-img-bg">
			<a href="<?php echo esc_url( $atts['post_link'] ); ?>">
				<img class="bdpp-img bdpp-post-feat-img" src="<?php echo esc_url( $atts['feat_img'] ); ?>" alt="<?php the_title_attribute(); ?>" />
				<?php if( $atts['format'] == 'video' ) { echo bdp_post_format_html( $atts['format'] ); } ?>
			</a>
		</div>
		<?php }

		if( $atts['show_category'] && $atts['cate_name'] ) { ?>
		<div class="bdpp-post-cats"><?php echo wp_kses_post( $atts['cate_name'] ); ?></div>
		<?php } ?>

		<h2 class="bdpp-post-title">
			<a href="<?php echo esc_url( $atts['post_link'] ); ?>"><?php the_title(); ?></a>
		</h2>

		<?php if( $atts['show_date'] || $atts['show_author'] || $atts['show_comments'] ) { ?>
			<div class="bdpp-post-meta bdpp-post-meta-up">
				<?php echo bdp_post_meta_data( $meta_data, array( 'sharing_trigger' => 'hover' ) ); ?>
			</div>
		<?php }

		if( $atts['show_content'] ) { ?>
			<div class="bdpp-post-content">
				<div class="bdpp-post-desc"><?php echo bdp_get_post_excerpt( $post->ID, get_the_content(), $atts['content_words_limit'] ); ?></div>
				<?php if( $atts['show_read_more'] ) { ?>
					<a href="<?php echo esc_url( $atts['post_link'] ); ?>" class="bdpp-rdmr-btn"><?php echo wp_kses_post( $atts['read_more_text'] ); ?></a>
				<?php } ?>
			</div>
		<?php }

		if( $atts['show_tags'] && $atts['tags'] ) { ?>
		<div class="bdpp-post-meta bdpp-post-meta-down"><?php echo wp_kses_post( $atts['tags'] ); ?></div>
		<?php }	?>
	</div>
</div>