Title: GitHub Gists Sidebar Widget
Author: Andrew Norcross
Published: <strong>2011 年 12 月 24 日</strong>
Last modified: 2015 年 7 月 8 日

---

搜索插件

![](https://ps.w.org/gist-sidebar-widget/assets/banner-772x250.jpg?rev=480305)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/gist-sidebar-widget_f5d29e.svg)

# GitHub Gists Sidebar Widget

 作者：[Andrew Norcross](https://profiles.wordpress.org/norcross/)

[下载](https://downloads.wordpress.org/plugin/gist-sidebar-widget.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/gist-sidebar-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/gist-sidebar-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/gist-sidebar-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/gist-sidebar-widget/#developers)

 [支持](https://wordpress.org/support/plugin/gist-sidebar-widget/)

## 描述

A sidebar widget to display your public gists from GitHub. Allows for optional display
of creation date and link back to your GitHub profile page. Uses v3 of the GitHub
API.

### Potential Enhancements

I plan on including the Transients API in an upcoming release…once I figure out 
exactly how they work. Otherwise, feel free to suggest.

## 屏幕截图

[⌊The plugin options displayed within the widget.⌉⌊The plugin options displayed 
within the widget.⌉[

The plugin options displayed within the widget.

## 安装

This section describes how to install the plugin and get it working.

 1. Upload the ‘gist-sidebar-widget’ folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Drag the widget to your sidebar and input your username, number of gists, and options
    for displaying creation date and a link back to your GitHub profile.

## 常见问题

  What does this do?

It displays your public gists from GitHub on the sidebar, linking to each of them
on GitHub.

  They look kind of bland. Can I style them?

Sure can. There are four classes to look at to add to you CSS.

 * Each list item `<li>` has the class `gist_item`
 * Each link within the `<li>` has the class `gist_link`
 * The optional creation date is wrapped in a `<span>` with the class `gist_date`
 * The optional link to your GitHub profile is in a `<p>` with the class `github_link`

  Is that it?

Pretty much, yeah.

## 评价

此插件暂无评价。

## 贡献者及开发者

「GitHub Gists Sidebar Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Andrew Norcross ](https://profiles.wordpress.org/norcross/)

[帮助将「GitHub Gists Sidebar Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gist-sidebar-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/gist-sidebar-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/gist-sidebar-widget/)，或通过[RSS](https://plugins.trac.wordpress.org/log/gist-sidebar-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/gist-sidebar-widget/)。

## 更新日志

#### 1.2

 * Update old PHP4 constructor

#### 1.1

 * Added username to transient variable to allow multiple widget use.

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.2.39**
 *  语言
 * [English (US)](https://wordpress.org/plugins/gist-sidebar-widget/)
 * 标签
 * [Gist](https://cn.wordpress.org/plugins/tags/gist/)[Github](https://cn.wordpress.org/plugins/tags/github/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/gist-sidebar-widget/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/gist-sidebar-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gist-sidebar-widget/reviews/)

## 贡献者

 *   [ Andrew Norcross ](https://profiles.wordpress.org/norcross/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/gist-sidebar-widget/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://andrewnorcross.com/donate)