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

WordPress Notice

外掛說明

WP Notice plugin enable every admin to post animated announcement or messages in posts based on tags, categories or date.
You can assign several messages for the several posts. There are several custom designs based on BootStrap styles.
Along with the styles, you can also add to every message one of hundreds icons based on Font Awesome repository and
also choose animation type, duration and number of repetition. You can choose the position of the notices.

Ideal for technical sites that need to post deprecated notice on old posts and any other sites that need to show
messages to users based on categories, tags or date and get attention to the message by using icons and animation if needed.

WP Notice has fully automated testing environment based on WordPress PHPUnit with more that 90% code coverage. Travis CI
full integration allow us to make sure that WP-Notice will not be broken.

The plugin files are 100% compatible to WordPress coding standards (PHP files and JS files).
GitHub: https://github.com/barzik/wp-notice

Automated testing

WP Tutorial maker can be tested by using PHPUnit with the official WordPress testing environment.

  1. Install WordPress develop and PHPUnit. You can follow these instructions
  2. define local variable WP_TESTS_DIR with the location of WordPress develop phpunit folder.
    for example, put export WP_TESTS_DIR="/var/www/html/wordpress-develop/tests/phpunit" in .bashrc (Linux)
  3. Go to the plugin main folder and run phpunit.
  4. Tests coverage report is being printed in HTML page to ./log/CodeCoverage.

Translations

  • English – default, always included
  • Hebrew

螢幕擷圖

  • The wp-notice plugin admin settings page.
  • The wp-notice plugin success message after setting up the first notice.
  • wp-notice example.

安裝方式

Using The WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Search for ‘wp-notice’
  3. Click ‘Install Now’
  4. Activate the plugin on the Plugin dashboard

Uploading in WordPress Dashboard

  1. Navigate to the ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select wp-notice.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Download wp-notice.zip
  2. Extract the wp-notice directory to your computer
  3. Upload the wp-notice directory to the /wp-content/plugins/ directory
  4. Activate the plugin in the Plugin dashboard

使用者評論

閱讀全部 2 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.3.4

  • Adding Position choice: before content, after content or both.
  • Added PHPUnit test case.
  • Removed tests from production to testing.

1.3.2

  • Fix for link posting in messages.
  • Added PHPUnit test case for the link issues.

1.3.1

  • Fix for PHP warnings that happens when no condition notice saved.
  • Linting JS files.
  • Updating Grunt for jshint task.

1.3.0

  • Adding animations.
  • Adding PHPUnit testing for animations.

1.2.1

  • Remove possible XSS issues.
  • Complete Linting.
  • Removing deprecated code.
  • Removing options in uninstall.
  • Fixing all code standards for WP-Notice classes.
  • Adding several PHPUnit tests, 88% coverage!

1.2.0

  • Adding preview for messages
  • Adding icons to messages
  • Fixing security breach in admin interface

1.1.0

  • Fixed issues in date.
  • Allowing custom styling
  • Admin interface UI improvements
  • Better test coverage – more than 50%
  • Adding Travis CI integration

1.0.2

  • Adding WordPress PHPUnit integration.

1.0.1

  • Coding conventions, minor bug fix made by Yakir Sitbon

1.0

  • Initial version