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

<?php
/**
 * The template part for displaying single posts
 */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="traveltour-single-article traveltour-blog-quote-format" >
	<?php 
		// post title
		$post_option = traveltour_get_post_option(get_the_ID());
		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 == 'none' ){
			get_template_part('content/content-single', 'title');
		}

		// post content
		global $pages;

		if( !preg_match('#^\[gdlr_core_quote[\s\S]+\[/gdlr_core_quote\]#', $pages[0], $match) ){ 
			preg_match('#^<blockquote[\s\S]+</blockquote>#', $pages[0], $match);
		}

		if( !empty($match[0]) ){
			$blockquote = $match[0];
			$author = substr($pages[0], strlen($match[0]));
		}else{
			$blockquote = '';
			$author = $pages[0];
		}

		echo '<div class="traveltour-single-article-content" >';
		$thumbnail_id = get_post_thumbnail_id();
		if( !empty($thumbnail_id) ){
			$quote_background = wp_get_attachment_url(get_post_thumbnail_id());
			echo '<div class="traveltour-blog-quote-background" ' . gdlr_core_esc_style(array(
				'background-image' => $quote_background
			)) . ' ></div>';
		}

		echo '<div class="traveltour-blog-quote gdlr-core-quote-font" >&#8220;</div>';
		echo '<div class="traveltour-blog-content-wrap" >';
		if( !empty($blockquote) ){
			echo '<div class="traveltour-blog-quote-content gdlr-core-info-font">' . gdlr_core_content_filter($blockquote, true) . '</div>';
		}
		if( !empty($author) ){
			echo '<div class="traveltour-blog-quote-author gdlr-core-info-font" >' . gdlr_core_text_filter($author) . '</div>';
		}
		echo '</div>';
		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).