www.ingoknito.de

Test page for class new_label

The value $days is set to 5.

day 9: 2014-07-22
day 8: 2014-07-23
day 7: 2014-07-24
day 6: 2014-07-25
day 5: 2014-07-26  [new] 
day 4: 2014-07-27  [new] 
day 3: 2014-07-28  [new] 
day 2: 2014-07-29  [new] 
day 1: 2014-07-30  [new] 

This example shows how the label "new" will automatically disappear after 5 days.This demo is quite a bit wired, I know. But I hope you understand what I mean.
To use this class in it's simplest way just put the creation date of your item to label. The default expiring number of days is 30.
$nl->put( '2014-07-31' );  [new]