[WordPress] 外掛分享: YouTubeR by Maxio lab.

首頁外掛目錄 › YouTubeR by Maxio lab.
WordPress 外掛 YouTubeR by Maxio lab. 的封面圖片
10+
安裝啟用
★★★☆☆
3.7/5 分(3 則評價)
3520 天前
最後更新
問題解決
WordPress 4.3.0+ v1.0.5 上架:2015-10-19

內容簡介

此外掛可讓您從網站上傳影片至 YouTube 並將 YouTube 影片嵌入到您的網站中。如果您在 WordPress 網站上發佈影片,您不需要前往 YouTube 網站,您可以直接從網站管理面板上傳影片到 YouTube。而且您還可以使用美觀的視覺介面將 YouTube 影片嵌入到您的網站中。

簡碼

影片簡碼將顯示帶有影片資訊的單一影片。
您只需要視頻 ID 就可以使用它,在一般的 YouTube 網址中查找它:

在此情況下,視頻 ID 為 oxgnlSbYLSc,簡碼為:
[mx_youtuber id=”視頻 ID”]

簡碼參數

參數 可能值 描述
id – YouTube 視頻 ID。
display title,date,channel,description,meta 要顯示的視頻部分的元素的密鑰,以逗號分隔,設置為 none 僅顯示視頻縮略圖。
mode 光箱 / 嵌入 / 連結 視頻的嵌入類型。
theme 請查看主題部分。 將應用的模板。
size 預設 / 中等 / 高 / 標準 視頻縮略圖的大小。
width 數字 視頻的寬度(可以以%表示)。僅在嵌入模式下有效。
height 數字 視頻的高度(可以以%表示)。僅在嵌入模式下有效。
max_words 數字 限制顯示在視頻描述中的最大單字數。

主題

YouTubeR 帶有一些相當酷的模板,目前的選項:預設、深色。
您可以為 YouTubeR 創建自己的自訂主題,例如將參數主題設置為自訂。
[mx_youtuber theme=”custom”]
然後您可以使用基本類別 mxYouTubeR_theme_custom 為畫廊添加自己的樣式。
如果您需要自定義/覆蓋模板的代碼,您可以在您網站的主題內創建一個名為 mxyoutuber 的文件夾,然後再創建一個名為您想要的主題的文件夾,例如自訂主題。
將插件文件夾中的 themes/default 中的原始文件複製到 mxyoutuber/custom 中,您只需要複製要自定義的文件。
當搜索自定義模板文件時,插件的邏輯如下:
1. 插件將查找網站主題文件夾中的文件。
2. 插件會在插件文件夾中查找文件。
3. 插件將加載默認主題文件。

外掛標籤

開發者團隊

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

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

原文外掛簡介

The plugin allows you to upload your videos on YouTube from your website and embed YouTube videos to your website. If you posting your videos on your WordPress site you don’t neet to go to YouTube website, you can upload your videos directly on YouTube from your website admin panel. And also you can embed YouTube videos to your website with nice visual interface.
Shortcode
The video shortcode will display a single video with it’s info.
To use it you just need the Video ID, to find it just check a normal YouTube url:

In this case the Video ID is oxgnlSbYLSc, and the shortcode is:
[mx_youtuber id=”Video ID”]
Shortcode parameters
Parameter Possible values Description
id – YouTube video ID
display title,date,channel,description,meta Keys of elements sepparated by commas of the parts of the video to show, set to none to only display the video thumbnail
mode lightbox / embed / link Type of embeding the video
theme Check the themes section The template which will be applied
size default / medium / high / standard The size of the video thumbnail
width number The width of the video (can be in %). Valid only in embed mode
height number The height of the video (can be in %). Valid only in embed mode
max_words number Limit the maximum number of words to show in the video description
Themes
YouTubeR comes with some pretty cool templates, this are the current options: default, dark.
You can create your own custom theme for YouTubeR, to do so let’s say you set the parameter theme to custom.
[mx_youtuber theme=”custom”]
Then you can add your own styles to the gallery with the base class mxYouTubeR_theme_custom.
If you need to customize/overwrite the code of the template you can create a folder inside your website theme with the name mxyoutuber and another folder inside it with the name of the theme you want, in this case custom.
Copy the original files from themes/default inside the plugin’s folder into the mxyoutuber/custom inside your website theme, you just need to copy the files you want to customize.
The logic of the plugin when searching for a file of the template custom template is as it follows:
1. The plugin will look for the file inside the website theme folder
2. The plugin will look for the file inside the plugin folder
3. The plugin will load the default theme file

延伸相關外掛

文章
Filter
Mastodon