PHP 8.2.31
Preview: content-single.php Size: 2.15 KB
//proc/self/root/home/nshryvcy/blissfulnepal.com/wp-content/themes/traveltour/content/content-single.php

<?php
/**
 * The template part for displaying single posts
 */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="traveltour-single-article" >
		<?php
			// print post title
			$post_type = get_post_type();
			if( $post_type == 'post' ){

				$post_option = traveltour_get_post_option(get_the_ID());
				
				// feature image 
				if( empty($post_option['blog-feature-image']) || $post_option['blog-feature-image'] == 'default' ){
					$feature_image_pos = traveltour_get_option('general', 'default-blog-feature-image', 'content');
				}else{
					$feature_image_pos = $post_option['blog-feature-image'];
				}

				$post_format = get_post_format();
				if( empty($post_format) ){
					if( $feature_image_pos == 'content' ){
						$feature_image = get_post_thumbnail_id();
						if( !empty($feature_image) ){
							$thumbnail_size = traveltour_get_option('general', 'blog-thumbnail-size', 'full');

							echo '<div class="traveltour-single-article-thumbnail traveltour-media-image" >';
							echo gdlr_core_get_image($feature_image, $thumbnail_size);
							echo '</div>';
						}
					}
				}else{
					get_template_part('content/content-thumbnail', $post_format);
				}

				// post title
				if( empty($post_option['blog-title-style']) || $post_option['blog-title-style'] == 'default' ){
					$title_style = traveltour_get_option('general', 'default-blog-title-style', 'small');
				}else{	
					$title_style = $post_option['blog-title-style'];
				}
				if( $title_style == 'inside-content' ){
					get_template_part('content/content-single', 'title');
				}
			}

			echo '<div class="traveltour-single-article-content">';
			the_content();

			wp_link_pages( array(
				'before'      => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'traveltour' ) . '</span>',
				'after'       => '</div>',
				'link_before' => '<span>',
				'link_after'  => '</span>',
				'pagelink'    => '<span class="screen-reader-text">' . esc_html__( 'Page', 'traveltour' ) . ' </span>%',
				'separator'   => '<span class="screen-reader-text">, </span>',
			) );
			echo '</div>';
		?>
	</div><!-- traveltour-single-article -->
</article><!-- post-id -->

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
1.86 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
569 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.41 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
2.12 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.22 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
832 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.06 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.19 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.87 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.29 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
2.15 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
434 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
510 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
560 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
511 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).