Your IP : 216.73.216.187


Current Path : /home/e/x/h/exhehbu/wp/wp-content/themes/revolution/inc/templates/postbit/
Upload File :
Current File : /home/e/x/h/exhehbu/wp/wp-content/themes/revolution/inc/templates/postbit/style1.php

<?php
	add_filter( 'excerpt_length', 'thb_supershort_excerpt_length' );

	$vars          = $wp_query->query_vars;
	$columns       = array_key_exists( 'columns', $vars ) ? $vars['columns'] : 'large-4';
	$thb_animation = array_key_exists( 'thb_animation', $vars ) ? $vars['thb_animation'] : false;
	$thb_simple    = array_key_exists( 'thb_simple', $vars ) ? $vars['thb_simple'] : true;
	$thb_date      = array_key_exists( 'thb_date', $vars ) ? $vars['thb_date'] : true;
	$thb_excerpt   = array_key_exists( 'thb_excerpt', $vars ) ? $vars['thb_excerpt'] : false;
	$thb_cat       = array_key_exists( 'thb_cat', $vars ) ? $vars['thb_cat'] : true;

	$format    = get_post_format();
	$permalink = get_the_permalink();
if ( 'link' === $format ) {
	$permalink = get_post_meta( get_the_ID(), 'post_link', true );
}
	$classes[] = 'small-12';
	$classes[] = $columns;
	$classes[] = 'columns';
?>
<div class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
	<article itemscope itemtype="http://schema.org/Article" <?php post_class( 'post style1 ' . $thb_animation ); ?>>
		<?php if ( has_post_thumbnail() ) { ?>
		<figure class="post-gallery">
			<a href="<?php echo esc_url( $permalink ); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
				<?php the_post_thumbnail( 'revolution-rectangle-x2' ); ?>
				<div class="post-gallery-overlay"><?php get_template_part( 'assets/img/svg/next_arrow.svg' ); ?></div>
			</a>
		</figure>
		<?php } ?>
		<?php if ( $thb_cat ) { ?>
		<aside class="post-category">
			<?php the_category( ', ' ); ?>
		</aside>
		<?php } ?>
		<header class="post-title entry-header">
			<?php the_title( '<h3 class="entry-title" itemprop="name headline"><a href="' . esc_url( $permalink ) . '" title="' . the_title_attribute( 'echo=0' ) . '">', '</a></h3>' ); ?>
		</header>
		<?php if ( $thb_excerpt ) { ?>
			<div class="post-content">
				<?php the_excerpt(); ?>
			</div>
		<?php } ?>
		<?php if ( $thb_date ) { ?>
		<aside class="post-meta">
			<?php do_action( 'thb_postdate' ); ?>
		</aside>
		<?php } ?>
		<?php do_action( 'thb_postmeta' ); ?>
	</article>
</div>