這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

eFortuneCookie

外掛說明

A plugin to add fortune cookies to WordPress. Import your favourite fortune cookie sayings and display them in WordPress. You can also customise your fortune cookie design.

Description | How to use it

With eFortuneCookie you can have fortune cookie moments when people visit your website.
* After installing the plugin, you can import your favourite sayings.
* To add a fortune cookie to your WordPress site, you can select it from the Gutenberg Block Editor by searching for “eFortuneCookie” or using a shortcode (see the Shortcode section for more details).
* After adding a fortune cookie, you can click on it to see the saying.
* The size of the fortune cookie and the font size and colour can be configured.

You can find more information about how to use it: here.

Shortcode

You can add a fortune cookie using shortcode with the code “[efortunecookie]”. It accepts optional parameters. If the parameters are not set, the default values will be used. Here are the parameters:
* width: the width of the fortune cookie image, such as “200px”.
* height: the width of the fortune cookie image, such as “200px”.
* font-size: the font size of the fortune cookie saying, such as “12px”.
* font-color: the font color of the fortune cookie saying, such as “%23000080”. This is actually the hexadecimal color “#000080”, but you need to replace “#” with “%23”.

To give a complete example, the full shortcode is “[efortunecookie width=”200px” height=”180px” font-size=”12px” font-color=”%23000080″]”.

螢幕擷圖

  • An opened fortune cookie
  • Search for eFortuneCookie
  • Customise your fortune cookie
  • Check all your sayings
  • Import your sayings

適用於區塊編輯器

這個外掛提供 2 個可供 Gutenberg/區塊編輯器使用的區塊。

  • eFortuneCookie
  • Gutenberg Block

安裝方式

Installation of the plugin is really simple.

  1. Install using one of these options:
    • Install directly from WordPress Admin panel: go to Plugins -> Add New -> Search for “eFortuneCookie”, and click the Install button.
    • Download the ZIP manually from WordPress’ plugins repository, and upload it through WordPress Admin panel: go to Plugins -> Add New -> Upload Plugin, browse to the downloaded Zip and upload it.
    • Download the ZIP, extract it and manually upload the extracted folder through FTP to the /wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. That’s it!

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈eFortuneCookie〉的開發相關工作。

參與者

將〈eFortuneCookie〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial version for wp.org