Skip to content

Commit

Permalink
Dynamic Task Names In Admin Bar Search Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMacLab committed Sep 6, 2014
1 parent d6a1ace commit 534e098
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions go_admin_bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ function go_admin_bar(){

$wp_admin_bar->add_node( array(
'title' => '
<form role="search" method="get" id="go_admin_bar_task_search_form" class="searchform" action="' . home_url( '/' ) . '" >
<div><label class="screen-reader-text" for="s">' . __( 'Search for:' ) . '</label>
<input type="text" value="' . get_search_query() . '" name="s" id="go_admin_bar_task_search_input" placeholder="Search for tasks..."/>
<input type="hidden" name="post_type[]" value="tasks" />
<input type="submit" id="go_admin_bar_task_search_submit" value="'. esc_attr__( 'Search' ) .'" />
<form role="search" method="get" id="go_admin_bar_task_search_form" class="searchform" action="'.home_url('/').'">
<div><label class="screen-reader-text" for="s">'.__('Search for:').'</label>
<input type="text" value="'.get_search_query().'" name="s" id="go_admin_bar_task_search_input" placeholder="Search for '.strtolower(get_option("go_tasks_plural_name")).'..."/>
<input type="hidden" name="post_type[]" value="tasks"/>
<input type="submit" id="go_admin_bar_task_search_submit" value="'.esc_attr__('Search').'"/>
</div>
</form>',
'id' => 'go_task_search'
Expand Down

0 comments on commit 534e098

Please sign in to comment.