Linux 软件免费装
Banner图

FF Block Gist Embed

开发者 frisfruitig
更新时间 2019年6月20日 22:01
捐献地址: 去捐款
PHP版本: 5.3.6 及以上
WordPress版本: 5.2
版权: GPLv2
版权网址: 版权信息

标签

embed block code github raw gist

下载

1.0.0 1.0.1 1.0.2

详情介绍:

With FF Block Gist Embed you can embed files from GitHub Gists. It adds a block named 'Gist Embed' to the WordPress editor interface. For every instance of this block, you can:

安装:

  1. Upload the plugin files to the /wp-content/plugins/ff-block-gist-embed directory of your site or blog, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • **Gist Embed** is found under the 'Embeds' section in the 'Add block' dialog.
  • You can enter (or more likely, copy-paste) a Gist URL. In the sidebar, you have the option to include the vendor stylesheet (checked by default) and the option to embed the content from that Gist URL as raw content.
  • When clicking on the 'Get files' button, the block retrieves and lists all the files related to that Gist. You can check every file you want to include in your post.
  • An example of an embedded CSS file.

升级注意事项:

1.0.2
  • Resolved errors that could show up if no URL is provided.
1.0.1
  • By default, the first file from the Gist is selected.
  • Fixed a bug where the list of files was empty when a GitHub username contained a dash.
1.0.0
  • This is our first release.

常见问题:

Can I embed multiple Gist files from the same block?

Yes, you can. However, this plugin lists all the files from the same Gist in the same order as on gist.github.com. If you need to list files in a different order than on gist.github.com, use multiple Gist Embed blocks.

Do Gist embeds get the correct styling automatically?

By default, Gist Embed is configured to load vendor stylesheets for Gist embeds (each Gist comes packed with CSS that handles the styling for the embed containers on the frontend). You can select whether or not to load vendor stylesheets for each Gist Embed block by (un)checking the 'Include stylesheet' checkbox in the sidebar menu (see the screenshots). Please note: this checkbox is checked by default for each Gist Embed block. Performance-wise, it is advised to uncheck this checkbox for all but one of the Gist Embed blocks on the same post.

Can I embed raw files from Gists?

There is an option to embed the checked file(s) from the Gist Embed block as raw content in the sidebar (unchecked by default). By checking this checkbox, the content from each checked file is loaded as raw content instead of embedded in a Gist embed container. This could be useful for HTML prototypes, for example. Note that if you check this checkbox, the vendor stylesheet is never loaded for this block.

Does this plugin support block alignment options?

Yes. Provided your active theme supports the 'wide' and 'full' alignment options, you can configure each block to align wide or take up the full width. The CSS classes that are added, are alignwide and alignfull, respectively. Your theme should already apply the correct styling for these classes.

更新日志:

1.0.2 1.0.1 1.0.0