FeedTags final class
Minn\Front\FeedTags · public/minn/src/Minn/Front/FeedTags.php · 197 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; and the small ones: the site's default feed, a feed's content type and a post's title for a feed.
Uses 25 (show)
Public
| static | wpTitleRss(mixed $deprecated = '–'): mixed# | The page's document title as a feed's title (get_wp_title_rss), as get_wp_title_rss leaves it. |
| static | contentFeed(mixed $feedType = NULL): mixed# | The content of the post being read, rendered for a feed item (get_the_content_feed): CDATA's close escaped, then the_content_feed. |
| static | serve(): void# | The feed the query asks for run by its do_feed_{feed} handlers (do_feed): leading underscores dropped, the default for none; a 404 when nothing handles it. |
| static | defaultFeed(): mixed# | The feed the site serves by default (get_default_feed): default_feed's, "rss" read as rss2. |
| static | contentType(mixed $type = ''): mixed# | The content type a feed is served as (feed_content_type), the default feed's when none is named. |
| static | titleRss(mixed $post = 0): mixed# | A post's title for a feed (get_the_title_rss), as the_title_rss leaves it. |
| 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.