| Server IP : www.new.bangkokfinder.com / Your IP : 172.69.166.35 Web Server : nginx/1.20.1 System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64 User : bangkokfinder ( 1000) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bangkokfinder/www/wp-content/themes/wpl_twentyeight/ |
Upload File : |
<?php
// Theme Options
global $wpl_helper;
$theme_options = $wpl_helper->theme_options;
// WP search widget is set to search on listings
if(isset($theme_options['search_on_properties']) and $theme_options['search_on_properties'] == 1 and function_exists('_wpl_import'))
{
$action = wpl_property::get_property_listing_link();
$name = 'sf_textsearch_textsearch';
$value = (isset($_GET['sf_textsearch_textsearch']) ? sanitize_text_field($_GET['sf_textsearch_textsearch']) : '');
}
// It's set to search on WordPress posts/pages
else
{
$action = esc_url(home_url('/'));
$name = 's';
$value = get_search_query();
}
?>
<form role="search" method="get" class="search-form" action="<?php echo $action; ?>">
<label>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'wpl_twentyeight'); ?>" value="<?php echo $value; ?>" name="<?php echo $name; ?>" />
</label>
<button type="submit" class="search-submit"><?php echo _x('Search', 'submit button', 'wpl_twentyeight');?></button>
</form>