0) {
if (!isset($oc_bannerAR['link']) || empty($oc_bannerAR['link'])) {
$oc_bannerAR['link'] = oc_('Privacy Policy');
}
if (!isset($oc_bannerAR['href']) || empty($oc_bannerAR['href'])) {
$oc_bannerAR['href'] = OCC_BASE_URL . 'privacy_policy.php';
}
}
$oc_useBannerAR = array(
'palette' => array(
'popup' => array(
'background' => $oc_banner_popupBG,
'text' => '#ffffff'
),
'button' => array(
'background' => $oc_banner_buttonBG,
'text' => '#000000'
),
'highlight' => array(
'background' => '#cccccc'
)
),
'content' => array(
'message' => safeHTMLstr(oc_($oc_bannerAR['message'])),
'dismiss' => safeHTMLstr(oc_($oc_bannerAR['dismiss']))
),
'cookie' => array(
'name' => OCC_SESSION_VAR_NAME . '_cookieconsent',
'path' => $GLOBALS['OC_basepath'],
//'domain' => '',
'expiryDays' => 365
)
);
if (!empty($oc_bannerAR['link'])) {
$oc_useBannerAR['content']['link'] = oc_($oc_bannerAR['link']);
} else {
$oc_useBannerAR['showLink'] = false;
}
if (!empty($oc_bannerAR['href'])) {
$oc_useBannerAR['content']['href'] = $oc_bannerAR['href'];
}
// Select where to serve banner code from -- local plugins dir or CDN
if (is_file($oc_cookieConsentJS)) {
print '
';
} else { // use CDN
print '
';
}
// Banner options
print '
';
// Ignored, for translation purposes only
if (false) {
//T: Leave as X - it indicates closing the privacy banner box
$ocIgnore = oc_('X');
$ocIgnore = oc_('This website uses cookies to provide essential services only.');
}
}