Since two days I'm trying to add some condition in which I compare the date-expiration of my promotion added with the date of today. If it's expired then I want to display on the text of promotion: "promo expired.."
So something like this:
$today = date( "Y-m-d" );
<div class="main-news-content" <?php if( [xfvalue_expiration] < $today ){ die "this promo is expired" ;}?>>
{short-story limit="300"}<div style="clear: both;"></div>
<div class="main-news-line"></div>
<div class="infocoupon">
<b>Ajouter : </b> {date} | [xfgiven_expiration] <b>Date D'expiration :</b> <span class="blink">[xfvalue_expiration]</span> [/xfgiven_expiration] {rating}
</div>
</div>
But no result ! How can I get the date of today ? Does datalife accept the PHP condition on her script? Ps: I added my code to page shortstory.