mardi 5 avril 2016

use tag

i am using smarty template so i want use if with <script> tag

<script type="text/javascript" src="{$baseurl}/templates/bd/tazfy.js"></script>

i want to do somthing like that

{if $role neq 'vip'}
{literal}
<script type="text/javascript" src="{$baseurl}/templates/bd/tazfy.js"></script>

{/literal}
{/if}

i try what they are saying here i don't know how to let that work for smarty template

can you help me please with that

Aucun commentaire:

Enregistrer un commentaire