
內容簡介
這個外掛程式新增了簡碼 [plugin_banner],讓你可以輕鬆快速地顯示來自 WordPress.org 儲存庫中指定外掛程式別名的橫幅圖片。
例如,要顯示此外掛程式的橫幅圖片,你可以使用:
[plugin_banner slug=”wp-plugin-banner”]
預設情況下,圖片不會有連結,但如果你將 link=true 加入引數清單中,圖片便具有可點擊性,點擊後即會前往 WordPress.org 外掛程式目錄的該外掛頁面。
圖片狀態和外掛程式名稱都是動態從 WordPress.org API 中提取的,這些數據會被快取一周以提高效能。
支援的屬性列表:
slug - WordPress 外掛程式別名 (在 WordPress.org 外掛程式目錄的 URL 中找到)
link - 是否將圖片連結至 WordPress.org 目錄中的外掛程式。選項:true|false (預設)
title_wrapper - 外掛程式標題要使用哪個 HTML 元素包裹。支援的選項:h2 (預設),h3,h4,h5,em,strong,span,p
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds the shortcode [plugin_banner], so you can quickly and easily display the banner image from the WordPress.org repository for the given plugin slug.
For example, to display the banner image of this plugin you would use:
[plugin_banner slug=”wp-plugin-banner”]
By default images are not linked but if you add link=true into the argument list the image will be clickable and take the visitor the plugin page in the WordPress.org plugin directory.
The image status and plugin title is all pulled dynamically from the WordPress.org API, this data is cached for 1 week to help with performance.
List of supported attributes:
slug – The slug to the WordPress plugin (found in the URL in the WordPress.org plugin directory)
link – If the image should be linked to the plugin in the WordPress.org directory. Options: true|false (default)
title_wrapper – What HTML element to wrap the title of the plugin with. Supported: h2 (default), h3, h4, h5, em, strong, span, p
