Skip to content

Commit

Permalink
Merge pull request #2110 from roots/revert-2090-master
Browse files Browse the repository at this point in the history
Revert "Add searchform partial and function to replace default WordPress functionality"
  • Loading branch information
retlehs authored Sep 7, 2018
2 parents b8c0ebc + b7aeb66 commit c9bb05a
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 @@ -85,23 +80,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 c9bb05a

Please sign in to comment.