Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

63 lines
2.0 KiB
PHP

<?php dt_storage('have_sidebar', true); ?>
<?php get_header(); ?>
<?php get_template_part('top-bg'); ?>
<div id="wrapper">
<?php get_template_part('nav'); ?>
<div id="content_bg">
<div id="container" class="n_search" style="padding-top:10px !important;">
<h1><?php _e('Search Results for: ', LANGUAGE_ZONE); echo get_search_query(); ?></h1>
<div id="hr_container"><div class="hr hr-wide gap-big"></div></div>
<div style="color:#fff;"><?php if (function_exists('relevanssi_didyoumean')) { relevanssi_didyoumean(get_search_query(), "<p>Did you mean: ", "</p>", 5);
} ?></div>
<?php
do_action('dt_layout_before_loop', 'index');
if ( have_posts() ) {
/* Add apropriet class to portfolio/gallery/category in search
* Filter "dt_portfolio_default_classes" located in functions.php
* Function defined in /modules/helpers/template-helper.php
*/
add_filter( 'dt_portfolio_default_classes', 'dt_search_portfolio_class_filter', 10, 3 );
// some init stuff
$add_data = array(
'init_layout' => '2_col-list',
'template_layout' => 'sidebar',
'thumb_w' => 344,
'thumb_h' => 220
);
dt_storage( 'add_data', $add_data );
while( have_posts() ) { the_post();
if ( 'dt_gallery' == get_post_type() ) {
get_template_part( 'content', 'dt-albums' );
continue;
}
get_template_part( 'content', get_post_format() );
}
if( function_exists('wp_pagenavi') ) {
wp_pagenavi();
}
} else {
echo '<p>'.__('Nothing found', LANGUAGE_ZONE).'</p>';
}
?>
</div>
<?php get_sidebar(); ?>
<div class="clrfix">&nbsp;</div>
</div>
</div>
<script type="text/javascript">jQuery(document).ready( function() { add_i_height(); } );</script>
<?php get_footer(); ?>