[WordPress] 外掛分享: embed-githubin

WordPress 外掛 embed-githubin 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「embed-githubin」是 2019-06-04 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2022-12-07,距離現在已有 878 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.7.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

lrdb |

外掛標籤

embed | Github | github embed |

內容簡介

這個外掛創建了一個簡碼,用於嵌入 GitHub 文件、存儲庫、自述文件或文件夾。

簡碼格式如下(大多數設置都是可選的):

[github_box url=”在這裡放置 GitHub URL” border=”radius” style=”box” x=”300″ y=”300″ fgcolor=”#333″ bgcolor=”#fafafa” disable_images=”false”]

…………………………。
…………………………。

變量:

url=”在這裡放置 GitHub URL”

這裡可以放置 GitHub 用戶 URL、存儲庫 URL、自述文件 URL 或文件 URL。
它們會以不同的方式處理;用戶 URL 將顯示其存儲庫;
存儲庫 URL 將顯示其主文件,自述文件和文件將顯示其內容。

border=”radius” OR border=”true”

如果使用這些選項之一,將創建與內容相關的邊框。

style=”box”

它將創建一個具有內容的可滾動框。

x=”300″ y=”300″

這些選項是框的尺寸大小。

fgcolor=”#333″ bgcolor=”#fafafa”

設定文字顏色和背景顏色

disable_images=”true”

從內容中刪除所有圖像

disable_fav=”true”

從用戶的存儲庫中刪除 fav 段落

id=”IDNAME”

創建內容的緩存文件。強烈建議使用此設置。
但請記住:如果稍後更改簡碼的屬性,它不會更新
直到缓存时间过去或除非您删除了缓存文件(在插件目录中)。

cachetime=”10800″

在重新構建緩存文件之前等待的秒數(默認值為 10800 秒=3 小時)

原文外掛簡介

This plugin creates a shortcode for embedding github files, repositories, readmes or folders.
The shortcode format is (most settings are optional):

[github_box url=”PUT_GITHUB_URL_HERE” border=”radius” style=”box” x=”300″ y=”300″ fgcolor=”#333″ bgcolor=”#fafafa” disable_images=”false”]

………………………….
………………………….
The variables:

url=”PUT_GITHUB_URL_HERE”

Here you can put either a github user url, a repository url, a readme url or a file url.
They are threated in different ways; user url will show its repositories;
repository url will show its main files, readme and files will show its contents.

border=”radius” OR border=”true”

If we use one of this options will create a border with the content.

style=”box”

It will create a scrollable box with the content

x=”300″ y=”300″

Those options are the dimensions of the box

fgcolor=”#333″ bgcolor=”#fafafa”

Set the text color and background color

disable_images=”true”

Remove all images from the content

disable_fav=”true”

Remove the fav parragraphs from an user repositories

id=”IDNAME”

Creates a cached file of the content. This setting is very recomended to use.
But remember: if you change later the attributes of the shortcode it won’t update
until the cachetime has passed or unless you delete the cached file (in plugin’s directory).

cachetime=”10800″

Number of seconds before it rebuilds the cache file (default is 10800seconds=3hours)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「embed-githubin」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon