Skip to content

Commit

Permalink
Revert "Add searchform partial and function to replace default WordPr…
Browse files Browse the repository at this point in the history
…ess functionality"
  • Loading branch information
retlehs authored Sep 7, 2018
1 parent 798e1a2 commit b7aeb66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
25 changes: 0 additions & 25 deletions app/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
}
}

/** Add a global class to everything.
* We want it to come first, so stuff its filter does can be overridden.
*/
array_unshift($classes, 'app');

/** Add class if sidebar is active */
if (display_sidebar()) {
$classes[] = 'sidebar-primary';
Expand Down Expand Up @@ -81,23 +76,3 @@

return $comments_template;
}, 100);

/**
* Render WordPress searchform using Blade
*/
add_filter('get_search_form', function () {
return template('partials.searchform');
});

/**
* Collect data for searchform.
*/
add_filter('sage/template/app/data', function ($data) {
return $data + [
'sf_action' => esc_url(home_url('/')),
'sf_screen_reader_text' => _x('Search for:', 'label', 'sage'),
'sf_placeholder' => esc_attr_x('Search …', 'placeholder', 'sage'),
'sf_current_query' => get_search_query(),
'sf_submit_text' => esc_attr_x('Search', 'submit button', 'sage'),
];
});
7 changes: 0 additions & 7 deletions resources/views/partials/searchform.blade.php

This file was deleted.

0 comments on commit b7aeb66

Please sign in to comment.