YaWK
24.1
Yet another WebKit
|
Detect and react to user's installed AdBlocker. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
init () | |
The main function to init fuckAdBlock. More... | |
Public Attributes | |
$adBlockJS = '' | |
$footerBtnCode = '' | |
$fuckAdBlockBtnClass = '' | |
$fuckAdBlockHighBtnText = '' | |
$fuckAdBlockLevel = '' | |
$fuckAdBlockLoadingType = '' | |
$fuckAdBlockLowBtnText = '' | |
$fuckAdBlockText = '' | |
$fuckAdBlockTitle = '' | |
$headerBtnCode = '' | |
$widget = '' | |
Detect and react to user's installed AdBlocker.
AdBlock Blocker Widget
If your website relay on advertising, this widget may be helpful. It can detect, if user has an AdBlocker installed. You can set different levels (low or high) - which means that you can say please disable your adblocker or force the user to disable, otherwise he dont see any content. Messages, title and buttons can get customized.
Definition at line 17 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
object | $db | Database Object |
Load all widget settings on object init.
Definition at line 47 of file fuckadblock.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::init | ( | ) |
The main function to init fuckAdBlock.
Prepare properties and init fuckAdBlock
Definition at line 62 of file fuckadblock.php.
References YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock\$adBlockJS.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$adBlockJS = '' |
string | Ablock JavaScript |
Definition at line 40 of file fuckadblock.php.
Referenced by YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock\init().
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$footerBtnCode = '' |
string | footer html markup |
Definition at line 36 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockBtnClass = '' |
string | Button class |
Definition at line 32 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockHighBtnText = '' |
string | High level button text |
Definition at line 30 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockLevel = '' |
string | Level of strongness |
Definition at line 26 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockLoadingType = '' |
string | Loading Type (on page load or every x seconds) |
Definition at line 34 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockLowBtnText = '' |
string | Low level button text |
Definition at line 28 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockText = '' |
string | AdBlock custom text |
Definition at line 24 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$fuckAdBlockTitle = '' |
string | Text that will be shown as title |
Definition at line 22 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$headerBtnCode = '' |
string | header html markup |
Definition at line 38 of file fuckadblock.php.
YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock::$widget = '' |
object | global widget object data |
Definition at line 20 of file fuckadblock.php.