Title: embed-githubin
Author: laresistenciadelbit
Published: <strong>5 Tháng 6, 2019</strong>
Last modified: 7 Tháng 12, 2022

---

Tìm kiếm plugin

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

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# embed-githubin

 Bởi [laresistenciadelbit](https://profiles.wordpress.org/lrdb/)

[Tải về](https://downloads.wordpress.org/plugin/embed-githubin.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/embed-githubin/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/embed-githubin/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/embed-githubin/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/embed-githubin/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/embed-githubin/)

## Mô tả

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)

## Ảnh màn hình

[⌊embed repositories list⌉⌊embed repositories list⌉[

embed repositories list

[⌊embed repository file list⌉⌊embed repository file list⌉[

embed repository file list

[⌊embed readme with or without images⌉⌊embed readme with or without images⌉[

embed readme with or without images

## Cài đặt

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”]

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“embed-githubin” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “embed-githubin” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/embed-githubin)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/embed-githubin/), check 
out [SVN repository](https://plugins.svn.wordpress.org/embed-githubin/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/embed-githubin/)
qua [RSS](https://plugins.trac.wordpress.org/log/embed-githubin/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

2022-12-07
 *updated to work with last github content

2021-05-10
 *fixed main repository file listing *removed unnecesary columns in file
listing *fixed embedding in blocks

2021-05-04
 *updated to work with last github content

Old changelog:

 * -remove coments
 * -using internal http request API from wordpress instead CURL:
    https://developer.
   wordpress.org/reference/classes/WP_Http/request/
 * cleaning code
 * -updated support to embed github files
 * little change
 * avoid the rebuild cache time for localhost or some ip in $myserverip
 * comment ps
 * prevents loading cache file with size = 0
 * -forgot to update a variable name
 * readme: cache warning
 * -added content caching:
    & attributes for save cache as githubin_ with seconds
   to rebuild the cache.
 * -fix: comparing file name with a larger extension name is disabled
    -fix: plugin
   doesnt get content if no url has passed to it. (before, it got crazy with plugins
   like elementor which make a previous view of the post each few seconds)
 * image resize
 * readme changes
 * image change

## Meta

 *  Phiên bản **1.13**
 *  Cập nhật lần cuối **4 năm trước**
 *  Số lượt cài đặt **Ít hơn 10**
 *  Phiên bản WordPress ** 2.7.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.1.15**
 *  Phiên bản PHP ** 5.2 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/embed-githubin/)
 * Thẻ
 * [embed](https://vi.wordpress.org/plugins/tags/embed/)[Github](https://vi.wordpress.org/plugins/tags/github/)
   [github embed](https://vi.wordpress.org/plugins/tags/github-embed/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/embed-githubin/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/embed-githubin/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/embed-githubin/)