HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers60/dev.agrimac.nl/wwwroot/wp-content/themes/Avada/search.php
<?php get_header(); ?>
	<div id="content" <?php Avada()->layout->add_class( 'content_class' ); ?> <?php Avada()->layout->add_style( 'content_style' ); ?>>
		<?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>
		
		<?php
		if ( Avada()->settings->get( 'search_new_search_position' ) == 'bottom' ) {
			get_template_part( 'templates/blog', 'layout' );
		?>
			<div class="fusion-clearfix"></div>
		<?php
		}
		?>
		
		<?php if ( Avada()->settings->get( 'search_new_search_position' ) != 'hidden' ) : ?>
		<div class="search-page-search-form search-page-search-form-<?php echo Avada()->settings->get( 'search_new_search_position' ); ?>">
			<?php
			// Render the post title
			echo avada_render_post_title( 0, FALSE, __( 'Need a new search?', 'Avada' ) ); ?>
			<p><?php echo __('If you didn\'t find what you were looking for, try a new search!', 'Avada'); ?></p>
			<form class="searchform seach-form" role="search" method="get" action="<?php echo home_url( '/' ); ?>">
				<div class="search-table">
					<div class="search-field">
						<input type="text" value="" name="s" class="s" placeholder="<?php _e( 'Search ...', 'Avada' ); ?>"/>
					</div>
					<div class="search-button">
						<input type="submit" class="searchsubmit" value="&#xf002;" />
					</div>
				</div>
			</form>
		</div>
		<?php endif; ?>
		<?php
		if ( Avada()->settings->get( 'search_new_search_position' ) == 'top' || Avada()->settings->get( 'search_new_search_position' ) == 'hidden' ) {
			get_template_part( 'templates/blog', 'layout' );
		}
		?>
	<?php else: ?>
	<div class="post-content">
		<?php
			$title = __( 'Couldn\'t find what you\'re looking for!', 'Avada' );
			echo Avada()->template->title_template( $title );
		?>
		<div class="error-page">
			<div class="fusion-columns fusion-columns-3">
				<div class="fusion-column col-lg-4 col-md-4 col-sm-4">
					<h1 class="oops"><?php _e( 'Oops!', 'Avada' ); ?></h1>
				</div>
				<div class="fusion-column col-lg-4 col-md-4 col-sm-4 useful-links">
					<h3><?php _e( 'Here are some useful links:', 'Avada' ); ?></h3>
					<?php					
						if ( Avada()->settings->get( 'checklist_circle' ) ) {
							$circle_class = 'circle-yes';
						} else {
							$circle_class = 'circle-no';
						}
						wp_nav_menu( array( 'theme_location' => '404_pages', 'depth' => 1, 'container' => false, 'menu_class' => 'error-menu list-icon list-icon-arrow ' . $circle_class, 'echo' => 1 ) );
					?>
				</div>
				<div class="fusion-column col-lg-4 col-md-4 col-sm-4">
					<h3><?php _e( 'Try again', 'Avada' ); ?></h3>
					<p><?php _e('If you want to rephrase your query, here is your chance:', 'Avada' ); ?></p>
					<?php echo get_search_form( false ); ?>
				</div>
			</div>
		</div>
	</div>
	<?php endif; ?>
	</div>
	<?php do_action( 'fusion_after_content' ); ?>
<?php get_footer();

// Omit closing PHP tag to avoid "Headers already sent" issues.