Hello,
This is what you would use:
Code:
{if $smarty.server.HTTPS ne "on"}
http code here
{else}
https code here
{/if}
Quote:
Originally Posted by robidigital
Does anyone know of an IF statement that I could use in my template files to display a piece of code only if the site is not in https? For example
Code:
{if $site_secure_or_not == "http://"}
<img src="http://www.othersitewithnohttps.com/graphic.gif">
{/if}
|