Here is a plug-in that can display a difference between the current date and a specified date (either in the past or in the future). It is straightforward to use and is ready for multilingual blogs.
Here is the syntax to use inside 'title' and 'displayed text' fields:
Code: Select all
<en>text in English</en>
<fr>texte en Francais</fr>
<de>Ich spräche nicht Deutch!</de>
Code: Select all
%Y: years difference
%M: months difference
%D: days difference
%h: hours difference
%m: minutes difference
%s: seconds difference
(bold items have been updated in the last revision)
- It can count both ways (past or future) compared to present time.
- It is stackable.
- It provides an usage example by default.
- The text displayed is completely customizable
- It supports any language you currently have via an easy syntax.
- It supports the non-use of the mentionned syntax for basic plugin configuration.
- The syntax now supports singular/plural terms like shown in the default text exemple
- It lacks no display of values like 0 units
Visit Gaïa's blog
Want to try it?
Download version 0.24 here
Comments, ideas and code changes are more than welcomed