Title: Flair &#8211; Github
Author: m4n0jkum4r
Published: <strong>18. prosinca 2021.</strong>
Last modified: 21. prosinca 2021.

---

Pretraga dodataka

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

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

# Flair – Github

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

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

 * [Detalji](https://hr.wordpress.org/plugins/flair-github/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/flair-github/#reviews)
 * [Razvoj](https://hr.wordpress.org/plugins/flair-github/#developers)

 [Podrška](https://wordpress.org/support/plugin/flair-github/)

## Opis

📣 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']") ; ?>
    ```

## Snimke zaslona

 * [[
 * Horizontal / Desktop layout
 * [[
 * Vertical / Mobile layout
 * [[
 * Search function
 * [[
 * Classic Editor
 * [[
 * Block Editor
 * [[
 * Template file – Example: “Code usage” page.
 * [[
 * Demo GIF

## ČPP

### 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

## Recenzije

Nema recenzija za ovaj dodatak.

## Suradnici i Programeri

“Flair – Github” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

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

[Prevedite “Flair – Github” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/flair-github)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/flair-github/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/flair-github/)ili se pretplatite
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/flair-github/) od [RSS](https://plugins.trac.wordpress.org/log/flair-github/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

= 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.

## Meta

 *  Version **1.0.1**
 *  Zadnje ažuriranje **prije 4 godine**
 *  Aktivnih instalacija **Manje od 10**
 *  WordPress inačica ** 5.2 ili viša **
 *  Testirano do **5.8.13**
 *  PHP inačica ** 7.2 ili viša **
 *  Language
 * [English (US)](https://wordpress.org/plugins/flair-github/)
 * Oznaka
 * [card](https://hr.wordpress.org/plugins/tags/card/)[flair](https://hr.wordpress.org/plugins/tags/flair/)
   [Github](https://hr.wordpress.org/plugins/tags/github/)[profile](https://hr.wordpress.org/plugins/tags/profile/)
   [search](https://hr.wordpress.org/plugins/tags/search/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/flair-github/advanced/)

## Ocjena

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/flair-github/reviews/)

## Suradnici

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

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/flair-github/)