b4uindia Posted September 29, 2015 Share Posted September 29, 2015 Hello, On my WHMCS i want to post a IF conditional statement for some JavaScript codes. Such as, I want to show a specific Java Script code on all pages (via footer.tpl help) execpt /knowledgebase.php and /announcements.php pages. So will anyone please share some code which i can insert in footer.tpl file which can help you to get this done? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 29, 2015 Share Posted September 29, 2015 here is how you can use if condition inside tpl files {if $filename=='knowledgebase' || $filename=='announcements'} this content will be displayed in Knowledgebase and Announcements pages {else} this content will be displayed in other pages {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.