|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tatane Smarty Rookie
Joined: 27 Jun 2013 Posts: 5
|
Posted: Fri Aug 23, 2013 12:48 pm Post subject: Afficher un lien d'une date à une autre |
|
|
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 |
|
bluejester Smarty Regular
Joined: 26 Apr 2012 Posts: 55
|
Posted: Fri Sep 13, 2013 9:55 am Post subject: |
|
|
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 |
|
tatane Smarty Rookie
Joined: 27 Jun 2013 Posts: 5
|
Posted: Fri Sep 13, 2013 11:30 am Post subject: |
|
|
Nikel ca fonctionne merci |
|
Back to top |
|
tatane Smarty Rookie
Joined: 27 Jun 2013 Posts: 5
|
Posted: Tue Aug 12, 2014 4:09 pm Post subject: |
|
|
Bonjour
Y a t'il un équivalent de cette fonction en php ? |
|
Back to top |
|
|
|
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
|