Files

117 lines
1.7 KiB
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?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="container">
<h1><?php _e('Search Results for: ', LANGUAGE_ZONE); echo get_search_query(); ?></h1>
<div class="hr hr-wide gap-big"></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>
<script type="text/javascript">jQuery(document).ready( function() { add_i_height(); } );</script>
<?php get_footer(); ?>