Title: embed-githubin
Author: laresistenciadelbit
Published: <strong>2019 年 6 月 5 日</strong>
Last modified: 2022 年 12 月 7 日

---

搜索插件

![](https://ps.w.org/embed-githubin/assets/banner-772x250.png?rev=2101264)

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

![](https://ps.w.org/embed-githubin/assets/icon-256x256.png?rev=2101264)

# embed-githubin

 作者：[laresistenciadelbit](https://profiles.wordpress.org/lrdb/)

[下载](https://downloads.wordpress.org/plugin/embed-githubin.zip)

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

 [支持](https://wordpress.org/support/plugin/embed-githubin/)

## 描述

This plugin creates a shortcode for embedding github files, repositories, readmes
or folders.

The shortcode format is (most settings are optional):

> [github_box url=”PUT_GITHUB_URL_HERE” border=”radius” style=”box” x=”300″ y=”300″
> fgcolor=”#333″ bgcolor=”#fafafa” disable_images=”false”]

………………………….
 ………………………….

The variables:

 * url=”PUT_GITHUB_URL_HERE”

> Here you can put either a github user url, a repository url, a readme url or a
> file url.
>  They are threated in different ways; user url will show its repositories;
> repository url will show its main files, readme and files will show its contents.

 * border=”radius” OR border=”true”

> If we use one of this options will create a border with the content.

 * style=”box”

> It will create a scrollable box with the content

 * x=”300″ y=”300″

> Those options are the dimensions of the box

 * fgcolor=”#333″ bgcolor=”#fafafa”

> Set the text color and background color

 * disable_images=”true”

> Remove all images from the content

 * disable_fav=”true”

> Remove the fav parragraphs from an user repositories

 * id=”IDNAME”

> Creates a cached file of the content. This setting is very recomended to use.
> 
> But remember: if you change later the attributes of the shortcode it won’t update
> until the cachetime has passed or unless you delete the cached file (in plugin’s
> directory).

 * cachetime=”10800″

> Number of seconds before it rebuilds the cache file (default is 10800seconds=3hours)

## 屏幕截图

 * [[
 * embed repositories list
 * [[
 * embed repository file list
 * [[
 * embed readme with or without images

## 安装

just install it from wordpress.org plugins list or upload the plugin to the plugins
folder.
 put it as shortcode with the correct format: [github_box url=”PUT_GITHUB_URL_HERE”
border=”radius” style=”box” x=”300″ y=”300″ fgcolor=”#333″ bgcolor=”#fafafa” disable_images
=”false”]

## 评价

此插件暂无评价。

## 贡献者及开发者

「embed-githubin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「embed-githubin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/embed-githubin)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.13**
 *  最后更新：**3 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 2.7.0 或更高版本 **
 *  已测试的最高版本为 **6.1.10**
 *  PHP 版本 ** 5.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/embed-githubin/)
 * 标签
 * [embed](https://cn.wordpress.org/plugins/tags/embed/)[Github](https://cn.wordpress.org/plugins/tags/github/)
 *  [高级视图](https://cn.wordpress.org/plugins/embed-githubin/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/embed-githubin/)