| 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-portfolio.php |
<?php
/**
* The Portfolio 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_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 'masonry_item masonry_item-1_' . esc_attr( $hallelujah_columns );
}
?>
"><article id="post-<?php the_ID(); ?>"
<?php
post_class(
'post_item post_format_' . esc_attr( $hallelujah_post_format )
. ' post_layout_portfolio'
. ' post_layout_portfolio_' . esc_attr( $hallelujah_columns )
. ( is_sticky() && ! is_paged() ? ' sticky' : '' )
);
hallelujah_add_blog_animation( $hallelujah_template_args );
?>
>
<?php
// Sticky label
if ( is_sticky() && ! is_paged() ) {
?>
<span class="post_label label_sticky"></span>
<?php
}
$hallelujah_image_hover = ! empty( $hallelujah_template_args['hover'] ) && ! hallelujah_is_inherit( $hallelujah_template_args['hover'] )
? $hallelujah_template_args['hover']
: hallelujah_get_theme_option( 'image_hover' );
// Featured image
hallelujah_show_post_featured(
array(
'hover' => $hallelujah_image_hover,
'no_links' => ! empty( $hallelujah_template_args['no_links'] ),
'thumb_size' => hallelujah_get_thumb_size(
strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false || $hallelujah_columns < 3
? 'masonry-big'
: 'masonry'
),
'show_no_image' => true,
'class' => 'dots' == $hallelujah_image_hover ? 'hover_with_info' : '',
'post_info' => 'dots' == $hallelujah_image_hover ? '<div class="post_info">' . esc_html( get_the_title() ) . '</div>' : '',
)
);
?>
</article></div><?php
// Need opening PHP-tag above, because <article> is a inline-block element (used as column)!