[WordPress] 外掛分享: Bg Playlist

首頁外掛目錄 › Bg Playlist
60+
安裝啟用
尚無評分
1158 天前
最後更新
問題解決
WordPress 3.0.1+ PHP 7.4+ v1.5.6 上架:2018-01-22

內容簡介

osing shortcode [audiodisk src ="https://sitename.com/path/playlist.m3u" /] with the option to set the playlist source file.

這個外掛可以創建播放列表,使用文章中的 mp3、m4a、ogg 和 wav 音頻文件的連結。這裡使用下列的標籤屬性:<a>:

<a class="wpaudio" href="https://sitename.com/path/filename.mp3" title="曲目標題" alt="曲目描述" data-artist="藝術家名稱" data-album="專輯標題" data-length="123">曲目标题</a>

class="wpaudio" — 音頻文件的連結的類名。默認值為 wpaudio,但可以在外掛設置中更改。
href="https://sitename.com/path/filename.mp3" — 音頻文件的 URL 地址。相對路徑也可以被允許(默認相對於站點根目錄)。
title="曲目標題" — 曲目標題,顯示在播放器標題三的位置。如果此字段為空,則接受鏈接文本。如果連結文本也為空,則曲目標題和曲目標題為文件名 filename.mp3。
alt="曲目描述" — 曲目描述。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Bg Playlist」→ 直接安裝(推薦)

原文外掛簡介

Plugin creates playlist, using links to audio files mp3 | m4a | ogg | wav in the posts of your site. The following tag attributes are used: :
Track caption

class="wpaudio" – class name of the link to the audio file. By default: wpaudio. Can be changed in plugin settings.
href="https://sitename.com/path/filename.mp3" – audio file URL. Relative path is allowed (by default relative to the site root).
title="Track title" – the track title – displayed in the player header. If is empty, the link text is accepted. If link text is also empty, then track title and track caption is filename filename.mp3.
alt="Track discription" – track discription.
data-artist="Artist name" – artist name.
data-album="Album title" – album title. If the album title is not set in this tag, then the album title is the post title.
data-length="123" – track length in seconds.
Track caption - link text – track caption. If link text is not specified, then the title — artist name is displayed instead.

In the link text is allowed to use the html-tags: , , , , , , , , , .
If the first character of the link text is #, then link text is ignored in player, and the title — artist name is displayed instead.
To set track image paste it into the link text:
Track title

In automatic mode (default is off), the plug-in parse the post contents and instead of the text that located between the first and last audio links, inserts the standard WP player with playlist that included of the found audio links.
If for a post to create an custom field single_audio with any value other than an empty string, then each link will be treated as a separate playlist with a single track.
Enclosing shortcode [audiodisk] ... [/audiodisk] allows you to reduce the range of search for links on the page to text located inside the shortcode tags. This gives you more flexibility to edit posts, allows you to create multiple playlists on single page.
Self-closing shortcode [audiodisk src ="https://sitename.com/path/playlist.m3u" /] allows you to insert a player with a pre-configured playlist,
there is src – link to the playlist file in the formats m3u or pls. You can set relative path to the file.
The plugin adds “Downoad” button for each track in the standard WP player.
You can disable playlist looping with same named option.
In TinyMCE Editor added three buttons: “Insert audiolink”, “Insert audiodisk” and “Insert playlist”.
“Insert audiolink” allows insert tag with all attributes.
“Insert audiodisk” inserts enclosing shortcode [audiodisk] ... [/audiodisk] around selected text.
The same button “Аudiodisk” available in editor text mode too.
“Insert playlist” inserts self-closing shortcode [audiodisk src ="https://sitename.com/path/playlist.m3u" /].
Plugin will added automaticly attribute data-length in link while post saving. It’s works if audiofile placed on the same site only.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon