'select', 'label' => esc_html__( 'Algorithm:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Algorithm', 'AdUnlocker' ), 'description' => esc_html__('The AdUnlocker supports several algorithms. Choose the most suitable for your needs. ', 'AdUnlocker' ), // esc_html__('Read more ', 'AdUnlocker' ) . // '' . // esc_html__('about algorithms', 'AdUnlocker' ) . // '' . // esc_html__(' in the documentation.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'inline', 'options' => [ 'inline' => esc_html__( 'Inline', 'AdUnlocker' ), 'random-folder' => esc_html__( 'Random Folder', 'AdUnlocker' ), 'proxy' => esc_html__( 'Script Proxy', 'AdUnlocker' ), ] ]; # Random folder lifetime $tabs['general']['fields']['lifetime'] = [ 'type' => 'slider', 'label' => esc_html__( 'Lifetime:', 'AdUnlocker' ), 'show_label' => true, 'description' => esc_html__( 'Random folder lifetime ', 'AdUnlocker' ) . ' ' . esc_html( ( ! empty( Settings::get_instance()->options['lifetime'] ) ) ? Settings::get_instance()->options['lifetime'] : '1' ) . '' . esc_html__( ' days.', 'AdUnlocker' ), 'show_description' => true, 'min' => 1, 'max' => 365, 'step' => 1, 'default' => 1, 'discrete' => true, ]; # Modal Style $tabs['general']['fields']['style'] = [ 'type' => 'select', 'label' => esc_html__( 'Modal Style:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Modal Style', 'AdUnlocker' ), 'description' => esc_html__('AdUnlocker modal window style.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'compact', 'options' => [ 'compact' => esc_html__( 'Compact', 'AdUnlocker' ), 'compact-right-top' => esc_html__( 'Compact: Upper Right Corner', 'AdUnlocker' ), 'compact-left-top' => esc_html__( 'Compact: Upper Left Corner', 'AdUnlocker' ), 'compact-right-bottom' => esc_html__( 'Compact: Bottom Right Corner', 'AdUnlocker' ), 'compact-left-bottom' => esc_html__( 'Compact: Bottom Left Corner', 'AdUnlocker' ), 'full' => esc_html__( 'Full Screen', 'AdUnlocker' ), ] ]; # Title $tabs['general']['fields']['title'] = [ 'type' => 'text', 'label' => esc_html__( 'Title:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Title', 'AdUnlocker' ), 'description' => esc_html__( 'Modal window title.', 'AdUnlocker' ), 'show_description' => true, 'default' => esc_html__( 'It Looks Like You Have AdBlocker Enabled', 'AdUnlocker' ), 'attr' => [ 'maxlength' => '1000' ] ]; # Content $tabs['general']['fields']['content'] = [ 'type' => 'editor', 'label' => esc_html__( 'Content:', 'AdUnlocker' ), 'show_label' => true, 'description' => '', 'show_description' => false, 'default' => '
' . esc_html__( 'Please disable AdBlock to proceed to the destination page.', 'AdUnlocker' ) . '
', 'attr' => [ 'textarea_rows' => '3' ] ]; # Overlay Color $tabs['general']['fields']['bg_color'] = [ 'type' => 'colorpicker', 'label' => esc_html__( 'Overlay Color:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Overlay Color', 'AdUnlocker' ), 'description' => esc_html__( 'Page overlay Background Color.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'rgba(255,0,0,0.75)', 'attr' => [ 'readonly' => 'readonly', ] ]; # Modal Color $tabs['general']['fields']['modal_color'] = [ 'type' => 'colorpicker', 'label' => esc_html__( 'Modal Color:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Modal Color', 'AdUnlocker' ), 'description' => esc_html__( 'Modal window Background Color.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'rgba(255,255,255,1)', 'attr' => [ 'readonly' => 'readonly', ] ]; $tabs['general']['fields']['close_color'] = [ 'type' => 'colorpicker', 'label' => esc_html__( 'Close Button Color:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Close Button Color', 'AdUnlocker' ), 'description' => esc_html__( 'Close button color inside a modal window.', 'AdUnlocker' ), 'show_description' => true, 'default' => '#23282d', 'attr' => [ 'readonly' => 'readonly', ] ]; # Text Color $tabs['general']['fields']['text_color'] = [ 'type' => 'colorpicker', 'label' => esc_html__( 'Text Color:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Text Color', 'AdUnlocker' ), 'description' => esc_html__( 'Text color inside a modal window.', 'AdUnlocker' ), 'show_description' => true, 'default' => '#23282d', 'attr' => [ 'readonly' => 'readonly', ] ]; # Is it possible to close? $tabs['general']['fields']['closeable'] = [ 'type' => 'switcher', 'label' => esc_html__( 'Is it possible to close?', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Closable', 'AdUnlocker' ), 'description' => esc_html__( 'The user can close the window and continue browsing the site.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'on', ]; # Blur Content $tabs['general']['fields']['blur'] = [ 'type' => 'switcher', 'label' => esc_html__( 'Blur Content:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Blur Content', 'AdUnlocker' ), 'description' => esc_html__( 'Effects like blur or color shifting on an element\'s rendering before the element is displayed.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'on', ]; # JavaScript Required $tabs['general']['fields']['javascript'] = [ 'type' => 'switcher', 'label' => esc_html__( 'JavaScript Required:', 'AdUnlocker' ), 'show_label' => true, 'placeholder' => esc_html__( 'Protect if JavaScript is Disabled', 'AdUnlocker' ), 'description' => esc_html__( 'Block page content if JS is disabled.', 'AdUnlocker' ), 'show_description' => true, 'default' => 'on', ]; # JavaScript Message $tabs['general']['fields']['javascript_msg'] = [ 'type' => 'editor', 'label' => esc_html__( 'JavaScript Message:', 'AdUnlocker' ), 'show_label' => true, 'description' => esc_html__( 'Message to show if JavaScript is Disabled.', 'AdUnlocker' ), 'show_description' => false, 'default' => '