MOON
Server: LiteSpeed
System: Linux server4.datacenterland.com 5.4.203-1-pve #1 SMP PVE 5.4.203-1 (Fri, 26 Aug 2022 14:43:35 +0200) x86_64
User: khakzad (1054)
PHP: 5.6.40
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, symlink
Upload Files
File: /home/khakzad/public_html/milad/wp-content/themes/Saman-1/search.php
<?php $post_number = get_option('aggregate_searchnum_posts'); ?>
<?php get_header(); ?>

<div id="main-content" class="clearfix">
	<div id="left-area">
		<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
		<div id="entries">
			<?php $i = 0; ?>
			<?php 
				global $query_string; 

				parse_str($query_string, $qstring_array);
							
				$args = array('showposts' => $post_number,'paged'=>$paged);
				
				if ( isset($_GET['et_searchform_submit']) ) {			
					$postTypes = array();
					if ( !isset($_GET['et-inc-posts']) && !isset($_GET['et-inc-pages']) ) $postTypes = array('post');
					if ( isset($_GET['et-inc-pages']) ) $postTypes = array('page');
					if ( isset($_GET['et-inc-posts']) ) $postTypes[] = 'post';
					$args['post_type'] = $postTypes;
					
					if ( $_GET['et-month-choice'] != 'no-choice' ) {
						$et_year = substr($_GET['et-month-choice'],0,4);
						$et_month = substr($_GET['et-month-choice'], 4, strlen($_GET['et-month-choice'])-4);
						$args['year'] = $et_year;
						$args['monthnum'] = $et_month;
					}
					
					if ( $_GET['et-cat'] != 0 )
						$args['cat'] = $_GET['et-cat'];
				}	
				
				$args = array_merge($args,$qstring_array);
							
				query_posts($args);
			?>
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<?php $i++; ?>
				<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
			<?php endwhile; ?>
				<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
				else { ?>
					 <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
				<?php } ?>
			<?php else : ?>
				<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
			<?php endif; wp_reset_query(); ?>
		</div> <!-- end #entries -->
	</div> <!-- end #left-area -->
	<?php get_sidebar(); ?>	
		
<?php get_footer(); ?>