[WordPress] 外掛分享: hearthis.at

首頁外掛目錄 › hearthis.at
100+
安裝啟用
★★★☆☆
3.7/5 分(6 則評價)
37 天前
最後更新
問題解決
WordPress 3.1+ v1.0.3 上架:2013-10-25

內容簡介

earthis theme="transparent_black" background="1" cover="1"]https://hearthis.at/LINK_TO_TRACK_SET_OR_ARTIST/[/hearthis]

這個 hearthis.at 外掛允許您透過使用 WordPress 短代碼將聽聲音網站的播放器小工具整合到您的 WordPress 博客中。
這是它的使用方式:
[hearthis]https://hearthis.at/LINK_TO_TRACK_SET_OR_ARTIST/[/hearthis]

這些短代碼還支援多個可選參數。這些參數將把給定值作為選項傳遞到播放器小工具中。
目前hearthis短代碼接受以下參數和選項:

width 定義小工具的寬度(數字,如果小於等於100則是百分比,否則就是像素。默認是100)
height 定義小工具的高度(整數值或留空以使用默認設置)
如果此值小於100,則作為百分比傳遞;如果大於100,則作為像素傳遞
theme 您可以在透明(default)和帶有黑色透明度的選項之間進行選擇
hcolor 按鈕和waveform已播放時間的顏色(沒有設置或帶或不帶 # 的十六進位顏色)
color waveform的高亮顏色(沒有設置或帶或不帶 # 的十六進位顏色)
style style ‘1’ 是預設waveform,value ‘2’ 是數字化waveform
background 如果設置則顯示背景(值未設置,1或0,如果是1,高度為170px)
waveform 如果設置為 ‘1’,則隱藏波形,將曲目高度設定為95px(值0關閉,值1開啟)
autoplay 自動播放(值0關閉,值1開啟)
cover 如果設置了就隱藏封面圖像(值0關閉,值1開啟)
block_size Waveform塊的大小(數字,從1到10的步驟,默認值為2,僅在樣式設為2時有效)
block_space waveform塊之間的空間大小(整數,從1到10的步驟,默認為1,僅在樣式設為2時有效)
liststyle 只在播放清單或個人資料網址上可用,如果提供值 ‘single’,則會將列表顯示為單個曲目。如果您輸入了一個hearthis.at的個人資料網址,則此列表限制為50個曲目。
css 字符串,應包含一個有效的URI,用於加載額外的CSS文件,類似鏈接標籤

重要提示

此版本現在穩定,並為一些舊hearthis短代碼參數提供了回退功能。
因此,這些參數也可以使用,因為它們會被傳遞到它們的新名稱中。

color2 hcolor屬性的舊名稱
params 带有命名值的参数字符串
digitized_size waveform塊尺寸的舊名字(請參見block_size)
digitized_space waveform塊空間的舊名字(請參見block_space)

範例

嵌入不帶任何參數的單個曲目。
[hearthis]https://hearthis.at/shawne/shawne-pornbass-12-06042013-2300-0200-uhr/[/hearthis]

嵌入不帶任何參數的播放清單或設置清單。
[hearthis]https://hearthis.at/crecs/set/tbase-feat-charlotte-haining-oscar-michael-unspoken-words-ep/[/hearthis]

嵌入具有藍色高亮顏色的用戶資料。
[hearthis hcolor=”0000ff”]https://hearthis.at/crecs/[/hearthis]

嵌入未帶有顏色參數和自動啟動的用戶資料。
[hearthis hcolor=”#ff5c24″ color=”#33fd11″ autostart=”1″]http://hearthis.at/djforce/[/hearthis]

使用黑色主題和背景圖像(如果設置),隱藏封面圖像的方式嵌入曲目。
[hearthis theme="transparent_black" background="1" cover="1"]https://hearthis.at/LINK_TO_TRACK_SET_OR_ARTIST/[/hearthis]

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「hearthis.at」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The hearthis.at plugin allows you to integrate a player widget from hearthis.at into your WordPress Blog by using a WordPress shortcodes.
this is how it works:
[hearthis]https://hearthis.at/LINK_TO_TRACK_SET_OR_ARTIST/[/hearthis]
These Shortcodes do also supports several optional parameters. These parameters will pass its given value as option on to the player widget.
At the moment the hearthis Shortcode accepts the following parameter and options:

width define the width of the widget (number value and if <= 100 means in % and above 100 is in pixels. default is 100) height define the height of the widget (integer value or empty for default ) if this value is less 100 it will passed as percent if it is higher than 100 it will parsed as pixels theme you can choose between these 2 options transparent (default) or transparent_black hcolor button and passed time color for the waveform (not set or a hex color with or without a prepending #) color highlight color for the waveform (not set or a hex color with or without a prepending #) style style ‘1’ is default waveform and value ‘2’ is the digitized waveform background shows the background if set (values not set, 1 or 0, if is 1 the height is 170px) waveform hides the waveform if you set to ‘1’, change track height fixed to 95px (values 0 off, 1 on) cover hides the cover image if its set (values 0 off, 1 on) block_size size of the waveform blocks (number, steps from 1 to 10, default is 2, works only if style is set to 2) block_space space size between the waveform blocks (integer, steps from 1 to 10, default is 1, works only if style is set to 2) liststyle only available on playlists or profile urls, this will display a list as single tracks but works only if you provide value ‘single’. If you enter a profile uri from hearthis.at this listing is limited by 50 tracks. css string, should contain a valid uri that will load an additional css file link the link tag IMPORTANT NOTE This Version is now stable and provides also a fallback for some old hearthis Shortcode params. So these params could also being used because they will passed to the their new names. color2 the old name of the hcolor property params a params string with the namend values digitized_size old name of the waveform block size (see block_size) digitized_space old name of the waveform block space (see block_space) Examples Embed a single track without any params. [hearthis]https://hearthis.at/shawne/shawne-pornbass-12-06042013-2300-0200-uhr/[/hearthis] Embed a playlist or setlist without params. [hearthis]https://hearthis.at/crecs/set/tbase-feat-charlotte-haining-oscar-michael-unspoken-words-ep/[/hearthis] Embed a user profile with a blue hightlight color. [hearthis hcolor=”0000ff”]https://hearthis.at/crecs/[/hearthis] Embed a user without color params. [hearthis hcolor=”#ff5c24″ color=”#33fd11″]http://hearthis.at/djforce/[/hearthis] Embeds a track with a black theme and a background image (if set) and hides the cover. [hearthis theme=”transparent” background=”1″ cover=”1″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis] Embeds a track player with 50% width and a green button color. [hearthis width=”50″ color=”#33fd11″]https://hearthis.at/crec/maverick-krl-c-recordings-guestmix/[/hearthis] Embeds a track player with 500px width and hides the waveform and has the transparent_black theme. Remember this will change track height to 95 pixels. [hearthis width=”500″ waveform=”1″ params=”color2=00ff00&theme=transparent_black”]https://hearthis.at/djforce/dj-force-is-breaking-the-habit-electrobreaks-bass-dubstep-mix-052014/[/hearthis] Embeds a playlist or set with 400px height. [hearthis height=”400″]https://hearthis.at/set/51-7/[/hearthis] This is not a real option, its more like a hook and works only with playlists or profile urls. So if you want to display a playlist or user profile as single tracks and not as a list you can set this option. For users we limited this by 50 tracks. Does only take effect if the value single is inside the liststyle tag. [hearthis liststyle=”single”]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis] special thanks and credits hearthis.at – music is our passion thx for using and supporting hearthis.at

文章
Filter
Apply Filters
Mastodon