PHP 8.2.31
Preview: page.php Size: 3.87 KB
/home/nshryvcy/blissfulnepal.com/wp-content/themes/traveltour/page.php

<?php
/**
 * The template for displaying pages
 */

	get_header();

	while( have_posts() ){ the_post();

	

		$post_option = traveltour_get_post_option(get_the_ID());
		$show_content = (empty($post_option['show-content']) || $post_option['show-content'] == 'enable')? true: false;

		if( empty($post_option['sidebar']) ){
			$sidebar_type = 'none';
			$sidebar_left = '';
			$sidebar_right = '';
		}else{
			$sidebar_type = empty($post_option['sidebar'])? 'none': $post_option['sidebar'];
			$sidebar_left = empty($post_option['sidebar-left'])? '': $post_option['sidebar-left'];
			$sidebar_right = empty($post_option['sidebar-right'])? '': $post_option['sidebar-right'];
		}

		if( $sidebar_type == 'none' ){

			// content from wordpress editor area
			ob_start();
			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>',
			) );
			$content = ob_get_contents();
			ob_end_clean();

			if( ($show_content && trim($content) != "") || post_password_required() ){
				echo '<div class="traveltour-content-container traveltour-container">';
				echo '<div class="traveltour-content-area traveltour-item-pdlr traveltour-sidebar-style-none clearfix" >';
				echo gdlr_core_escape_content($content);
				echo '</div>'; // traveltour-content-area
				echo '</div>'; // traveltour-content-container
			}

			if( !post_password_required() ){
				do_action('gdlr_core_print_page_builder');
			}

			// comments template
			if( comments_open() || get_comments_number() ){
				echo '<div class="traveltour-page-comment-container traveltour-container" >';
				echo '<div class="traveltour-page-comments traveltour-item-pdlr" >';
				comments_template();
				echo '</div>';
				echo '</div>';
			}

		}else{

			echo '<div class="traveltour-content-container traveltour-container">';
			echo '<div class="' . traveltour_get_sidebar_wrap_class($sidebar_type) . '" >';

			// sidebar content
			echo '<div class="' . traveltour_get_sidebar_class(array('sidebar-type'=>$sidebar_type, 'section'=>'center')) . '" >';
			
			// content from wordpress editor area
			ob_start();
			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>',
			) );
			$content = ob_get_contents();
			ob_end_clean();

			if( ($show_content && trim($content) != "") || post_password_required() ){
				echo '<div class="traveltour-content-area traveltour-item-pdlr" >' . $content . '</div>'; // traveltour-content-wrapper
			}

			if( !post_password_required() ){
				do_action('gdlr_core_print_page_builder');
			}

			// comments template
			if( comments_open() || get_comments_number() ){
				echo '<div class="traveltour-page-comments traveltour-item-pdlr" >';
				comments_template();
				echo '</div>';
			}

			echo '</div>'; // traveltour-get-sidebar-class

			// sidebar left
			if( $sidebar_type == 'left' || $sidebar_type == 'both' ){
				echo traveltour_get_sidebar($sidebar_type, 'left', $sidebar_left);
			}

			// sidebar right
			if( $sidebar_type == 'right' || $sidebar_type == 'both' ){
				echo traveltour_get_sidebar($sidebar_type, 'right', $sidebar_right);
			}

			echo '</div>'; // traveltour-get-sidebar-wrap-class
		 	echo '</div>'; // traveltour-content-container

		}
		
	} // while

	get_footer(); 
?>

Directory Contents

Dirs: 10 × Files: 18

Name Size Perms Modified Actions
admin DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
content DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
css DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
header DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
images DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
include DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
js DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
languages DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
plugins DIR
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
- drwxr-xr-x 2024-05-28 15:48:51
Edit Download
1.54 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.92 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.79 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
3.87 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
40.42 KB lrw-r--r-- 2025-01-20 11:00:42
Edit Download
22.97 KB lrw-r--r-- 2024-06-06 11:36:43
Edit Download
5.00 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
361 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
3.87 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
258 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
7.00 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
4.78 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.26 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
55 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
6.47 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download
725 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
18 B lrw-r--r-- 2024-05-28 15:48:51
Edit Download
1.05 KB lrw-r--r-- 2024-05-28 15:48:51
Edit Download

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