Added search box
This commit is contained in:
parent
10d4c864a2
commit
84dbe32064
@ -6,6 +6,10 @@ if ( !defined( 'ABSPATH' ) ) {
|
||||
}
|
||||
|
||||
|
||||
function openmamba_breadcrumbs() {
|
||||
$text['category'] = '';
|
||||
}
|
||||
|
||||
// custom fonts
|
||||
function add_custom_font() {
|
||||
$url = get_stylesheet_directory_uri() . '/fonts/comfortaa-regular/stylesheet.css';
|
||||
@ -18,6 +22,19 @@ function add_custom_font() {
|
||||
}
|
||||
add_action('wp_print_styles', 'add_custom_font');
|
||||
|
||||
function add_search_box($items, $args) {
|
||||
if($args->theme_location == 'header-menu') {
|
||||
ob_start();
|
||||
get_search_form();
|
||||
$searchform = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
return $items .= '<li id="searchform-item">' . $searchform . '</li>';
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
add_filter('wp_nav_menu_items','add_search_box', 10, 2);
|
||||
|
||||
// openmamba downloads pages
|
||||
function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword, $lang) {
|
||||
eval(file_get_contents("/var/ftp/pub/openmamba/media/".$milestone."/".$medium."/".$lang."/latest.inc.php"));
|
||||
|
Loading…
Reference in New Issue
Block a user