diff --git a/blocks/blog_menu/block_blog_menu.php b/blocks/blog_menu/block_blog_menu.php index 71fd4221f27..7bc53b130c9 100644 --- a/blocks/blog_menu/block_blog_menu.php +++ b/blocks/blog_menu/block_blog_menu.php @@ -99,10 +99,14 @@ class block_blog_menu extends block_base { // Prepare the footer for this block if (has_capability('moodle/blog:search', context_system::instance())) { // Full-text search field - $form = html_writer::tag('label', get_string('search', 'admin'), array('for'=>'blogsearchquery', 'class'=>'accesshide')); - $form .= html_writer::empty_tag('input', array('id'=>'blogsearchquery', 'type'=>'text', 'name'=>'search')); - $form .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('search'))); - $this->content->footer = html_writer::tag('form', html_writer::tag('div', $form), array('class'=>'blogsearchform', 'method'=>'get', 'action'=>new moodle_url('/blog/index.php'))); + $form = html_writer::tag('label', get_string('search', 'admin'), array('for' => 'blogsearchquery', + 'class' => 'accesshide')); + $form .= html_writer::empty_tag('input', array('id' => 'blogsearchquery', 'class' => 'form-control mr-1', + 'type' => 'text', 'name' => 'search')); + $form .= html_writer::empty_tag('input', array('type' => 'submit', 'class' => 'btn btn-secondary', + 'value' => get_string('search'))); + $this->content->footer = html_writer::tag('form', html_writer::tag('div', $form), array( + 'class' => 'blogsearchform form-inline', 'method' => 'get', 'action' => new moodle_url('/blog/index.php'))); } else { // No footer to display $this->content->footer = '';