Your IP : 216.73.216.187


Current Path : /home/exhehbu/wp/wp-content/themes/revolution/inc/templates/postbit/
Upload File :
Current File : /home/exhehbu/wp/wp-content/themes/revolution/inc/templates/postbit/style10.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_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 );
}
?>
<div class="small-12 medium-6 <?php echo esc_attr( $columns . ' ' . $thb_animation ); ?> columns">
	<article itemscope itemtype="http://schema.org/Article" <?php post_class( 'post style10' ); ?>>
		<div>
			<?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-bloglarge' ); ?>
				</a>
			</figure>
			<?php } ?>
			<div class="style10-content">
				<?php if ( $thb_cat ) { ?>
				<aside class="post-category">
					<?php the_category( ', ' ); ?>
				</aside>
				<?php } ?>
				<header class="post-title entry-header">
					<?php the_title( '<h4 class="entry-title" itemprop="name headline"><a href="' . esc_url( $permalink ) . '" title="' . the_title_attribute( 'echo=0' ) . '">', '</a></h4>' ); ?>
				</header>
				<?php if ( $thb_excerpt ) { ?>
					<div class="post-content">
						<?php the_excerpt(); ?>
					</div>
				<?php } ?>
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" class="style10-readmore"><?php esc_html_e( 'Read More', 'revolution' ); ?></a>
			</div>
		</div>
		<?php do_action( 'thb_postmeta' ); ?>
	</article>
</div>