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-excerpt.php

<?php
/**
 * The default 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' );
$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_excerpt 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_image_hover = ! empty( $hallelujah_template_args['hover'] ) && ! hallelujah_is_inherit( $hallelujah_template_args['hover'] )
								? $hallelujah_template_args['hover']
								: hallelujah_get_theme_option( 'image_hover' );
	$hallelujah_hover = ! empty( $hallelujah_template_args['hover'] ) && ! hallelujah_is_inherit( $hallelujah_template_args['hover'] )
						? $hallelujah_template_args['hover']
						: hallelujah_get_theme_option( 'image_hover' );

	$author_id = get_the_author_meta( 'ID' );
    if ( empty( $author_id ) && ! empty( $GLOBALS['post']->post_author ) ) {
        $author_id = $GLOBALS['post']->post_author;
    }
    $author_link   = get_author_posts_url( $author_id );
	$author_name   = get_the_author_meta( 'display_name', $author_id );
	if ($hallelujah_post_format != 'audio'){
	    hallelujah_show_post_featured(
            array(
                'no_links'   => ! empty( $hallelujah_template_args['no_links'] ),
                'hover'      => $hallelujah_hover,
                'thumb_size' => hallelujah_get_thumb_size( strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false ? 'full' : ( $hallelujah_expanded ? 'huge' : 'huge' ) ),
            )
        );
    }
	if ($hallelujah_post_format == 'audio'){
	    hallelujah_show_post_featured(
            array(
                'no_links'   => ! empty( $hallelujah_template_args['no_links'] ),
                'hover'      => $hallelujah_hover,
                'class'         => 'icon' == $hallelujah_image_hover ? 'hover_with_info' : '',
                'post_info'     => 'icon' == $hallelujah_image_hover ? '<div class="post_info">' . '<div>'. '<a class="post_date" href="' . esc_url( get_permalink() ) . '">' . get_the_date() . ' </a>' . ' '. '<a class="post_author" rel="author" href="' . esc_url( $author_link ) . '">' . esc_html( $author_name ) .'</a>'. '</div>' .  sprintf( '<h2 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ) . get_the_title() . '</a></h2>'  . '</div>' : '',
                'thumb_size' => hallelujah_get_thumb_size( strpos( hallelujah_get_theme_option( 'body_style' ), 'full' ) !== false ? 'full' : ( $hallelujah_expanded ? 'huge' : 'huge' ) ),
            )
	    );
	}

	// Title and post meta
	$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 ) {
	    if($hallelujah_post_format != 'audio'){
		    ?>
            <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( '<h2 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
                    } else {
                        the_title( '<h2 class="post_title entry-title">', '</h2>' );
                    }
                }

                // Post meta
                if ( $hallelujah_show_meta &&  $hallelujah_post_format != 'quote' ) {
                    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
	    }

            if($hallelujah_post_format == 'audio' && has_post_thumbnail() == false){
		    ?>
            <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( '<h2 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
                    } else {
                        the_title( '<h2 class="post_title entry-title">', '</h2>' );
                    }
                }

                // Post meta
                if ( $hallelujah_show_meta &&  $hallelujah_post_format != 'quote' ) {
                    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 ( empty( $hallelujah_template_args['hide_excerpt'] ) && hallelujah_get_theme_option( 'excerpt_length' ) > 0 ) {
	    if($hallelujah_post_format != 'audio'){
		?>
		<div class="post_content entry-content">
			<?php
			if ( hallelujah_get_theme_option( 'blog_content' ) == 'fullpost' ) {
				// Post content area
				?>
				<div class="post_content_inner">
					<?php
					do_action( 'hallelujah_action_before_full_post_content' );
					the_content( '' );
					do_action( 'hallelujah_action_after_full_post_content' );
					?>
				</div>
				<?php
				// Inner pages
				wp_link_pages(
					array(
						'before'      => '<div class="page_links"><span class="page_links_title">' . esc_html__( 'Pages:', 'hallelujah' ) . '</span>',
						'after'       => '</div>',
						'link_before' => '<span>',
						'link_after'  => '</span>',
						'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'hallelujah' ) . ' </span>%',
						'separator'   => '<span class="screen-reader-text">, </span>',
					)
				);
			} else {
				// 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
	    }
        if($hallelujah_post_format == 'audio' && has_post_thumbnail() == false){
	        echo has_post_thumbnail();
            ?>
            <div class="post_content entry-content">
                <?php
                if ( hallelujah_get_theme_option( 'blog_content' ) == 'fullpost' ) {
                    // Post content area
                    ?>
                    <div class="post_content_inner">
                        <?php
                        do_action( 'hallelujah_action_before_full_post_content' );
                        the_content( '' );
                        do_action( 'hallelujah_action_after_full_post_content' );
                        ?>
                    </div>
                    <?php
                    // Inner pages
                    wp_link_pages(
                        array(
                            'before'      => '<div class="page_links"><span class="page_links_title">' . esc_html__( 'Pages:', 'hallelujah' ) . '</span>',
                            'after'       => '</div>',
                            'link_before' => '<span>',
                            'link_after'  => '</span>',
                            'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'hallelujah' ) . ' </span>%',
                            'separator'   => '<span class="screen-reader-text">, </span>',
                        )
                    );
                } else {
                    // 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
        }
	}
    // Post meta
    if ( $hallelujah_show_meta &&  $hallelujah_post_format == 'quote' ) {
        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
            )
        );
    }

	?>
</article>
<?php

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

LittleDemon - FACEBOOK
[ KELUAR ]