public function taxonomy($taxonomyslug)
    {
        $templates = [];

        // First candidate: defined specifically in the taxonomy
        if ($template = $this->config->get('taxonomy/' . $taxonomyslug . '/listing_template')) {
            $templates[] = $template;
        }

        // Second candidate: Theme-specific config.yml file.
        if ($template = $this->config->get('theme/listing_template')) {
            $templates[] = $template;
        }

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

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

        // First candidate: defined specifically in the taxonomy
        if ($template = $this->config->get('taxonomy/' . $taxonomyslug . '/listing_template')) {
            $templates[] = $template;
        }

        // Second candidate: Theme-specific config.yml file.
        if ($template = $this->config->get('theme/listing_template')) {
            $templates[] = $template;
        }

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

        return $templates;
    }
public function taxonomy ( $ taxonomyslug ) { $ templates = [ ] ; // First candidate: defined specifically in the taxonomy if ( $ template = $ this -> config -> get ( 'taxonomy/' . $ taxonomyslug . '/listing_template' ) ) { $ templates [ ] = $ template ; } // Second candidate: Theme-specific config.yml file. if ( $ template = $ this -> config -> get ( 'theme/listing_template' ) ) { $ templates [ ] = $ template ; } // Third candidate: Global config.yml $ templates [ ] = $ this -> config -> get ( 'general/listing_template' ) ; return $ templates ; }
Select a template for taxonomy.

@param string $taxonomyslug

@return string[]
Select a template for taxonomy .