API / Minn\Front / Sitemaps

Sitemaps final class

Minn\Front\Sitemaps · public/minn/src/Minn/Front/Sitemaps.php · 34 lines

What the sitemaps share with WP_Sitemaps, which serves them: the two stylesheets browsers get when they open a sitemap, their CSS (wp_sitemaps_stylesheet_css filters it), and the date form an entry's lastmod takes.

Constants and properties

constCSS = 'body{font:15px/1.5 sans-serif;margin:2em}table{border-collapse:collapse}td{padding:.35em 1em .35em 0;border-bottom:1px solid #ddd}'

The stylesheets' own CSS (wp_sitemaps_stylesheet_css filters it when plugins are loaded).

Public

staticstylesheet(string $css = self::CSS): string#

The engine's own stylesheet for browsers that open a sitemap.

staticindexStylesheet(string $css = self::CSS): string#

The stylesheet the sitemap index links: one column, the sitemaps.

staticw3c(string $gmt): string#

A GMT date as a sitemap dates it (W3C, UTC).

Internals 1

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privatexsl(string $css, string $rows): string#