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Cw5LjI2OSwzLjU5NCwzMC4wNDYsMTUuMDcsNjIuMzM3YzEwLjM2MywyNy45MiwyMi4wODYsNDMuNzEzLDM1LjE2LDQ3LjM4NmMxMy4wNzYsMy42NjQsMzUuMTk3LTIuNDIsNjYuMzc3LTE4LjI1N2MyMS4xMzktMTAuODQ1LDM4LjcxNS0xNC4yMTYsNTIuNzE1LTEwLjEwN2MxNC4wMDYsNC4wOTMsMjMuODI4LDE1LjI3NywyOS40NzksMzMuNTI5QzcxNy42MzIsMjk3LjQwNiw3MTQuMDMzLDMwOC41MzksNzAyLjc4NSwzMTguMjc1eiIvPjwvc3ZnPg==', 'id' => AN_ID, ) ); /*************************************************************** * Create option panel tabs ***************************************************************/ $generalTab = $an_panel->createTab( array( 'name' => __( 'Adblock Notify Options', 'an-translate' ), ) ); $modalTab = $an_panel->createTab( array( 'name' => __( 'Modal Visual Options', 'an-translate' ), ) ); $redirectTab = $an_panel->createTab( array( 'name' => __( 'Redirection Options', 'an-translate' ), ) ); $alternativeTab = $an_panel->createTab( array( 'name' => __( 'Alternative Message', 'an-translate' ), ) ); /*************************************************************** * Create tab's options ***************************************************************/ //Adblock Notify Options $generalTab->createOption( array( 'name' => '
' . __( 'You can notify users with an activated Adblocker software by one of THREE ways !', 'an-translate' ) . '
' . __( 'Only one of the two first options can be activated at the same time. The third one is standalone and can be setting up independently.', 'an-translate' ) . '
' . __( 'You can easily switch between them without losing your options.', 'an-translate' ) . '
' . __( 'Adblock Notify', 'an-translate' ) . ' ' . __( 'nativally uses cookies for a better user experience and a less intrusive browsing of your site. It means visitors will see the Modal Box only once or be redirected to your custom page once.', 'an-translate' ) . '
' . __( 'You can deactivate them, however if your visitor has an activated adblocker software they will see a modal box or get a redirection on every visited page.', 'an-translate' ) . '
' . __( 'We\'ve detected that you are using AdBlock Plus ore some other adblocking software which is preventing the page from fully loading.', 'an-translate' ) . '
' . __( 'We don\'t have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!', 'an-translate' ) . '
' . __( 'We need money to operate the site, and almost all of it comes from our online advertising.', 'an-translate' ) . '
' . __( 'Please add', 'an-translate' ) . ' ' . preg_replace( '#^https?://#', '', rtrim( get_bloginfo( 'url' ), '/' ) ) . ' ' . __( 'to your ad blocking whitelist or disable your adblocking software.', 'an-translate' ) . '
', ) ); $modalTab->createOption( array( 'name' => __( 'Modal Box Settings', 'an-translate' ), 'type' => 'heading', ) ); $modalTab->createOption( array( 'name' => __( 'Modal Box effect', 'an-translate' ), 'id' => 'an_option_modal_effect', 'type' => 'select', 'desc' => __( 'The Modal Box animation effect - Default: Fade and Pop', 'an-translate' ), 'options' => array( '1' => __( 'Fade and Pop', 'an-translate' ), '2' => __( 'Fade', 'an-translate' ), '3' => __( 'None', 'an-translate' ), ), 'default' => '1', ) ); $modalTab->createOption( array( 'name' => __( 'Animation Speed', 'an-translate' ) . ' ( ' . __( 'Milliseconds', 'an-translate' ) . ' )', 'id' => 'an_option_modal_speed', 'type' => 'number', 'desc' => '' . __( 'The Modal Box animation speed. Will not be applied if modal effect is set to None - Default: 350ms', 'an-translate' ) . '', 'default' => '350', 'min' => '0', 'max' => '5000', 'step' => '10', ) ); $modalTab->createOption( array( 'name' => __( 'Hide modal box close button', 'an-translate' ), 'id' => 'an_option_modal_cross', 'type' => 'select', 'desc' => __( 'Hide the x close button of the modal box? - Default: No', 'an-translate' ), 'options' => array( '1' => __( 'Yes', 'an-translate' ), '2' => __( 'No', 'an-translate' ), ), 'default' => '2', ) ); $modalTab->createOption( array( 'name' => __( 'Close the modal box on background click', 'an-translate' ), 'id' => 'an_option_modal_close', 'type' => 'select', 'desc' => __( 'If you click background will Modal close? - Default: Yes', 'an-translate' ), 'options' => array( '1' => __( 'Yes', 'an-translate' ), '2' => __( 'No', 'an-translate' ), ), 'default' => '1', ) ); $modalTab->createOption( array( 'name' => __( 'Modal Box Style', 'an-translate' ), 'type' => 'heading', ) ); $modalTab->createOption( array( 'name' => __( 'Overlay Color', 'an-translate' ) . ' ( ' . __( 'Background', 'an-translate' ) . ' )', 'id' => 'an_option_modal_bgcolor', 'type' => 'color', 'default' => '#000000', 'desc' => __( 'Default:', 'an-translate' ) . ' #000000', ) ); $modalTab->createOption( array( 'name' => __( 'Overlay Opacity', 'an-translate' ) . ' (%)', 'id' => 'an_option_modal_bgopacity', 'type' => 'number', 'desc' => '' . __( 'Modal Box overlay (background) opacity - Default: 80%', 'an-translate' ) . '', 'default' => '80', 'min' => '0', 'max' => '100', 'step' => '5', ) ); $modalTab->createOption( array( 'name' => __( 'Modal Box Background Color', 'an-translate' ), 'id' => 'an_option_modal_bxcolor', 'type' => 'color', 'default' => '#dddddd', 'desc' => __( 'Default:', 'an-translate' ) . ' #dddddd', ) ); $modalTab->createOption( array( 'name' => __( 'Modal Box Title Color', 'an-translate' ), 'id' => 'an_option_modal_bxtitle', 'type' => 'color', 'desc' => __( 'Default is your theme <h1> color', 'an-translate' ), 'default' => '', ) ); $modalTab->createOption( array( 'name' => __( 'Modal Box Text Color', 'an-translate' ), 'id' => 'an_option_modal_bxtext', 'type' => 'color', 'desc' => __( 'Default is your theme body text color', 'an-translate' ), 'default' => '', ) ); $modalTab->createOption( array( 'name' => __( 'Custom CSS', 'an-translate' ) . '' . __( 'You can insert a custom message where your hidden ads would normally appear.', 'an-translate' ) . '
' . __( 'The plugin will append a new "clean" DIV element just before the advert container to display your custom message.', 'an-translate' ) . '
' . __( 'Note:', 'an-translate' ) . ' ' . __( 'Some minimal HTML knowledge is required to set up this functionality.', 'an-translate' ) . '
' . __( 'AdBlock detected!', 'an-translate' ) . '
' . __( 'Please add', 'an-translate' ) . ' www.b-website.com ' . __( 'to your adblocking whitelist or disable your adblocking software.', 'an-translate' ) . '
', ) ); $alternativeTab->createOption( array( 'name' => __( 'Optional Settings', 'an-translate' ), 'type' => 'heading', ) ); $alternativeTab->createOption( array( 'name' => __( 'Clone ad container?', 'an-translate' ), 'id' => 'an_alternative_clone', 'type' => 'select', 'desc' => __( 'Will copy your original ad container CSS properties - Default: No', 'an-translate' ) . '
' . __( 'What does "Clone ad container" mean?', 'an-translate' ) . '
' . __( 'It means you can ask Adblock Notify Plugin to copy the CSS properties of the element that contains your ad to a new element which will not be hidden by an adblocker software. With this process, your design should not break.', 'an-translate' ) . '
' . __( 'The new element will be the same type (DIV,SPAN,etc.) as its source, and will have the .an-alternative class.', 'an-translate' ) . '
' . __( 'Available options are:', 'an-translate' ) . '
' . __( 'This feature is performed through Javascript (+jQuery) and is 95% functional on all modern browser even on IE8+. For the 5% left, the plugin will drop potential JS errors and insert .an-alternative div.', 'an-translate' ) . '
' . __( 'Tested and works great on Chrome, Firefox, Safari, Opera, IE8+', 'an-translate' ) . '
' . __( 'What\'s appended if I don\'t turn on this option?', 'an-translate' ) . '
' . __( 'The plugin will append a new "clean" DIV element with .an-alternative class just before the advert container. You can add your own custom rules with the Custom CSS field below.', 'an-translate' ) . '
' . __( 'NOTE:', 'an-translate' ) . ' ' . __( 'If you\'ve activated the ads containers cloning, you can still add custom CSS on your text.', 'an-translate' ) . '
' . __( 'If you really have to overload .an-alternative with your own CSS properties, you may probably need to use !important after each of them, but this is not advised.', 'an-translate' ) . '
' . __( 'This selector will be changed during settings update by a random new one to prevent adblock to hide this element. All the CSS and JS files are parsed to be updated with this new selectors. That is why you have to add your custom style in the above field and not in you theme stylesheet.', 'an-translate' ) . '