<?php rtp_hook_begin_post(); ?> <div class="post-content clearfix rtp-not-found"> <p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'rtPanel'); ?> </p> <?php get_search_form(); ?> </div> <?php rtp_hook_end_post(); ?> <?php rtp_hook_end_content(); ?> </section><!-- #content --> <?php rtp_get_sidebar_id() === 0 ? '' : rtp_hook_sidebar(); ?> <?php get_footer();
<?php /** * The template for displaying Sidebar * * @package rtPanel * * @since rtPanel 2.0 */ $sidebar_id = rtp_get_sidebar_id(); $class_name = ''; $rtp_sidebar_grid_class = apply_filters('rtp_set_sidebar_grid_class', 'large-4 columns'); if ($sidebar_id === 'buddypress-sidebar-widgets') { $class_name = ' rtp-buddypress-sidebar'; } else { if ($sidebar_id === 'bbpress-sidebar-widgets') { $class_name = ' rtp-bbpress-sidebar'; } } ?> <!-- #sidebar --> <aside id="sidebar" class="rtp-sidebar-section<?php echo esc_attr($class_name); echo !empty($rtp_sidebar_grid_class) ? ' ' . $rtp_sidebar_grid_class : $rtp_sidebar_grid_class; ?> " role="complementary"> <div class="rtp-sidebar-inner-wrapper"> <?php rtp_hook_begin_sidebar(); ?>
?> <h1 class="post-title rtp-main-title"><?php printf(__('Search Results for: %s', 'rtPanel'), '<span>' . get_search_query() . '</span>'); ?> </h1><?php if (1 == $version) { $search_code = preg_split('/customSearchControl.draw\\(\'cse\'(.*)\\)\\;/i', $rtp_general['search_code']); echo $search_code[0]; echo $split_code[0]; echo "customSearchControl.execute('" . get_search_query() . "');"; echo $search_code[1]; } elseif (2 == $version) { echo preg_replace('/\\<gcse:(searchresults-only|searchresults|search)(.*)\\>\\<\\/gcse:(searchresults-only|searchresults|search)\\>/i', '<gcse:$1 queryParameterName="s"$2></gcse:$3>', $rtp_general['search_code']); } } else { get_template_part('loop', 'common'); } ?> <?php rtp_hook_end_content(); ?> </section><!-- #content --><?php if ((!$rtp_general['search_code'] || !$rtp_general['search_layout']) && rtp_get_sidebar_id() !== 0) { rtp_hook_sidebar(); } ?> <?php get_footer();