| 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/index-classic.php |
<?php
/**
* The template for homepage posts with "Classic" style
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0
*/
hallelujah_storage_set( 'blog_archive', true );
get_header();
if ( have_posts() ) {
hallelujah_blog_archive_start();
$hallelujah_classes = 'posts_container '
. ( substr( hallelujah_get_theme_option( 'blog_style' ), 0, 7 ) == 'classic'
? 'columns_wrap columns_padding_bottom'
: 'masonry_wrap'
);
$hallelujah_stickies = is_home() ? get_option( 'sticky_posts' ) : false;
$hallelujah_sticky_out = hallelujah_get_theme_option( 'sticky_style' ) == 'columns'
&& is_array( $hallelujah_stickies ) && count( $hallelujah_stickies ) > 0 && get_query_var( 'paged' ) < 1;
if ( $hallelujah_sticky_out ) {
?>
<div class="sticky_wrap columns_wrap">
<?php
}
if ( ! $hallelujah_sticky_out ) {
if ( hallelujah_get_theme_option( 'first_post_large' ) && ! is_paged() && ! in_array( hallelujah_get_theme_option( 'body_style' ), array( 'fullwide', 'fullscreen' ) ) ) {
the_post();
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'content', 'excerpt' ), 'excerpt' );
}
?>
<div class="<?php echo esc_attr( $hallelujah_classes ); ?>">
<?php
}
while ( have_posts() ) {
the_post();
if ( $hallelujah_sticky_out && ! is_sticky() ) {
$hallelujah_sticky_out = false;
?>
</div><div class="<?php echo esc_attr( $hallelujah_classes ); ?>">
<?php
}
$hallelujah_part = $hallelujah_sticky_out && is_sticky() ? 'sticky' : 'classic';
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'content', $hallelujah_part ), $hallelujah_part );
}
?>
</div>
<?php
hallelujah_show_pagination();
hallelujah_blog_archive_end();
} else {
if ( is_search() ) {
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'content', 'none-search' ), 'none-search' );
} else {
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'content', 'none-archive' ), 'none-archive' );
}
}
get_footer();