doNotShow()){
return "";
}
$obj = $this->getDataObject();
global $global;
$css = '';
$css .= '';
return $css;
}
private function doNotShow(){
$baseName = basename($_SERVER["SCRIPT_FILENAME"]);
if(isEmbed() || preg_match("/embed/i", $baseName) || !empty($_GET['embed'])){
return true;
}
return false;
}
public function getEmptyDataObject() {
$obj = new stdClass();
$obj->text = 'This website uses cookies 🍪 so we can provide you with the best user experience. Without these cookies, the website simply would not work.';
$obj->btnText = 'I agree';
return $obj;
}
public function getFooterCode() {
if($this->doNotShow()){
return "";
}
$obj = $this->getDataObject();
global $global;
include $global['systemRootPath'] . 'plugin/CookieAlert/footer.php';
}
}