Close #992 - Move some Roots features into Soil

This commit is contained in:
Ben Word
2014-03-11 23:34:17 -05:00
parent 6d8b82a7e5
commit dede0bd851
10 changed files with 42 additions and 457 deletions

View File

@@ -2,13 +2,15 @@
/**
* Utility functions
*/
function add_filters($tags, $function) {
foreach($tags as $tag) {
add_filter($tag, $function);
}
}
function is_element_empty($element) {
$element = trim($element);
return empty($element) ? false : true;
}
// Tell WordPress to use searchform.php from the templates/ directory
function roots_get_search_form($form) {
$form = '';
locate_template('/templates/searchform.php', true, false);
return $form;
}
add_filter('get_search_form', 'roots_get_search_form');