source/php/Options/Archives.php
public static function getArchiveTemplateSlugs()
    {
        $archives = get_post_types(array(
            'has_archive' => true
        ), 'names');

        $templates = array();

        foreach ($archives as $archive) {
            $template = \Modularity\Helper\Wp::findCoreTemplates(array(
                'archive-' . $archive
            ));

            if ($template) {
                $templates[] = $template;
            } else {
                $templates[] = 'archive';
            }
        }

        array_unique($templates);
        return $templates;
    }
public static function getArchiveTemplateSlugs()
    {
        $archives = get_post_types(array(
            'has_archive' => true
        ), 'names');

        $templates = array();

        foreach ($archives as $archive) {
            $template = \Modularity\Helper\Wp::findCoreTemplates(array(
                'archive-' . $archive
            ));

            if ($template) {
                $templates[] = $template;
            } else {
                $templates[] = 'archive';
            }
        }

        array_unique($templates);
        return $templates;
    }
public static function getArchiveTemplateSlugs ( ) { $ archives = get_post_types ( array ( 'has_archive' => true ) , 'names' ) ; $ templates = array ( ) ; foreach ( $ archives as $ archive ) { $ template = \ Modularity \ Helper \ Wp :: findCoreTemplates ( array ( 'archive-' . $ archive ) ) ; if ( $ template ) { $ templates [ ] = $ template ; } else { $ templates [ ] = 'archive' ; } } array_unique ( $ templates ) ; return $ templates ; }
Get list of currently available archives slugs that has a template
@return array
Get list of currently available archives slugs that has a template