HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/listdom/templates/search/tpl.php
<?php
// no direct access
defined('ABSPATH') or die();

/** @var LSD_Shortcodes_Search $this */

$action = isset($this->form['page']) ? get_page_link($this->form['page']) : home_url();
$shortcode = (isset($this->form['shortcode']) and trim($this->form['shortcode'])) ? $this->form['shortcode'] : '';
$style = (isset($this->form['style']) and trim($this->form['style'])) ? trim(strtolower($this->form['style'])) : 'default';
$criteria = isset($this->form['criteria']) ? $this->form['criteria'] : 0;

// Add JS codes to footer
$assets = new LSD_Assets();
$assets->footer('<script>
jQuery(document).ready(function()
{
    jQuery("#lsd_search_'.$this->id.'").listdomSearchForm(
    {
        id: "'.$this->id.'",
        shortcode: "'.$shortcode.'",
        ajax: '.$this->ajax.',
        ajax_url: "'.admin_url('admin-ajax.php', null).'",
        nonce: "'.wp_create_nonce('lsd_search_form').'",
        sf: '.json_encode($this->sf).'
    });
});
</script>');
?>
<div class="lsd-search lsd-search-style-<?php echo esc_attr($style); ?> lsd-search-default-style" id="lsd_search_<?php echo esc_attr($this->id); ?>">

    <?php if(is_array($this->filters) and count($this->filters)): ?>
    <form action="<?php echo esc_url($action); ?>" class="lsd-search-form">
        <?php
            $HTML = '';
            foreach($this->filters as $row) $HTML .= $this->row($row);

            // Display Criteria
            if($criteria) $HTML .= $this->criteria();

            // Print the Search Form
            echo apply_filters('lsd_search_form_html', $HTML);
        ?>
    </form>
    <?php else: ?>
    <?php echo (current_user_can('administrator') ? $this->alert(sprintf(esc_html__("No filter specified for this search form. You can add some using %s.", 'listdom'), '<a href="'.get_edit_post_link($this->id).'">'.esc_html__('search builder', 'listdom').'</a>')) : ''); ?>
    <?php endif; ?>

</div>