API / Minn\Content / Playlist

Playlist final class

Minn\Content\Playlist · public/minn/src/Minn/Content/Playlist.php · 25 lines

The [playlist] shortcode's markup as the reference prints it (probe plugin-queue5): the player for audio (with the current-item box) or for video (with its height), the next and previous controls, a noscript list of links to the files, and the tracks as JSON for wp-playlist; and the two Underscore templates the script draws them with (data/playlist-templates.html).

Public

staticmarkup(string $type, string $style, int $width, int $height, array $links, string $json): string#

The player and its data.

$linkslist<string>one link per track, for the noscript list
$jsonstringthe type, the flags and the tracks, encoded
statictemplates(string $quoted): string#

The two templates, each title wrapped in the quoting format given (its %s takes the title placeholder).