FeedTags final class
Minn\Front\FeedTags · public/minn/src/Minn/Front/FeedTags.php · 137 lines
The template tags a feed is written with that take more than a line, as the reference answers them in a feed's loop (probe feed-tags): a post's categories and tags in each feed's markup, its enclosures for RSS and Atom, the link to its comments feed, the feed's build date, and the site icon a feed carries.
Public
| static | categories(string $type): string# | A post's category and tag names (each once) in a feed type's markup, before the_category_rss. |
| static | rssEnclosures(): string# | The current post's enclosures as RSS has them: address, length, and the type the third line starts with. |
| static | atomEnclosures(): string# | The current post's enclosures as Atom links: the length a line that is a number, the type a line that is a known MIME type. |
| static | postCommentsFeedLink(int $postId, string $feed): string# | The address of a post's comments feed in a feed type (the default one bare), through post_comments_feed_link. |
| static | buildDate(string $format): string# | When the feed last changed, in a format: the newest of its posts' modifications (and comments, for a comments feed); once the loop has run out, the site's last modification; failing both, now. |
| static | rss2Icon(): string# | The site icon as an RSS 2.0 image (titled with the feed's title), or '' without one. |
| static | atomIcon(): string# | The site icon as an Atom icon, or '' without one. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | enclosures(): array# | @return list<list<string>> the current post's enclosures, each as its lines, unless its password is wanted |
Nothing matches.