![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/thread-self/cwd/wp-content/plugins/uicore-framework/includes/templates/ |
<?php namespace UiCore; defined('ABSPATH') || exit(); /** * Search Render * * @author Andrei Voica <[email protected] * @since 1.0.0 */ class Search { /** * Add Search Hook * * @author Andrei Voica <[email protected] * @since 1.0.0 */ function __construct() { if(Helper::get_option('header') === 'true' && Helper::get_option('header_search') === 'true'){ add_action('uicore_body_end', [$this, 'search_display']); } } /** * Display Search * * @return void * @author Andrei Voica <[email protected] * @since 1.0.0 */ public function search_display() { // prettier-ignore ?> <div class="uicore uicore-wrapper uicore-search elementor-section elementor-section-boxed "> <span class="uicore-close uicore-i-close"></span> <div class="uicore elementor-container"> <form role="search" method="get" autocomplete="on" class="search-form" action="<?php echo home_url( '/' ); ?>"> <label> <input class="search-field" placeholder="<?php _ex( 'Type and hit enter', 'Frontend - FullScreen Search', 'uicore-framework'); ?>" value="" name="s" title="Start Typing" /> </label> </form> </div> </div> <?php } }