| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/themes/hallelujah/ |
| Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/content-classic.php |
<?php
/**
* The Classic template to display the content
*
* Used for index/archive/search.
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0
*/
$hallelujah_template_args = get_query_var( 'hallelujah_template_args' );
if ( is_array( $hallelujah_template_args ) ) {
$hallelujah_columns = empty( $hallelujah_template_args['columns'] ) ? 2 : max( 1, $hallelujah_template_args['columns'] );
$hallelujah_blog_style = array( $hallelujah_template_args['type'], $hallelujah_columns );
} else {
$hallelujah_blog_style = explode( '_', hallelujah_get_theme_option( 'blog_style' ) );
$hallelujah_columns = empty( $hallelujah_blog_style[1] ) ? 2 : max( 1, $hallelujah_blog_style[1] );
}
$hallelujah_expanded = ! hallelujah_sidebar_present() && hallelujah_is_on( hallelujah_get_theme_option( 'expand_content' ) );
$hallelujah_components = ! empty( $hallelujah_template_args['meta_parts'] )
? ( is_array( $hallelujah_template_args['meta_parts'] )
? join( ',', $hallelujah_template_args['meta_parts'] )
: $hallelujah_template_args['meta_parts']
)
: hallelujah_array_get_keys_by_value( hallelujah_get_theme_option( 'meta_parts' ) );
$hallelujah_post_format = get_post_format();
$hallelujah_post_format = empty( $hallelujah_post_format ) ? 'standard' : str_replace( 'post-format-', '', $hallelujah_post_format );
?><div class="<?php
if ( ! empty( $hallelujah_template_args['slider'] ) ) {
echo ' slider-slide swiper-slide';
} else {
echo ( 'classic' == $hallelujah_blog_style[0] ? 'column' : 'masonry_item masonry_item' ) . '-1_' . esc_attr( $hallelujah_columns );
}
?>"><article id="post-<?php the_ID(); ?>" data-post-id="<?php the_ID(); ?>"
<?php
post_class(
'post_item post_format_' . esc_attr( $hallelujah_post_format )
. ' post_layout_classic post_layout_classic_' . esc_attr( $hallelujah_columns )
. ' post_layout_' . esc_attr( $hallelujah_blog_style[0] )
. ' post_layout_' . esc_attr( $hallelujah_blog_style[0] ) . '_' . esc_attr( $hallelujah_columns )
);
hallelujah_add_blog_animation( $hallelujah_template_args );
?>
>
<?php
// Sticky label
if ( is_sticky() && ! is_paged() ) {
?>
<span class="post_label label_sticky"></span>
<?php
}
// Featured image
$hallelujah_hover = ! empty( $hallelujah_template_args['hover'] ) && ! hallelujah_is_inherit( $hallelujah_template_args['hover'] )
? $hallelujah_template_args['hover']
: hallelujah_get_theme_option( 'image_hover' );
hallelujah_show_post_featured(
array(
'thumb_size' => hallelujah_get_thumb_size(
'classic' == $hallelujah_blog_style[0]
? ( strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false
? ( $hallelujah_columns > 2 ? 'big' : 'huge' )
: ( $hallelujah_columns > 2
? ( $hallelujah_expanded ? 'med' : 'small' )
: ( $hallelujah_expanded ? 'big' : 'med' )
)
)
: ( strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false
? ( $hallelujah_columns > 2 ? 'masonry-big' : 'full' )
: ( $hallelujah_columns <= 2 && $hallelujah_expanded ? 'masonry-big' : 'masonry' )
)
),
'hover' => $hallelujah_hover,
'no_links' => ! empty( $hallelujah_template_args['no_links'] ),
)
);
if ( ! in_array( $hallelujah_post_format, array( 'link', 'aside', 'status', 'quote' ) ) ) {
?>
<div class="post_header entry-header">
<?php
do_action( 'hallelujah_action_before_post_title' );
// Post title
if ( empty( $hallelujah_template_args['no_links'] ) ) {
the_title( sprintf( '<h4 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h4>' );
} else {
the_title( '<h4 class="post_title entry-title">', '</h4>' );
}
do_action( 'hallelujah_action_before_post_meta' );
// Post meta
if ( ! empty( $hallelujah_components ) && ! in_array( $hallelujah_hover, array( 'border', 'pull', 'slide', 'fade' ) ) ) {
hallelujah_show_post_meta(
apply_filters(
'hallelujah_filter_post_meta_args', array(
'components' => $hallelujah_components,
'seo' => false,
), $hallelujah_blog_style[0], $hallelujah_columns
)
);
}
do_action( 'hallelujah_action_after_post_meta' );
?>
</div><!-- .entry-header -->
<?php
}
// Post content area
ob_start();
// Post content
if ( empty( $hallelujah_template_args['hide_excerpt'] ) && hallelujah_get_theme_option( 'excerpt_length' ) > 0 ) {
hallelujah_show_post_content( $hallelujah_template_args, '<div class="post_content_inner">', '</div>' );
}
// Post meta
if ( in_array( $hallelujah_post_format, array( 'link', 'aside', 'status', 'quote' ) ) ) {
if ( ! empty( $hallelujah_components ) ) {
hallelujah_show_post_meta(
apply_filters(
'hallelujah_filter_post_meta_args', array(
'components' => $hallelujah_components,
), $hallelujah_blog_style[0], $hallelujah_columns
)
);
}
}
// More button
if ( empty( $hallelujah_template_args['no_links'] ) && ! empty( $hallelujah_template_args['more_text'] ) && ! in_array( $hallelujah_post_format, array( 'link', 'aside', 'status', 'quote' ) ) ) {
hallelujah_show_post_more_link( $hallelujah_template_args, '<p>', '</p>' );
}
$hallelujah_content = ob_get_contents();
ob_end_clean();
hallelujah_show_layout( $hallelujah_content, '<div class="post_content entry-content">', '</div><!-- .entry-content -->' );
?>
</article></div><?php
// Need opening PHP-tag above, because <div> is a inline-block element (used as column)!