File: /home/exhehbu/wp/wp-content/themes/revolution/inc/templates/article/style2.php
<?php
$article_sidebar = ot_get_option( 'article_sidebar', 'on' );
$article_author_name = ot_get_option( 'article_author_name', 'on' );
$article_date = ot_get_option( 'article_date', 'on' );
$article_cat = ot_get_option( 'article_cat', 'on' );
?>
<article itemscope itemtype="http://schema.org/Article" <?php post_class( 'post post-detail style2-detail' ); ?>>
<div class="row align-center">
<div class="columns">
<div class="post-content">
<header class="post-title entry-header">
<?php if ( 'on' === $article_cat ) { ?>
<aside class="post-category">
<?php the_category( ', ' ); ?>
</aside>
<?php } ?>
<?php the_title( '<h1 class="entry-title" itemprop="name headline">', '</h1>' ); ?>
<?php if ( 'on' === $article_author_name || 'on' === $article_date ) { ?>
<aside class="post-meta">
<?php
if ( 'on' === $article_author_name ) {
?>
<?php the_author_posts_link(); ?> <?php esc_html_e( 'on', 'revolution' ); ?> <?php } ?>
<?php
if ( 'on' === $article_date ) {
?>
<?php echo get_the_date(); ?><?php } ?>
</aside>
<?php } ?>
</header>
<?php
/* The following determines what the post format is and shows the correct file accordingly */
$format = get_post_format();
if ( in_array( $format, array( 'gallery', 'video' ), true ) ) {
get_template_part( 'inc/templates/postformats/' . $format );
} else {
get_template_part( 'inc/templates/postformats/standard' );
}
?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
<?php get_template_part( 'inc/templates/blog/post-tags' ); ?>
</div>
<?php
if ( 'on' === $article_sidebar ) {
get_sidebar( 'single' ); }
?>
</div>
<?php get_template_part( 'inc/templates/blog/post-end' ); ?>
<?php do_action( 'thb_postmeta' ); ?>
</article>