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

WP GitHub Buttons

描述

Displays GitHub buttons with your proffered octicon.

Features

  • Widget
  • Shortcode

螢幕截圖

  • Buttons
  • Widget Form

安裝

Install

  1. Upload wp-github-buttons.php and other files compressed in the zip folder to the /wp-content/plugins/ directory.,
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

常見問題

<

h4>Shortcode Slug

<

h4>

wp_github_button


[wp_github_button]

Shortcode Parameters

  • account – the account name. For example, For example, in the repository url https://github.com/michaeluno/wp-github-buttons it will be michaeluno.
  • repository – the repository slug. For example, in the repository url https://github.com/michaeluno/wp-github-buttons it will be wp-github-buttons.
  • show_count1 or 0 set 1 to show the count.
  • type – either of the followings or set none for a custom link.

    • .fork – the fork button.
    • .follow – the follow button.
    • .star – the stargazer button.
    • .issue – the issue button.
  • data_styledefault or mega For a large button, set mega.

  • data_text – the button label.

    [wp_github_button type=’.star’ account=’michaeluno’ repository=’wp-github-buttons’ show_count=1 data_text=’Fork Me!’ data_style=’mega’]

  • data_icon – your preferred octicon. e.g. octicon-gift

    [wp_github_button href=’https://wordpress.org’ data_icon=’octicon-gift’ data_text=’Gift’ data_style=’mega’]

評價

There are no reviews for this plugin.

貢獻者及開發者

“WP GitHub Buttons” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP GitHub Buttons 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.0 – 2015/03/01

  • Released.