该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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’]

评价

此插件暂无评价。

贡献者及开发者

“WP GitHub Buttons” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP GitHub Buttons”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0 – 2015/03/01

  • Released.