內容簡介
Files Download Delay 外掛可以使用自定義佈局將文件下載鏈接包裝起來,您可以展示任何內容。例如,在用戶等待下載時,您可以展示電子郵件訂閱表單、反饋表單、相關內容甚至廣告。
根據條件(文件擴展名、元素類別)或使用短碼 [fddwrap]<a href="path/to/file.pdf">Download</a>[/fddwrap],可以自動包裝下載鏈接。
您可以輕鬆自定義的功能有:
* 下載發生前的延遲時間 (秒),
* 在倒數計時期間以及計時器結束時顯示給用戶的文本字段和 HTML 內容,
* 下載失敗時的內容(例如文件丟失),
* 佈局外觀(陰影、彎曲邊緣、顏色等),
* 自動包裝選項(自定義文件擴展名列表和/或元素的類別)
適用於任何類型的內容,包括文檔(xlsx,docx,pdf,...),媒體(wav,mp3,mp4,...)或存檔(zip,rar,tar.gz,...)-沒有限制。
使用方法如下:
安裝插件,並前往設置
在顯示設置部分,替換內置消息以顯示給您的用戶任何您想展示的內容
在對應部分啟用自動包裝切換,或在 Gutenberg 編輯器中啟用計時器(查看“文件”塊的設置),或使用此短碼包裝下載鏈接:[fddwrap]link here[/fddwrap]。
打開已編輯的文章,並點擊文件下載鏈接
此時,您應該能夠在剛剛點擊的下載鏈接下看到倒數計時器
外掛標籤
開發者團隊
原文外掛簡介
Files Download Delay plugin wraps file download links with customizable layout which allows you to show any kind of content. For example, while users are waiting for download, you can show them email subscription form, feedback form, related content or even ads.
Download links can be wrapped automatically based on conditions (file extension, element class) or manually using the shortcode [fddwrap]Download[/fddwrap].
Features which you can easily customize:
* delay time in seconds before download happens,
* text fields and html content shown to user during countdown and when timer is finished,
* content when download is failed (e.g., when file is missing)
* layout appearance (shadow, curved edges, colors, etc.)
* auto-wrap options (custom list of file extensions or/and element’s class)
Suitable to wrap any type of content including documents (xlsx, docx, pdf,…), media (wav, mp3, mp4,…) or archives (zip, rar, tar.gz,…) – no limits here.
How to use:
Install the plugin and go to the settings
In the section Display settings replace built-in messages to any content you wish to show to your users
Enable auto-wrap toggle in the corresponding section, or enable timer in the Gutenberg editor (see block’s settings for “File” block) or wrap a download link using this shortcode [fddwrap]link here[/fddwrap].
Open just edited article and click on the file download link
At this point should be able to see a countdown timer under the download link you just clicked
