=== Countdown Timer ===
Contributors: fergbrain
Donate link: http://www.andrewferguson.net/2007/03/08/general-note/
Tags: countdown, timer, count, date, event, widget, countup, age, fun, time, international, i18n, countdown timer
Requires at least: 2.7
Tested up to: 3.0
Stable tag: 2.4.2
This plugin allows you to setup a series of dates to count to or from in terms of years, months, weeks, days, hours, minutes, and/or seconds.
== Description ==
Countdown Timer allows you to setup one or more dates to count down to or away from.
Events can be inserted into the sidebar, either manually or as a widget, or within posts and pages.
== Translations ==
= Using another language =
You'll need to modify your `wp-config.php` file. Open it up and look for the line: `define ('WPLANG', '');`
You'll want `'WPLANG', 'de_DE';`
Of course, you'll replace de_DE with the language extension that you want to use, unless of course you actually did want the German language translation.
* Swedish translation: sv_SE
* Spanish translation: es_ES
* German translation: de_DE
* French translation: fr_FR
* Portuguese [Brazil] translation: pr_BR
* Turkish translation: tr_TR
* Czech translation: cs_CZ
* Dutch translation: nl_NL
* Chinese translation: zh_CN
* Polish translation: pl_PL
* Italian translation: it_IT
* Bosnian translation: bs_BA
* Hungarian translation: hu_HU
* Norwegian translation: nn_NO
* Latvian translation: lv_LV
* Romanian translation: ro_RO
* Russian translation: ru_RU
* Danish translation: da_DK
* Lithuanian translation: lt_LT
* Serbian [Cyrilic] translation: sr_RS
== Installation ==
If you can, use the automatic WordPress installer/upgrader.
Otherwise, delete any previous version of Countdown Timer and associated files.
Download and install the timer into your plugins directory.
Activate the timer and add the widget.
If you don't want to use the widget, you can also add the following code into your sidebar.php file:
`
Countdown:
`
Events can be added and other settings modified in the Settings > Countdown Timer section of the Administration Menu.
= Inserting countdown timers into a page or post =
If you want to insert the Countdown Timer into a page or post, you can use the following shortcodes to return all or a limited number of Countdown Timers, respectively:
[fergcorp\_cdt]
[fergcorp\_cdt max=##]
Where ## is maximum number of results to be displayed - ordered by date
If you want to insert individual countdown timers, such as in posts or on pages, you can use the following shortcode:
Time until my birthday:
[fergcorp_cdt_single date="ENTER\_DATE\_HERE"]
Where "ENTER_DATE_HERE" uses PHP's strtotime function and will parse about any English textual datetime description.
= Limiting the number of countdown timers displayed =
If you're using the widget, there is an option to set the maximum number of timers shown. If you are using the PHP code, replace
`fergcorp_countdownTimer()`
with
`fergcorp_countdownTimer(##)`
where ## is the maximum number of events you wish to be displayed.
Events are automatically sorted by date of occurrence.
= Changing the font, size, and style using CSS =
Starting with version 2.4, you can makes changes to the appearance of Countdown Timer display using CSS.
The following CSS classes are available:
* `fergcorp_countdownTimer_event_li` styles each List Item, each item encompasses one countdown event
* `fergcorp_countdownTimer_event_title` styles the title of the event
* `fergcorp_countdownTimer_event_linkTitle` styles the title of an event if it is linked
* `fergcorp_countdownTimer_event_time` styles the actual countdown timer
== Frequently Asked Questions ==
= I have JavaScript countdown enabled and it works on the administration page in the Example Display, but not on my main site! =
This, unfortunately, is a problem with your theme, and not with Countdown Timer. Themes _must_ call wp_footer(), which is a standard hook for WordPress. Without it, many other plugins may not work properly either.
Your best bet to fix the problem is to modify the `footer.php` file and put `` right before `