API / Minn\Blocks\Dynamic

Minn\Blocks\Dynamic

Dynamic core blocks that render from data. 8 classes, 9 public methods and 4 internals. This page is the public surface; each class name opens the whole class.

Archives final readonly class

public/minn/src/Minn/Blocks/Dynamic/Archives.php · 29 lines · Open the class →

core/archives: the months that have published posts, newest first, with their counts when asked (showPostCounts).

Dates final class

public/minn/src/Minn/Blocks/Dynamic/Dates.php · 15 lines · Open the class →

Site-local dates the way the dynamic blocks print them.

staticiso(Minn\Content\Site $site, string $local): string

ISO 8601 with the site's offset at that date (summer or winter time), from a site-local MySQL datetime.

staticformat(Minn\Content\Site $site, string $local, string $format = ''): string

A site-local MySQL datetime in the format given, else the date_format option, in the site's language.

LatestComments final readonly class

public/minn/src/Minn/Blocks/Dynamic/LatestComments.php · 71 lines · Open the class →

core/latest-comments: the newest approved comments with avatar, meta, and a 20-word excerpt.

LatestPosts final readonly class

public/minn/src/Minn/Blocks/Dynamic/LatestPosts.php · 34 lines · Open the class →

core/latest-posts: the newest published posts as a list, optionally dated.

SyncedPattern final readonly class

public/minn/src/Minn/Blocks/Dynamic/SyncedPattern.php · 26 lines · Open the class →

core/block: a synced pattern, rendered from the wp_block post it references.

TagCloud final readonly class

public/minn/src/Minn/Blocks/Dynamic/TagCloud.php · 36 lines · Open the class →

core/tag-cloud: non-empty tags by name, sized from 8pt to 22pt in proportion to their counts (every tag at 8pt when the counts are equal).