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

WP Github Recent commit

外掛說明

Widget that grabs a random Octocat from the GitHub octodex and the latest commit from the master branch of a public GitHub repository. It can be used as a normal widget by going to Apperance > Widgets, by adding the shortcode [wpgrc username="username"] in your post editor, or by adding <?php wpgrc( array( 'username' => 'username' ); ?>. You can checkout a live demo of all three [here]demo and get more information about all three under the installation tab. Plugin Home Page: http://dholloran.github.com/wp-github-recent-commit/
If you have any issues please submit an issue or fix it/submit a pull request I will try to handle it ASAP. You an also contact me at support@danholloran.com.

螢幕擷圖

  • screenshot1.png
  • screenshot2.png

安裝方式

  1. Upload wp-github-recent-commit to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Using the widget
1. Go to Appearance > Widgets drag the WP Github Recent Commit widget to the sidebar area of your choice 2. Fill in your GitHub username and set the rest of the options

Using the function
1. Place this code in your template file 2. Add a user name and set any other options if ( function_exists(‘wpgrc’) ) { wpgrc( array( ‘id’ => “1”, // optional, used for caching purposes ‘username’ => ”, // required, it just won’t work with out it ‘repository’ => “”, // optional, if not it will just be the last commit from all repos for the username ‘refresh_interval’ => “0.5”, // optional default 0.5hrs aka 30min ‘show_octocat’ => “true”, // optional boolean default true ‘octocat_width’ => “100”, // optional int default 100 ‘octocat_height’ => “100”, // optional int default 100 ‘commit_count’ => “1”, // optional int default 1 ‘show_avatar’ => false // optional boolean default false ) ); }

Using the shortcode
1. Place in your admin editor [wpgrc id="1" username="" repository="" refresh_interval="0.5" show_octocat="true" octocat_width="100" octocat_height="100" commit_count="1" show_avatar="false"]
2. Add a user name and set any other options

常見問題集

None so far… If you have any issues please submit an issue or fix it/submit a pull request I will try to handle it ASAP. You an also contact me at support@danholloran.com.

使用者評論

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

參與者及開發者

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

參與者

將〈WP Github Recent commit〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial Release

1.0.1

  • Fixed issue with the owner Repo link having incorrect link.

1.1.0

  • Added WPGRC shortcode
  • Added WPGRC template function
  • Added cache refresh rate control
  • Added ability to choose one repository to pull commits from

1.1.1

  • Added option for commit authors avatar
  • Added option to show more than one commit