HEX
Server: Apache
System: Linux host35.server.ae 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
User: nokatech (2100)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nokatech/public_html/wp-content/themes/consultox/search.php
<?php
/**
 * Default Template Main File.
 * @package CONSULTOX
 */

get_header();
$data  = \CONSULTOX\Includes\Classes\Common::instance()->data( 'search' )->get();
if ( class_exists( '\Elementor\Plugin' ) AND $data->get( 'tpl-type' ) == 'e' AND $data->get( 'tpl-elementor' ) ) {
	echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $data->get( 'tpl-elementor' ) );
} else {
?>




<?php if (!$data->get( 'enable_banner' ) ) : ?>
<?php if ( $data->get( 'banner' ) ) : ?>
	<section class=" search_page_title page-title" style="background-image: url(<?php echo esc_url( $data->get( 'banner' ) ); ?>);">
	<?php else : ?>	
	<section class=" search_page_title page-title" >
	<?php endif; ?>

            <div class="auto-container">
                <div class="content-box">
					<?php if( !$options->get( 'search_hide_title' ) ):?> 
                    <h1 class="mr_banner_title"><?php if( $data->get( 'title' ) ) echo wp_kses( $data->get( 'title' ), true ); else( wp_title( '' ) ); ?></h1>
					<?php endif; ?>
					<?php if( !$options->get( 'search_bread' ) ):?> 	
					<ul class="mr_bread_list">
                       	<?php echo consultox_the_breadcrumb(); ?>
                    </ul>
					<?php endif; ?>
                </div>
            </div>
        </section>
<?php endif; }?>

<?php if( have_posts() ) : ?>
<div class="mr_search_page">	
<?php consultox_template_load( 'templates/mrcontent.php', compact( 'options', 'data' ) ); ?>	
</div>
<?php else : ?>  
<?php get_template_part('templates/search'); ?>	
<?php endif; ?>	
<?php get_footer(); ?>