Plugin Directory

Flu Pandemic Level

Flu Pandemic Level is a WordPress plugin that will fetch the current WHO (World Health Organisation) phase of pandemic alert.

Download Version 1.3.1

From version 1.2 a cache system is used - please read the installation notes for ensuring that the new caching facility correctly works

This plugin reads the WHO (World Health Organisation) website and fetch the current phase of pandemic alert. You can also find full descriptions for the phases on this site. The phase is a number between 1 and 6.

The phase is not displayed, but is returned by the plugin. So, to display the phase you might code…

<?php echo flu_pandemic_level(); ?>

Alternatively, you can simply use the plugin to return the phase for use in some further code.

The following is an example of how it could be used, with a function_exists check so that it doesn’t cause problems if the plugin is not active…

<?php if (function_exists('flu_pandemic_level')) : ?>
<?php echo flu_pandemic_level(); ?>
<?php endif; ?>

From version 1.2, you can (optionally) pass a parameter of cache= followed by a number. This represents the number of hours that a cache should be retained. If this is set to "NO" then caching will be turned off. For example...

<?php echo flu_pandemic_level('cache=6'); ?>

Also from version 1.2 onwards, you can request the pandemic level to be listed "inline", from within your post/page. Simply place the tag [FLU] within your post/page and it will be replaced by the current flu level number.

For help with this plugin, or simply to comment or get in touch, please read the appropriate section in "Other Notes" for details. This plugin, and all support, is supplied for free, but donations are always welcome.

Author: dartiss

Requires: 2.0 or higher
Compatible up to: 3.1.4
Last Updated: 2011-3-16 Downloads: 340

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
100,1,1