HEX
Server: LiteSpeed
System: Linux spg20.cloudpowerdns.com 5.14.0-611.35.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 25 03:46:09 EST 2026 x86_64
User: carrerup (3153)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/carrerup/.trash/techland/search.php
<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package WordPress
 * @subpackage Techland
 * @since 1.0.0
 */

	get_header();

	// you can use this action for add any content before container element
	do_action( "techland_before_search" );

	$techland_justify = (stripos(techland_sidebar_control('search_layout'), 'nt-no-sidebar') !== false) ? ' justify-content-center' : '';

?>
<!-- Search page general div -->
<div id="nt-search" class="nt-search">

	<!-- Hero section - this function using on all inner pages -->
	<?php techland_hero_section(); ?>
    <?php
        if ( function_exists('techland_vc_print_saved_template') && '' != techland_settings( 'vc_before_search_templates' ) ) {
            echo techland_vc_print_saved_template( techland_settings( 'vc_before_search_templates' ) );
        }
    ?>
	<div class="nt-theme-inner-container section">
		<div class="container">
			<div class="row<?php echo esc_attr($techland_justify); ?>">

				<!-- Left sidebar -->
				<?php if( 'left-sidebar' == techland_settings( 'search_layout', 'right-sidebar' )) {
					get_sidebar();
				} ?>

				<!-- Sidebar none -->
				<div class="<?php echo techland_sidebar_control( 'search_layout' ); ?>">

                    <?php

                        if ( have_posts() ) {

                            // masonry type
                            if( 'masonry' == techland_settings( 'index_type', 'grid' ) ) {

                                echo '<div class="row">';
                                echo '<div id="masonry-container">';

                            }
                            $techland_inner_grid_style = '';
                            if( 'grid' == techland_settings( 'index_type', 'grid' ) ) {
                                $techland_inner_grid_style = techland_settings( 'grid_style', '1' );
                                echo '<div class="posts posts--s'.esc_attr($techland_inner_grid_style).'">';
                                echo '<div class="__inner">';
                                echo '<div class="row">';

                            }

                                while ( have_posts() ) : the_post();

                                    // if there are posts, run techland_post function
                                    // contain supported post formats from theme
                                    if ('1' == $techland_inner_grid_style) {

                                        echo techland_post_style_one();

                                    } elseif ('2' == $techland_inner_grid_style) {

                                        echo techland_post_style_two();

                                    } elseif ('3' == $techland_inner_grid_style) {

                                        echo techland_post_style_three();

                                    } elseif ('4' == $techland_inner_grid_style) {

                                        echo techland_post_style_four();

                                    } else {

                                        techland_post();
                                    }

                                endwhile;

                            // masonry type container end
                            if( 'masonry' == techland_settings( 'index_type', 'grid' ) ) {

                                echo '</div>';
                                echo '</div>';

                            }
                            // masonry type container end
                            if( 'grid' == techland_settings( 'index_type', 'grid' ) ) {

                                echo '</div>';
                                echo '</div>';
                                echo '</div>';

                            }

                            echo '<div class="clearfix"></div>';

                            // this function working with wp reading settins + posts
                            techland_index_loop_pagination();

                        } else {

                            // if there are no posts, read content none function
                            techland_content_none();

                        }

                    ?>

				</div><!-- End sidebar + content -->

				<!-- Right sidebar -->
				<?php if( 'right-sidebar' == techland_settings( 'search_layout', 'right-sidebar' ) ) {
					get_sidebar();
				} ?>

			</div><!-- End row -->
		</div><!-- End container -->
	</div><!-- End #blog-post -->
</div><!--End search page general div -->

<?php
    if ( function_exists('techland_vc_print_saved_template') && '' != techland_settings( 'vc_after_search_templates' ) ) {
        echo techland_vc_print_saved_template( techland_settings( 'vc_after_search_templates' ) );
    }
	// you can use this action to add any content after search page
	do_action( "techland_after_search" );

	get_footer();

?>