Title: Flair &#8211; Github
Author: m4n0jkum4r
Published: <strong>2021 年 12 月 18 日</strong>
Last modified: 2021 年 12 月 21 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/flair-github/assets/icon-128x128.png?rev=2646058)

# Flair – Github

 由 [m4n0jkum4r](https://profiles.wordpress.org/m4n0jkum4r/) 開發

[下載](https://downloads.wordpress.org/plugin/flair-github.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/flair-github/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/flair-github/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/flair-github/#developers)

 [技術支援](https://wordpress.org/support/plugin/flair-github/)

## 外掛說明

📣 WordPress plugin to show Github profile summary through their API.

⚡️ Demo: [https://manojkumar.online/lab/wp/github-flair-demo/](https://manojkumar.online/lab/wp/github-flair-demo/)

After installing the plugin, just use this shortcode: `[github-flair]` in your posts,
pages or widgets.

You can make use of the user attribute of the shortcode like this:

    ```
    [github-flair user="WordPress"] 
    ```

where WordPress can be replaced by your desired Github username.

By default, the search function is enabled but if you need to remove it, you can
do so with:

    ```
    [github-flair show-search="no"]
    ```

You can also make use of the shortcode in your template files using this

    ```
    <?php echo do_shortcode("[github-flair user='WordPress']") ; ?>
    ```

## 螢幕擷圖

[⌊Horizontal / Desktop layout⌉⌊Horizontal / Desktop layout⌉[

Horizontal / Desktop layout

[⌊Vertical / Mobile layout⌉⌊Vertical / Mobile layout⌉[

Vertical / Mobile layout

[⌊Search function⌉⌊Search function⌉[

Search function

[⌊Classic Editor⌉⌊Classic Editor⌉[

Classic Editor

[⌊Block Editor⌉⌊Block Editor⌉[

Block Editor

[⌊Template file - Example: "Code usage" page.⌉⌊Template file - Example: "Code usage"
page.⌉[

Template file – Example: “Code usage” page.

[⌊Demo GIF⌉⌊Demo GIF⌉[

Demo GIF

## 常見問題集

### Do I need an API key to access GitHub key?

You might not need an API key for now since GitHub offers unauthenticated access
up to certain limit. Please read this: https://docs.github.com/en/rest/guides/getting-
started-with-the-rest-api which says that they allow up to 60 requests per hour 
per user. So they block the IP for a while if they exceed that limit.

The admin inputs for API key will be in the future releases if people find it interesting
to work with.

### How do I limit the number of search results?

Make use of the attribute `[github-flair total-results="25"]` where you can set 
any number instead of 25.

### I need to add/delete details to/from these cards.

You can do so if you are a developer by editing the script.js file and getting the
desired results from the API into the HTML and then minify it. As a non-developer,
You can request more profile data through https://github.com/M4N0JKUM4R/Flair-Github/
issues

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Flair – Github〉的開發相關工作。

參與者

 *   [ m4n0jkum4r ](https://profiles.wordpress.org/m4n0jkum4r/)

[將〈Flair – Github〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/flair-github)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/flair-github/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/flair-github/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/flair-github/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/flair-github/)。

## 變更記錄

= 1.0.1
 * Fixed JS errors on non-shortcode pages. Added option to limit the number
of search results.

= 1.0.0
 * Early release with basic rendering of cards with a search function.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **5 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.8.13**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/flair-github/)
 * 標籤:
 * [card](https://tw.wordpress.org/plugins/tags/card/)[flair](https://tw.wordpress.org/plugins/tags/flair/)
   [Github](https://tw.wordpress.org/plugins/tags/github/)[profile](https://tw.wordpress.org/plugins/tags/profile/)
   [search](https://tw.wordpress.org/plugins/tags/search/)
 *  [進階檢視](https://tw.wordpress.org/plugins/flair-github/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/flair-github/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/flair-github/reviews/)

## 參與者

 *   [ m4n0jkum4r ](https://profiles.wordpress.org/m4n0jkum4r/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/flair-github/)