PHP 8.2.31
Preview: user-mobile-navigation.php Size: 885 B
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/single/user/user-mobile-navigation.php

<?php

	$nav_list = tourmaster_get_user_nav_list();
	$nav_active = empty($_GET['page_type'])? '': $_GET['page_type'];
	
	echo '<div class="tourmaster-combobox-wrap" >';
	echo '<select onchange="location=this.options[this.selectedIndex].value;" >';
	foreach( $nav_list as $nav_slug => $nav ){
		if( !empty($nav['type']) && $nav['type'] == 'title' ){
			echo '<option disabled >-- ' . $nav['title'] . ' --</option>';
		}else{

			// get the navigation link
			if( !empty($nav['link']) ){
				$nav_link = $nav['link'];
			}else{
				$nav_link = tourmaster_get_template_url('user', array('page_type'=>$nav_slug));
			}

			echo '<option value="' . esc_url($nav_link) . '" ';
			if( empty($nav_active) || $nav_active == $nav_slug ){
				$nav_active = $nav_slug;
				echo 'selected'; 
			}
			echo ' >' .  esc_html($nav['title']) . '</option>';		
		}
	}
	echo '</select>';
	echo '</div>';
?>

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
1.73 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.66 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.40 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
885 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.74 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
11.33 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download

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