settings->getValue('advanced', 'cookieExpire'); if ($cookieExpire < 1) { $cookieExpire = Plugin::DEFAULT_COOKIE_EXPIRE; } return $cookieExpire * 24 * 60 * 60 * 1000; } public function getCookieAccepted() { return ArrayHelper::getValue($_COOKIE, Plugin::COOKIE_NAME) == Plugin::STATUS_ACCEPTED; } public function getCookieRejected() { return ArrayHelper::getValue($_COOKIE, Plugin::COOKIE_NAME) == Plugin::STATUS_REJECTED; } public function getUseShowAgain() { return (bool)$this->settings->getValue('general', 'useShowAgain'); } private function pluginI18n() { _('The plugin allows you to notify visitors about the use of cookies (necessary to comply with the GDPR in the EU).'); } }