このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

GenerateWP Embed

説明

Create code snippets and showcase them to your users.

About GenerateWP

GenerateWP provides user-friendly tools for developers to create advanced applications built on top of WordPress. With simple code generators, developers can create custom and high quality code using the latest WordPress coding standards and API’s.

GenerateWP WordPress Plugin

Using this plugin you can showcase your code snippets from GenerateWP.com in your WordPress site, using the snippet URL or snippet ID.

Choose any public snippet from your dashboard or from the sites public snippet library, or create your own! Copy the snippet URL and paste it into your text editor. Then simply click over to the visual editor to confirm that it loads properly.

Alternatively, you can embed snippets to your content using the [generatewp id=""] shortcode with the following attributes:

  • id – Snippet ID (required).
  • theme – The embedded snippet theme. Accepted themes: github, geonyx, kimono, paradise, soft, zenophilia, md (material design), luminous_dark (dark theme), luminous_light (light theme). Default is ‘github’.
  • lang – Cod syntax language. Accepted languages: php, html, css, javascript. Default ‘php’.
  • ln – Line numbers are turned on by default but you can turn it off using the ln parameter and set it to zero (0).
  • sl – Starting line number. Default 1, if line numbers turned on.
  • al – Auto-link links listed in the code. Default 0, no auto links.
  • mh – Max height for the embedded snippet to overwrite vertical scroll bars. Default 500 (pixels).

スクリーンショット

  • Pasting snippet URL to the text editor.
  • Pasting snippet URL to the visual editor.

インストール

インストール

  1. In your WordPress Dashboard go to “Plugins” -> “Add Plugin”.
  2. Search for “GenerateWP Embed”.
  3. Install the plugin by pressing the “Install” button.
  4. Activate the plugin by pressing the “Activate” button.

最小限必須条件

  • WordPress version 3.5 or greater.
  • PHP version 5.2.4 or greater.
  • MySQL version 5.0 or greater.

Recommended Requirements

  • The latest WordPress version.
  • PHP version 7.0 or greater.
  • MySQL version 5.6 or greater.

FAQ

How do I embed snippets from GenerateWP?

With this plugin you can use the URL to embed snippets. Just paste the snippet URL into your post editor:
https://generatewp.com/snippet/0md9rdy/

How do I set custom dimensions to my snippets?

Since WordPress 4.2, you can double click the embedded item to set max width and max height. It will add the WordPress [embed] shortcode:
[embed width=”600″ height=”400″]https://generatewp.com/snippet/0md9rdy/[/embed]

Note: Doing it the WordPress way, using the [embed] shortcode, is backwards and forward compatible, and it works with all the themes.

Can I customize the embedded snippet?

For advanced customization, use [generatewp id=""] shortcode with the following attributes:

  • id – Snippet ID (required).
  • theme – The embedded snippet theme. Accepted themes: github, geonyx, kimono, paradise, soft, zenophilia, md (material design), luminous_dark (dark theme), luminous_light (light theme). Default is ‘github’.
  • lang – Cod syntax language. Accepted languages: php, html, css, javascript. Default ‘php’.
  • ln – Line numbers are turned on by default but you can turn it off using the ln parameter and set it to zero (0).
  • sl – Starting line number. Default 1, if line numbers turned on.
  • al – Auto-link links listed in the code. Default 0, no auto links.
  • mh – Max height for the embedded snippet to overwrite vertical scroll bars. Default 500 (pixels).

評価

このプラグインにはレビューがありません。

貢献者と開発者

GenerateWP Embed はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“GenerateWP Embed” は8ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“GenerateWP Embed” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.5 (2016-06-15)

  • Fix shortcode issue.
  • Add oEmbed handler for custom parameters.

1.4 (2016-04-04)

  • Add shortcode.
  • Move plugin files to ‘includes’ directory.

1.3 (2015-11-30)

1.2 (2015-03-28)

  • Prevent direct access to php files.
  • Prevent direct access to directories.

1.1 (2015-03-02)

  • 多言語対応。
  • Add Hebrew (he_IL) translation.

1.0 (2015-02-20)

  • 最初のリリース。
  • Register oEmbed provider.