advantage_top_search_form

The Advantage advantage top search form function.

Description

advantage_top_search_form(); 

Usage

  1. if ( !function_exists( 'advantage_top_search_form' ) ) { 
  2. require_once '/inc/lib-content.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advantage_top_search_form(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/lib-content.php  
  1. function advantage_top_search_form() { 
  2. ?> 
  3. <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-search pull-right"> 
  4. <input type="text" class="search-query" name="s" id="s1" placeholder="<?php esc_attr_e( 'Search', 'advantage' ); ?>"> 
  5. <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'advantage' ); ?>" /> 
  6. </form> 
  7. <?php