64 lines
1.7 KiB
PHP
Executable File
64 lines
1.7 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Template part for displaying blog post - horizontal.
|
|
*
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package Blogmate
|
|
* @author Peregrine Themes
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
?>
|
|
|
|
<?php do_action( 'bloglo_before_article' ); ?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'bloglo-article' ); ?><?php bloglo_schema_markup( 'article' ); ?>>
|
|
|
|
<?php
|
|
$bloglo_blog_entry_format = get_post_format();
|
|
|
|
if ( 'quote' === $bloglo_blog_entry_format ) {
|
|
get_template_part( 'template-parts/entry/format/media', $bloglo_blog_entry_format );
|
|
} else {
|
|
|
|
$bloglo_classes = array();
|
|
$bloglo_classes[] = 'bloglo-blog-entry-wrapper';
|
|
$bloglo_thumb_align = bloglo_option( 'blog_image_position' );
|
|
$bloglo_thumb_align = apply_filters( 'bloglo_horizontal_blog_image_position', $bloglo_thumb_align );
|
|
$bloglo_classes[] = 'bloglo-thumb-' . $bloglo_thumb_align;
|
|
$bloglo_classes = implode( ' ', $bloglo_classes );
|
|
?>
|
|
|
|
<div class="<?php echo esc_attr( $bloglo_classes ); ?>">
|
|
<?php get_template_part( 'template-parts/entry/entry-thumbnail' ); ?>
|
|
|
|
<div class="bloglo-entry-content-wrapper">
|
|
|
|
<?php
|
|
if ( bloglo_option( 'blog_horizontal_post_categories' ) ) {
|
|
get_template_part( 'template-parts/entry/entry-category' );
|
|
}
|
|
|
|
get_template_part( 'template-parts/entry/entry-header' );
|
|
|
|
get_template_part( 'template-parts/entry/entry-meta' );
|
|
|
|
get_template_part( 'template-parts/entry/entry-summary' );
|
|
|
|
|
|
if ( bloglo_option( 'blog_horizontal_read_more' ) ) {
|
|
get_template_part( 'template-parts/entry/entry-summary-footer' );
|
|
}
|
|
|
|
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|
|
|
|
<?php do_action( 'bloglo_after_article' ); ?>
|