File "search.php"
Full Path: /home/tekvhqgl/public_html/wp-content/themes/digeco/search.php
File size: 1.28 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
// Layout class
if ( DigecoTheme::$layout == 'full-width' ) {
$digeco_layout_class = 'col-sm-12 col-12';
} else {
$digeco_layout_class = DigecoTheme_Helper::has_active_widget();
}
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<div class="container">
<div class="row">
<?php
if ( DigecoTheme::$layout == 'left-sidebar' ) {
get_sidebar();
}
?>
<div class="<?php echo esc_attr( $digeco_layout_class );?>">
<main id="main" class="site-main">
<div class="rt-search-post">
<?php if ( have_posts() ) :?>
<?php while ( have_posts() ) : the_post();
$excerpt_length = DigecoTheme::$options['search_excerpt_length'];
get_template_part( 'template-parts/content-search', 'search' );
?>
<?php endwhile; ?>
<?php else:?>
<?php get_template_part( 'template-parts/content', 'none' );?>
<?php endif;?>
</div>
<?php DigecoTheme_Helper::pagination();?>
</main>
</div>
<?php
if ( DigecoTheme::$layout == 'right-sidebar' ) {
get_sidebar();
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>