WP Notice plugin enable every admin to post animated announcement or messages on top of 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.
For Installations, screen shots and logs, please refer to WP Notice WordPress.org page.
WP Notice can be tested by using PHPUnit with the official WordPress testing environment.
- Install WordPress develop and PHPUnit. You can follow those instructions
- Define local variable WP_TESTS_DIR with the location of WordPress develop phpunit folder. for example, put
put
export WP_TESTS_DIR="/var/www/html/wordpress-develop/tests/phpunit"
in .bashrc (Linux) - Go to the plugin main folder and run
phpunit
. - Tests coverage report is being printed in HTML page to ./log/CodeCoverage.
- You may run phpunit tests with Grunt by typing
grunt phpunit
.
WP Notice is following WordPress Code Standards. The validation is done by PHP Code Sniffer Along with Code Sniffer WordPress extension. In order to use it:
- Install PHP Code Sniffer.
- Install Code Sniffer WordPress extension.
- Install Grunt modules by typing
npm install
. - Run
grunt phpcs
and observe results. - Run
grunt jshint
for linting JS files.
Make the changed in source_css and then run grunt postcss
to output the CSS to public.css.