public static function staticPages()
    {
        if (!getConfig('sitemap.static_pages')) {
            return [];
        }

        return array_map(function (Entity $page) {
            return self::parse(['_name' => 'page', $page->slug], ['lastmod' => $page->modified]);
        }, StaticPage::all());
    }
public static function staticPages()
    {
        if (!getConfig('sitemap.static_pages')) {
            return [];
        }

        return array_map(function (Entity $page) {
            return self::parse(['_name' => 'page', $page->slug], ['lastmod' => $page->modified]);
        }, StaticPage::all());
    }
public static function staticPages ( ) { if ( ! getConfig ( 'sitemap.static_pages' ) ) { return [ ] ; } return array_map ( function ( Entity $ page ) { return self :: parse ( [ '_name' => 'page' , $ page -> slug ] , [ 'lastmod' => $ page -> modified ] ) ; } , StaticPage :: all ( ) ) ; }
Returns static pages urls
@return array
@uses MeCms\Utility\SitemapBuilder::parse()
@uses MeCms\Utility\StaticPage::all()
Returns static pages urls