Hi.
I've customized the top banner message to always be closed. This is the code that I used:
function avia_banner($padding = 0)
{
$extraClass = "maximized";
$output = "";
$cookieHash = "";
$bannerText = avia_get_option('banner');
$cookieName = THEMENAME.'_avia_banner';
$bannerHash = md5($bannerText);
$padding = $padding * 43;
if(!trim($bannerText)) return;
if( empty($_COOKIE[$cookieName])) $extraClass = "maximized firstcall";
if(!empty($_COOKIE[$cookieName])) $cookieHash = $_COOKIE[$cookieName];
if(!empty($_COOKIE[$cookieName]) && $bannerHash != $cookieHash) $extraClass = "minimized";
Still, the top banner message is open when I delet the cookie and reload the page. Any idea what I'm doing wrong?














