HEX
Server: Apache
System: Linux server7 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64
User: k8148-2 (1324)
PHP: 8.1.34
Disabled: show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec
Upload Files
File: /var/www/k8148-2/htdocs/www.sport-roth.at/old/wp-content/themes/daniel/search.php
<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package Daniel
 */

get_header();

// Layout
$blogsidebar = daniel_get_option( 'daniel_blog_layout', 'bloglayout', 'right' );
switch ( htmlspecialchars( $blogsidebar ) ) {
	case 'left':
		if( !is_active_sidebar( 'sidebar-1' ) ){
			$blog_wrapper_class = 'ht-col-md-12 ht-col-xs-12';
		}else{ $blog_wrapper_class = 'ht-col-md-9 ht-col-xs-12'; }
		break;

	case 'right':
		if( !is_active_sidebar( 'sidebar-1' ) ){
			$blog_wrapper_class = 'ht-col-md-12 ht-col-xs-12';
		}else{ $blog_wrapper_class = 'ht-col-md-9 ht-col-xs-12'; }
		break;

	default:
		$blog_wrapper_class = 'ht-col-md-12 ht-col-xs-12';
		break;
}

?>

	<div id="primary" class="content-area danielpage-padding">
		<main id="main" class="site-main">

			<div class="ht-container">
				<div class="ht-row">
					<?php if( $blogsidebar == 'left' && is_active_sidebar( 'sidebar-1' ) ): ?>
						<div class="ht-col-md-3 ht-col-xs-12">
							<?php get_sidebar();?>
						</div>
					<?php endif; ?>

					<div class="<?php echo esc_attr( $blog_wrapper_class ); ?>">
						<?php if ( have_posts() ) : ?>
							<header class="page-header">
								<h1 class="page-title">
									<?php
									/* translators: %s: search query. */
									printf( esc_html__( 'Search Results for: %s', 'daniel' ), '<span>' . get_search_query() . '</span>' );
									?>
								</h1>
							</header><!-- .page-header -->

							<?php
								echo '<div class="ht-row">';
									/* Start the Loop */
									while ( have_posts() ) :

										the_post();

											/*
											 * Include the Post-Type-specific template for the content.
											 * If you want to override this in a child theme, then include a file
											 * called content-___.php (where ___ is the Post Type name) and that will be used instead.
											 */
											get_template_part( 'template-parts/content', 'search' );

									endwhile;
								echo '</div><div class="ht-row">';
									daniel_blog_pagination();
								echo '</div>';

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

								endif;
							?>

					</div>

					<?php if( $blogsidebar == 'right' && is_active_sidebar( 'sidebar-1' ) ): ?>
						<div class="ht-col-md-3 ht-col-xs-12">
							<?php get_sidebar();?>
						</div>
					<?php endif; ?>

				</div>
			</div>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php
get_footer();