51 $this->
widget = new \YAWK\widget();
63 public function init()
65 echo
"<script src=\"system/engines/fuckAdBlock/fuckAdBlock.js\"></script>";
69 if ($this->fuckAdBlockLevel ===
"high")
71 $link = $_SERVER[
'REQUEST_URI'];
72 $this->footerBtnCode =
'<a href="'.$link.
'" class="'.$this->fuckAdBlockBtnClass.
'" style="color:#fff; text-shadow: none;">'.$this->fuckAdBlockHighBtnText.
'</a>';
74 $this->headerBtnCode =
'';
76 $this->fuckAdBlockLoadingType =
"onPageLoad";
79 if ($this->fuckAdBlockLevel ===
"low")
81 $this->footerBtnCode =
'<button type="button" class="'.$this->fuckAdBlockBtnClass.
'" data-dismiss="modal">'.$this->fuckAdBlockLowBtnText.
'</button>';
83 $this->headerBtnCode =
'<button type="button" class="close" data-dismiss="modal">×</button>';
86 if (is_string($this->fuckAdBlockLoadingType) && ($this->fuckAdBlockLoadingType ===
"onPageLoad"))
89 <script type=\"text/javascript\">
90 $( document ).ready(function() {
91 // Function called if AdBlock is not detected
92 function adBlockNotDetected() {
93 // alert('AdBlock is not enabled');
96 // Function called if AdBlock is detected
97 function adBlockDetected() {
98 // alert('AdBlock is enabled');
99 // $('#myModal').modal('show');
100 $('#myModal').modal({backdrop: 'static', keyboard: false})
103 // Recommended audit because AdBlock lock the file 'fuckadblock.js'
104 // If the file is not called, the variable does not exist 'fuckAdBlock'
105 // This means that AdBlock is present
106 if(typeof fuckAdBlock === 'undefined') {
110 fuckAdBlock.onDetected(adBlockDetected);
111 fuckAdBlock.onNotDetected(adBlockNotDetected);
113 fuckAdBlock.on(true, adBlockDetected);
114 fuckAdBlock.on(false, adBlockNotDetected);
116 fuckAdBlock.on(true, adBlockDetected).onNotDetected(adBlockNotDetected);
123 if (is_numeric($this->fuckAdBlockLoadingType) || (is_int($this->fuckAdBlockLoadingType)))
127 <script type=\"text/javascript\">
128 $( document ).ready(function() {
129 var timerID = setInterval(function() {
131 // Function called if AdBlock is not detected
132 function adBlockNotDetected() {
133 // alert('AdBlock is not enabled');
135 // Function called if AdBlock is detected
136 function adBlockDetected() {
137 // alert('AdBlock is enabled');
138 // $('#myModal').modal('show');
139 $('#myModal').modal({backdrop: 'static', keyboard: false})
141 // Recommended audit because AdBlock lock the file 'fuckadblock.js'
142 // If the file is not called, the variable does not exist 'fuckAdBlock'
143 // This means that AdBlock is present
144 if(typeof fuckAdBlock === 'undefined') {
147 fuckAdBlock.onDetected(adBlockDetected);
148 fuckAdBlock.onNotDetected(adBlockNotDetected);
150 fuckAdBlock.on(true, adBlockDetected);
151 fuckAdBlock.on(false, adBlockNotDetected);
153 fuckAdBlock.on(true, adBlockDetected).onNotDetected(adBlockNotDetected);
155 }, $this->fuckAdBlockLoadingType * 1000);
156 // clearInterval(timerID); // The setInterval it cleared and doesn't run anymore.
164 <div id=\"myModal\" class=\"modal fade\" role=\"dialog\">
165 <div class=\"modal-dialog\">
167 <!-- Modal content-->
168 <div class=\"modal-content\">
169 <div class=\"modal-header\">
171 <h4>$this->fuckAdBlockTitle</h4>
173 <div class=\"modal-body\">
174 $this->fuckAdBlockText
176 <div class=\"modal-footer\">
if(isset($_POST['save'])) $settings