
內容簡介
The Spreaker shortcode外掛是將Spreaker音訊播放器嵌入WordPress博客的簡單方法,適用於任何Spreaker的集數、節目或使用者。安裝此外掛後,它將適用於您的所有博客文章。
簡單的示例:
[spreaker type=player resource="episode_id=3331356"]
更多選項:
Spreaker shortcode需要play資源,只能是以下之一:
- resource="episode_id=X":嵌入的集數id。
- resource="show_id=X":將顯示最新集數的節目id。
- resource="show_key=X":嵌入的私人節目金鑰。
- resource="user_id=X":將顯示最新集數的使用者id。
此外掛還支援以下可選參數:
- width:播放器的寬度 - 可以是%或px(例如100%或400px)。
- height:播放器的高度 - 可以是%或px(例如100%或400px)。
- theme:播放器的UI主題。支援的主題有:light(默認)和dark。
- color:播放器的主要顏色。支援的色彩格式有短和長的十六進位值(如:F00或FF0000)。此功能需要播客作者訂閱Station方案或以上方案。
- cover:以HTTPS格式顯示為播放器背景的圖片的URL。
- playlist:配置播放清單應如何構建。可以使用“playlist =“false””禁用播放清單,“playlist =“user””顯示所有使用者的集數或“playlist =“show””顯示所有節目的集數。默認行為取決於資源。只有當播放器高度大於200px時,播放清單才可見。
- playlist-continuous:啟用或禁用播放清單連續播放。當為true時,它會連續播放播放清單中的所有集數,直到結束。
- playlist-loop:啟用或禁用連續播放時循環播放清單。當啟用播放清單連續播放時為true,它將持續播放播放清單(默認為false)。
- playlist-autoupdate:啟用或禁用新集數發布時的播放清單自動更新。此功能默認啟用。
- chapters-image:啟用或禁用播放器中條目圖像的顯示(默認為true)。
- episode-image-position:當為right或left時,在右側或左側顯示條目圖像(默認為right)。
- hide-likes:當為true時,播放器中不顯示“喜歡”按鈕(默認為false)。
- hide-comments:當為true時,播放器中不顯示“評論”按鈕(默認為false)。
- hide-sharing:當為true時,播放器中不顯示“分享”按鈕(默認為false)。
- hide-logo:當為true時,播放器中不顯示Spreaker標誌(默認為false)。此功能需要播客作者訂閱Broadcaster方案或以上方案。
- hide-episode-description:當為true時,不顯示打開當前集數說明的按鈕(默認為true)。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The Spreaker shortcode plugin is an easy way to embed Spreaker audio player into your WordPress blog. It works for any Spreaker episode, show, or user. Once you install this plugin, it will work on all of your blog posts.
A simple example:
[spreaker type=player resource="episode_id=3331356"]
More Options
Spreaker shortcode requires the resource play. It can be only of the following:
resource="episode_id=X": id of the episode to embed.
resource="show_id=X": id of the show, whose latest episode should be displayed.
resource="show_key=X": private key of the show to embed.
The plugin also supports the following optional parameters:
width: player’s width – can be in % or px (ie. 100% or 400px).
height: player’s height – can be in % or px (ie. 100% or 400px).
theme: player’s UI theme. Supported themes are: light (default) and dark.
color: player’s main color. Supported fromats are short and long hex values (ie: F00 or FF0000). This feature requires the podcast author to subscribe to Station plan or above.
cover: HTTPS url of an image to display as player’s background.
playlist: configures how the playlist should be built. It can be playlist="false" to disable the playlist or playlist="show" to display all show’s episodes in the playlist. The default behavious depends on resource. The playlist is visible only if the player height is greater than 200px.
playlist-continuous: enables or disables the playlist continuous playback. When true it continuously plays all episodes in the playlist until the end.
playlist-loop: enables or disables loop playlist playback when continuous playback is enabled. When true and playlist continuous playback is enabled as well, it will loop the playlist continuously (defaults to false).
playlist-autoupdate: enables or disables the playlist autoupdate, when a new episode is published. This feature is enabled by default.
chapters-image: enables or disables the display of chapters images in the player (defaults to true).
episode-image-position: when right or left shows the episode image on the right or left (defaults to right)
hide-likes: when true the likes button is not displayed in the player (defaults to false)
hide-comments: when true the comments button is not displayed in the player (defaults to false)
hide-sharing: when true the share button is not displayed in the player (defaults to false)
hide-logo: when true the Spreaker logo is not displayed in the player (defaults to false). This feature requires the podcast author to subscribe to Broadcaster plan or above.
hide-episode-description: when true the button to open the description of the current episode is not displayed in the player (defaults to false)
hide-playlist-descriptions: when true the button to open the description of episodes in the playlist is not displayed in the player (defaults to false)
hide-playlist-images: when true the images of episodes in the playlist are not displayed in the player (defaults to false)
hide-download: When true, it hides the episode download button (defaults to true)
How to get the shortcode
Play any track on www.spreaker.com and then click on the share button in the player (bottom-right corner): you can customize the appearance of the player and get the shortcode to copy and paste to your WordPress blog.
Help
If you need further help, please contact us at help.spreaker.com.
