=== Plugin Name === Contributors: vskjefst Tags: posts, pages, date, day, days, hours, minutes, relative date, days ago, hours ago, minutes ago Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4UXDX43P8V9EN&lc=NO&item_name=wp%2ddays%2dago¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted Requires at least: 1.5 Tested up to: 3.2.1 Stable tag: trunk Displays the number of years, days, hours and minutes since a post or a page was published. == Description == This plugin displays the number of years, days, hours and minutes since a post or a page was published. Examples are “Just now” (less than a minute ago), “47 minutes ago” (less than an hour ago), “3 hours ago” (less than a day ago), “Yesterday”, “3 days ago”, “One week ago”, “76 days ago”, “2 years, 13 days ago” and so on. It’s also possible to make the plugin behave like the 1.x version and turn off displaying minutes and hours. The plugin will then fall back to “Today” for everything published less than 24 hours ago and not display minutes and hours. There are options for defining a prepending and appending text and change all the textual output from the plugin, for instance “minutes ago” and “One week ago”, making it easy for you to translate it to any language you want. == Installation == 1. [Download](http://downloads.wordpress.org/plugin/wp-days-ago.zip) the plugin. 2. Unzip the contents of the downloaded file to the /wp-content/plugins/ directory of your Wordpress installation. 3. Log in to your Wordpress dashboard and activate the wp_days_ago plugin that should now be visible in the list. 4. You can now insert <? wp_days_ago(); ?> anywhere in [The Loop](http://codex.wordpress.org/The_Loop) in your Wordpress theme. 5. Optionally, you can use <? wp_days_ago(1); ?> instead to turn off the fine grained option (see changelog below). This will make the plugin behave like the 1.x version. Plugin URL: [http://www.vegard.net/archives/3781/](http://www.vegard.net/archives/3781/) = Usage = `` = Parameters = $mode (int) (optional) Use any value larger than 0 to turn off displaying minutes and hours and instead fall back to "Today" for everything published less than 24 hours ago. Default value is 0. $prepend (string) (optional) This text will be prepended to the plugin's default output. Default value is "" (empty string). $append (string) (optional) This text will be appended to the plugin's default output. Default value is "" (empty string). $texts (array) (optional) This array allows you to change the texts used by the plugin. This will, for instance, allow you to translate the output to your language. The default value is array("Today", "Yesterday", "One week ago", "days ago", "year", "years", "ago", "day ago", "days ago", "Just now", "One minute ago", "minutes ago", "1 hour ago", "hours ago", "Some time in the future"). == Upgrade notice == No changes to your theme or configuration are necessary when you upgrade from a previous version. == Changelog == = 2.0.2 = * New feature: Added text "Some time in the future" for scheduled posts (visible in preview mode only). = 2.0.1 = * Change: Removed some debug code that had made its way into the release. = 2.0 = * New feature: The plugin now by default displays minutes and hours since a post or page was created. * Change: The $offset parameter from the 1.x version is now replaced with a $mode parameter that enables you to prevent the plugin from displaying the minutes and hours since a post or page was published and instead fall back to “Today” for everything published lest than 24 hours ago. = 1.7.1 = * Changed some of the default texts so that they start with a capital letter. = 1.7 = * Backwards compatible all the way back to Wordpress 1.5. * The plugin now uses the internal Wordpress timezone settings. * Added optional parameters that allows configuration of appended text, prepended text and the texts displayed by the plugin. = 1.0 = * Initial version.