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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/flair-github/#description)
 * [评价](https://cn.wordpress.org/plugins/flair-github/#reviews)
 * [开发进展](https://cn.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**
 *  最后更新：**4 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/flair-github/)
 * 标签
 * [card](https://cn.wordpress.org/plugins/tags/card/)[flair](https://cn.wordpress.org/plugins/tags/flair/)
   [Github](https://cn.wordpress.org/plugins/tags/github/)[profile](https://cn.wordpress.org/plugins/tags/profile/)
   [search](https://cn.wordpress.org/plugins/tags/search/)
 *  [高级视图](https://cn.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/)