Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Afficher un lien d'une date à une autre

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
tatane
Smarty Rookie


Joined: 27 Jun 2013
Posts: 5

PostPosted: Fri Aug 23, 2013 12:48 pm    Post subject: Afficher un lien d'une date à une autre Reply with quote

Bonjour
J'utilise un CMS qui utilise smarty 2.6.26
Je vous grâce a smarty rendre des liens visible exemple du 1 Septembre au 25 Septembre.

Est-ce possible? Si oui,comment?

Merci
Back to top
View user's profile Send private message
bluejester
Smarty Regular


Joined: 26 Apr 2012
Posts: 55

PostPosted: Fri Sep 13, 2013 9:55 am    Post subject: Reply with quote

Hello,

Personnellement je fais comme ceci :

Code:
{if $smarty.now >= '2013-09-01 00:00:00'|date_format:'%s' && $smarty.now <= '2013-09-25 23:59:59'|date_format:'%s'}
    <a href="">lien</a>
{/if}
Back to top
View user's profile Send private message Visit poster's website
tatane
Smarty Rookie


Joined: 27 Jun 2013
Posts: 5

PostPosted: Fri Sep 13, 2013 11:30 am    Post subject: Reply with quote

Nikel ca fonctionne Very Happy merci
Back to top
View user's profile Send private message
tatane
Smarty Rookie


Joined: 27 Jun 2013
Posts: 5

PostPosted: Tue Aug 12, 2014 4:09 pm    Post subject: Reply with quote

Bonjour
Y a t'il un équivalent de cette fonction en php ?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP