| 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/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/ |
| Current File : /home/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/content-custom.php |
<?php
/**
* The custom template to display the content
*
* Used for index/archive/search.
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0.50
*/
$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_blog_id = hallelujah_get_custom_blog_id( join( '_', $hallelujah_blog_style ) );
$hallelujah_blog_style[0] = str_replace( 'blog-custom-', '', $hallelujah_blog_style[0] );
$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 );
$hallelujah_blog_meta = hallelujah_get_custom_layout_meta( $hallelujah_blog_id );
$hallelujah_custom_style = ! empty( $hallelujah_blog_meta['scripts_required'] ) ? $hallelujah_blog_meta['scripts_required'] : 'none';
if ( ! empty( $hallelujah_template_args['slider'] ) || $hallelujah_columns > 1 || ! hallelujah_is_off( $hallelujah_custom_style ) ) {
?><div class="
<?php
if ( ! empty( $hallelujah_template_args['slider'] ) ) {
echo 'slider-slide swiper-slide';
} else {
echo esc_attr( ( hallelujah_is_off( $hallelujah_custom_style ) ? 'column' : sprintf( '%1$s_item %1$s_item', $hallelujah_custom_style ) ) . "-1_{$hallelujah_columns}" );
}
?>
">
<?php
}
?>
<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_custom post_layout_custom_' . 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_is_off( $hallelujah_custom_style )
? ' post_layout_' . esc_attr( $hallelujah_custom_style )
. ' post_layout_' . esc_attr( $hallelujah_custom_style ) . '_' . 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
}
// Custom layout
do_action( 'hallelujah_action_show_layout', $hallelujah_blog_id, get_the_ID() );
?>
</article><?php
if ( ! empty( $hallelujah_template_args['slider'] ) || $hallelujah_columns > 1 || ! hallelujah_is_off( $hallelujah_custom_style ) ) {
?></div><?php
// Need opening PHP-tag above just after </div>, because <div> is a inline-block element (used as column)!
}