Add the latest tag to the information in the smarty template. In the smarty template, add the new character label after the information title added within 24 hours after the current time as follows: {if $ smarty. now-$ article. in the ad smarty template, add the latest tag to the information, as shown in the following code:
{If $ smarty. now-$ article. add_time lt 86400} [new] {/if}
Articles you may be interested in
- How to generate a random number in the smarty Template
- Use php functions in the smarty template and how to use multiple functions for a variable in the smarty Template
- Method for judging null array in the smarty Template
- The cycle table in the smarty template contains incomplete td
- How to use constants defined by define in a program in a smarty Template
- Extension of the for loop in the smarty Template
- The last record of the volist loop in the thinkphp Template
- Jquery provides the ability to load data as the scroll bar scrolls.
Else {if $ smarty. now-$ article. ad...