[WordPress] 外掛分享: Woo Track list and Sample Player

首頁外掛目錄 › Woo Track list and Sample Player
WordPress 外掛 Woo Track list and Sample Player 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
2625 天前
最後更新
問題解決
WordPress 4.0+ v1.0.2 上架:2015-11-16

內容簡介

在 WooCommerce 產品頁面的簡短描述中新增專輯的曲目列表。
本外掛還會嘗試尋找曲目的樣本版本,並顯示樣本的音訊播放器。如果找不到樣本,則僅顯示曲目標題。

用法

啟用外掛後,您的專輯產品簡短描述將會更新為曲目列表。
如果您希望顯示一個可以播放曲目樣本的音訊播放器,請上傳一個名稱以「sample-」為前綴的樣本曲目。例如,如果您有一個名為「WooHoo.mp3」的檔案,則請建立並上傳一個名為「sample-WooHoo.mp3」的檔案到媒體庫中。
本外掛無法創建樣本。我建議使用 Sound eXchange (SoX)(網址:http://sox.sourceforge.net/)。
在 Linux 上,我使用以下指令

for i in *.mp3 ;
do sox “$i” “sample-basename "$i"” trim 10 30 fade h 1 0 1 ;
done

來將某個資料夾中的所有 mp3 檔案轉換為樣本檔案(從該資料夾執行該指令)。在此範例中,樣本將從曲目的第 10 秒開始播放,持續播放 30 秒,並以 1 秒的淡入淡出方式開始和結束。
SoX 中的下載包含一個適用於 Windows 的類似範例。
SoX 有多種選項,我建議閱讀文件,以充分發揮其功能。

如果您同時銷售實體和虛擬版本的專輯,則可按照命名規則在實體版本的簡短描述中添加曲目列表和樣本音訊播放器。如果您的專輯名稱為「The best of WooHoo」,則建立產品標題為「The best of WooHoo - 數位下載」和「The best of WooHoo - CD 實體版本」。
可以通過編輯 woo-tlasp.php 頂部的全局變數來更改文件命名規則。沒有選項畫面。
可以通過修改 css/woo-tlasp.css 檔案或覆蓋主題樣式表中的樣式來更改音訊檔案樣本圖示風格。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Woo Track list and Sample Player」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Adds the track list for an album on the WooCommerce products page to the short description.
It will also attempt to discover a sample version of the track and display an audio player for the sample. If no sample is found then just the track title is displayed.
Usage
Once the plugin is activated then the short descriptions of your album products will be updated with the list of tracks.
If you wish to display an audio player that will play a sample of the track, then upload a sample track with the name of the track prefixed with ‘sample-‘. For example if you have a file named ‘WooHoo.mp3’ then create and upload a file call ‘sample-WooHoo.mp3’ in the Media Library.
Creating the samples is not possible with this plugin. I recommend the use of Sound eXchange (SoX) at http://sox.sourceforge.net/
On Linux I use the script
for i in *.mp3 ;
do sox “$i” “sample-basename "$i"” trim 10 30 fade h 1 0 1 ;
done
to convert a whole folders worth of mp3 files to sample files (run the script from the folder). In this example the sample will start 10 seconds into the track, play for 30 seconds, and will fade in and out for 1 second.
The SoX download contains a similar example for Windows.
SoX has a multitude of options and I suggest reading the documentation to get the most out of it.
If you sell both hard copies and virtual versions of your albums, then the track list and sample audio player can be added to the short description of the hard copy provided you follow the naming convention. If your album is ‘The best of WooHoo’ then create products titled ‘The best of WooHoo – Digital Download’ and ‘The best of WooHoo – CD Hardcopy’.
These file naming conventions can be changed by editing the global variables at the top of woo-tlasp.php. There is no options screen.
The audio file sample icon style can be changed by modifying css file css/woo-tlasp.css or overriding the styles in your theme stylesheet.

延伸相關外掛

文章
Filter
Mastodon