Added search box

This commit is contained in:
Silvan Calarco 2015-02-22 16:02:17 +01:00
parent 10d4c864a2
commit 84dbe32064
2 changed files with 26 additions and 0 deletions

View File

@ -6,6 +6,10 @@ if ( !defined( 'ABSPATH' ) ) {
} }
function openmamba_breadcrumbs() {
$text['category'] = '';
}
// custom fonts // custom fonts
function add_custom_font() { function add_custom_font() {
$url = get_stylesheet_directory_uri() . '/fonts/comfortaa-regular/stylesheet.css'; $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'); 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 // openmamba downloads pages
function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword, $lang) { 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")); eval(file_get_contents("/var/ftp/pub/openmamba/media/".$milestone."/".$medium."/".$lang."/latest.inc.php"));

View File

@ -206,3 +206,12 @@ a.mytoplink:active {
.collapseomatic_content div { .collapseomatic_content div {
margin-bottom: 0px; margin-bottom: 0px;
} }
/*.breadcrumb-current {display:none;}*/
.title-archive {display:none;}
#searchform { margin:7px; }
#searchform-item input[type="text"] { width:auto; }
#searchform-item { float:right; }