It’s new

This simple little plugin can be used to display some content (like an image) based on the age of an entry.
If the entry has been posted within the number of days specified, the content inside the tag-pair is returned.

Example:

{exp:itsnew date="{entry_date}" days="10"}
<img src="new.gif" />
{/exp:itsnew}

If the entry is older than 10 days nothing is returned otherwise the image will be displayed.

Parameters:
This one is mandatory.

date="{entry_date}"

Optional. Number of days to compare against entry_date. Defaults to 30.

days="10"

Download: pi.itsnew.zip
1.28 KB

If you found something useful here and want to show your appreciation feel free to

or


Comments:

No comments yet.