public function search()
    {
        $templates = [];

        // First candidate: specific search setting in global config.
        if ($template = $this->config->get('theme/search_results_template')) {
            $templates[] = $template;
        }

        // Second candidate: specific search setting in global config.
        if ($template = $this->config->get('general/search_results_template')) {
            $templates[] = $template;
        }

        // Third candidate: listing config setting.
        $templates[] = $this->config->get('general/listing_template');

        return $templates;
    }
public function search()
    {
        $templates = [];

        // First candidate: specific search setting in global config.
        if ($template = $this->config->get('theme/search_results_template')) {
            $templates[] = $template;
        }

        // Second candidate: specific search setting in global config.
        if ($template = $this->config->get('general/search_results_template')) {
            $templates[] = $template;
        }

        // Third candidate: listing config setting.
        $templates[] = $this->config->get('general/listing_template');

        return $templates;
    }
public function search ( ) { $ templates = [ ] ; // First candidate: specific search setting in global config. if ( $ template = $ this -> config -> get ( 'theme/search_results_template' ) ) { $ templates [ ] = $ template ; } // Second candidate: specific search setting in global config. if ( $ template = $ this -> config -> get ( 'general/search_results_template' ) ) { $ templates [ ] = $ template ; } // Third candidate: listing config setting. $ templates [ ] = $ this -> config -> get ( 'general/listing_template' ) ; return $ templates ; }
Select a search template.

@return string[]
Select a search template .