HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/public_html/wp-content/themes/land-excavator/search.php
<?php
/**
 * The template for displaying search results pages
 *
 * @package Land Excavator
 */

get_header();
?>

<?php
$land_excavator_archive_layout = get_theme_mod( 'land_excavator_archive_layout', 'layout-1' ); 
?> 

<div class="container">
	<?php if ( $land_excavator_archive_layout == 'layout-1' ) { ?>
		<div class="main-wrapper">
			<main id="primary" class="site-main ct-post-wrapper lay-width">

				<?php if ( have_posts() ) : ?>

					<header class="page-header">
						<h1 class="page-title">
							<?php
							/* translators: %s: search query. */
							printf( esc_html__( 'Search Results for: %s', 'land-excavator' ), '<span>' . get_search_query() . '</span>' );
							?>
						</h1>
					</header>

					<?php
					/* Start the Loop */
					while ( have_posts() ) :
						the_post();

						get_template_part( 'revolution/template-parts/content', get_post_format() );

					endwhile;

					?><?php
					$land_excavator_pagination_wrap = absint(get_theme_mod('land_excavator_enable_pagination', 1));
					$pagination_type = get_theme_mod('land_excavator_pagination_type', 'type-1');

					if ($land_excavator_pagination_wrap == 1) {
						if ($pagination_type == 'type-1') {
							the_posts_pagination();
						} elseif ($pagination_type == 'type-2') {
							the_posts_navigation();
						}
					}
				?><?php

				else :

					get_template_part( 'revolution/template-parts/content', 'none' );

				endif;
				?>
			</main>
			<?php get_sidebar(); ?>
		</div>
	<?php 
	} elseif ( $land_excavator_archive_layout == 'layout-2' ) { ?>
		<div class="main-wrapper">
			<?php get_sidebar(); ?>
			<main id="primary" class="site-main ct-post-wrapper lay-width">

				<?php if ( have_posts() ) : ?>

					<header class="page-header">
						<h1 class="page-title">
							<?php
							/* translators: %s: search query. */
							printf( esc_html__( 'Search Results for: %s', 'land-excavator' ), '<span>' . get_search_query() . '</span>' );
							?>
						</h1>
					</header>

					<?php
					/* Start the Loop */
					while ( have_posts() ) :
						the_post();

						get_template_part( 'revolution/template-parts/content', get_post_format() );

					endwhile;

					?><?php
					$land_excavator_pagination_wrap = absint(get_theme_mod('land_excavator_enable_pagination', 1));
					$pagination_type = get_theme_mod('land_excavator_pagination_type', 'type-1');

					if ($land_excavator_pagination_wrap == 1) {
						if ($pagination_type == 'type-1') {
							the_posts_pagination();
						} elseif ($pagination_type == 'type-2') {
							the_posts_navigation();
						}
					}
				?><?php

				else :

					get_template_part( 'revolution/template-parts/content', 'none' );

				endif;
				?>
			</main>
		</div>
	<?php 
	} elseif ( $land_excavator_archive_layout == 'layout-3' ) { // No-sidebar layout ?>
		<div class="main-wrapper full-width">
			<main id="primary" class="site-main ct-post-wrapper lay-width">

				<?php if ( have_posts() ) : ?>

					<header class="page-header">
						<h1 class="page-title">
							<?php
							/* translators: %s: search query. */
							printf( esc_html__( 'Search Results for: %s', 'land-excavator' ), '<span>' . get_search_query() . '</span>' );
							?>
						</h1>
					</header>

					<?php
					/* Start the Loop */
					while ( have_posts() ) :
						the_post();

						get_template_part( 'revolution/template-parts/content', get_post_format() );

					endwhile;

					?><?php
					$land_excavator_pagination_wrap = absint(get_theme_mod('land_excavator_enable_pagination', 1));
					$pagination_type = get_theme_mod('land_excavator_pagination_type', 'type-1');

					if ($land_excavator_pagination_wrap == 1) {
						if ($pagination_type == 'type-1') {
							the_posts_pagination();
						} elseif ($pagination_type == 'type-2') {
							the_posts_navigation();
						}
					}
				?><?php

				else :

					get_template_part( 'revolution/template-parts/content', 'none' );

				endif;
				?>
			</main>
		</div>
	<?php } ?>
</div>

<?php get_footer(); ?>