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

Alert Bar

外掛說明

No future development is planned for this plugin.

Create an alert notification bar anywhere in your website. Place the shortcode in a page, post, widget or template file one time. Then use the Alert post function in the dashboard to create and edit alerts, which will appear wherever you’ve placed the short code.

This plugin uses a custom post type to generate the alert so editing the alert is as easy as creating a post or page. This is an intentionally light weight plugin (no jquery or javascript of its own) that aims to avoid theme or plugin conflicts.

Install the plugin. Embed the shortcode in a page or post as [fiatalert] or in a template file <?php echo do_shortcode
('[fiatalert]');?>
.

Create an alert in the WordPress dashboard using the new Alerts custom post type. The content or body of the alert will appear where you have placed the shortcode. WYSIWYG styling will be passed through (including text align center and links).

If you create multiple alerts only the most recent one will be displayed. If you do not want any alert displayed then change the status of each alert to “draft”.

螢幕擷圖

  • This is the alert in action on a school website.
  • The Alert function is added directly into the WordPress dashboard.

安裝方式

  1. Upload the fiatalert plugin folder to the /wp-content/plugins folder of your WordPress installation.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Choose the location where you want the alert to appear. Place the shortcode [fiatalert] in a page or post or
    place <?php echo do_shortcode('[fiatalert]');?> in a template file.
  4. In the WordPress dashboard click on “Alerts” and “Add New”
  5. Enter your desired alert message in the body of the alert (not the title). Only text entered into the body will appear.
    Press the blue “Publish” button and your alert will now appear on your site wherever you placed the shortcode.

For more information please visit http://fiatinsight.com/plugins/fiat-alert

常見問題集

Where will the alert appear?

The alert appears wherever you choose! Simply embed the shortcode [fiatalert] in a page or post or embed <?php echo do_shortcode('[fiatalert]');?> in a template file. No alert will be visible on your website until you create one using the “Alerts” menu in the dashboard.

How do I edit the style of the alert?

For more customization, override the styling of the classes .fiat-alert and .fiat-alert h3 in your stylesheet. Use !important if necessary.

How do I remove the alert?

Change the alert’s status to “draft” or delete the alert.

I can’t get the alerts to go away!

You must either change each alert’s status to “draft” and/or delete all the alerts so that no alert will be shown.

What if I create multiple alerts?

Only the most recent alert will be shown.

Can I save an alert for later?

Yes. Edit the alert and change it’s status to “draft” so that it is not published.

使用者評論

There are no reviews for this plugin.

參與者及開發者

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

參與者

將 Alert Bar 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

Initial release.

1.1

Updates to read me file.

1.2

Added FAQs link on the plugins page and updated FAQs.

1.3

Added widget support for shortcode

1.4

Added close “x” to remove alert bar (requires Bootstrap JS)

1.5

Added wp_reset_query() to correct issue with post titles

2.0

Tested for WordPress 5.0 compatibility. No future development is planned for this plugin.