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-single-in-below.php

<?php
/**
 * The "in-below" template to display the content of the single post or attachment:
 * featured image and title placed inside content, title below the image
 *
 * @package WordPress
 * @subpackage HALLELUJAH
 * @since HALLELUJAH 1.0.62
 */
?>
<article id="post-<?php the_ID(); ?>"
	<?php
	post_class( 'post_item_single'
		. ' post_type_' . esc_attr( get_post_type() ) 
		. ' post_format_' . esc_attr( str_replace( 'post-format-', '', get_post_format() ) )
	);
	hallelujah_add_seo_itemprops();
	?>
>
<?php

	do_action( 'hallelujah_action_before_post_data' );

	hallelujah_add_seo_snippets();

	// Single post thumbnail and title
	if ( is_singular( 'post' ) || is_singular( 'attachment' ) ) {
		ob_start();
		?>
		<div class="post_header_wrap<?php
			if ( has_post_thumbnail() || str_replace( 'post-format-', '', get_post_format() ) == 'image' ) {
				echo ' with_featured_image';
			}
		?>">
			<?php
			// Featured image
			hallelujah_show_post_featured_image();
			// Post title and meta
			hallelujah_show_post_title_and_meta();
			?>
		</div>
		<?php
		$hallelujah_post_header = ob_get_contents();
		ob_end_clean();
		if ( strpos( $hallelujah_post_header, 'post_featured' ) !== false
			|| strpos( $hallelujah_post_header, 'post_title' ) !== false
			|| strpos( $hallelujah_post_header, 'post_meta' ) !== false
		) {
			hallelujah_show_layout( $hallelujah_post_header );
		}
	}

	do_action( 'hallelujah_action_before_post_content' );

	// Post content
	?>
	<div class="post_content post_content_single entry-content" itemprop="mainEntityOfPage">
		<?php
		the_content();

		do_action( 'hallelujah_action_before_post_pagination' );

		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>',
			)
		);

		// Taxonomies and share
		if ( is_single() && ! is_attachment() ) {

			ob_start();

			// Post taxonomies
			the_tags( '<span class="post_meta_item post_tags"><span class="post_meta_label">' . esc_html__( 'Tags:', 'hallelujah' ) . '</span> ', ' ', '</span>' );

			// Share
			if ( hallelujah_is_on( hallelujah_get_theme_option( 'show_share_links' ) ) ) {
				hallelujah_show_share_links(
					array(
						'type'    => 'block',
						'caption' => '',
						'before'  => '<span class="post_meta_item post_share">',
						'after'   => '</span>',
					)
				);
			}

			$hallelujah_tags_output = ob_get_contents();

			ob_end_clean();

			if ( ! empty( $hallelujah_tags_output ) ) {

				do_action( 'hallelujah_action_before_post_meta' );

				hallelujah_show_layout( $hallelujah_tags_output, '<div class="post_meta post_meta_single">', '</div>' );

				do_action( 'hallelujah_action_after_post_meta' );

			}
		}

        if($post_type == 'sermons'){
            $ctc_video = get_field('video', get_the_ID());
            $ctc_audio = get_field('audio', get_the_ID());
            $ctc_pdf = get_field('download', get_the_ID());
            $post_type = get_post_type();
        ?>
            <div class="ctc_sermon_meta">
                <?php

                if(!empty($ctc_video)){

                    $video_out = false;
                    if (!empty($ctc_video)) {
                        $popup = explode(
                            '<!-- .sc_layouts_popup -->',
                            trx_addons_get_video_layout( array(
                                    'link'  => $ctc_video,
                                    'embed' => '',
                                    'cover' => get_post_thumbnail_id(),
                                    'show_cover' => false,
                                    'popup' => true
                                )
                            )
                        );
                        if ( ! empty( $popup[0] ) && ! empty( $popup[1] ) ) {
                            if ( preg_match( '/<a .*<\/a>/', $popup[0], $matches ) && ! empty( $matches[0] ) ) {
                                $video_out = true;
                                ?>
                                <div class="post_video_hover post_video_hover_popup"><?php hallelujah_show_layout( $matches[0] ); ?></div>
                                <?php
                                hallelujah_show_layout($popup[1]);
                            }
                        }
                    }
                }


                if(!empty($ctc_audio)){
                    $audio_out = false;
                    if ( !empty($ctc_audio) ) {
                        $popup = explode(
                            '<!-- .sc_layouts_popup -->',
                            trx_addons_get_video_layout( array(
                                    'link'  => '',
                                    'embed' => '<audio src="'.$ctc_audio.'"></audio>',
                                    'cover' => get_post_thumbnail_id(),
                                    'show_cover' => false,
                                    'popup' => true
                                )
                            )
                        );
                        if ( ! empty( $popup[0] ) && ! empty( $popup[1] ) ) {
                            if ( preg_match( '/<a .*<\/a>/', $popup[0], $matches ) && ! empty( $matches[0] ) ) {
                                $audio_out = true;
                                ?>
                                <div class="post_audio_hover post_audio_hover_popup"><?php hallelujah_show_layout( $matches[0] ); ?></div>
                                <?php

                                hallelujah_show_layout($popup[1]);
                            }
                        }
                    }

                }
                if(!empty($ctc_pdf)){
                    echo '<a href="' . $ctc_pdf . '" download class="icon-download-2" target="_blank"">' . '</a>';
                }
                ?>
            </div>
        <?php
        }
		?>
	</div><!-- .entry-content -->


	<?php
	do_action( 'hallelujah_action_after_post_content' );

	do_action( 'hallelujah_action_after_post_data' );
	?>
</article>

LittleDemon - FACEBOOK
[ KELUAR ]