[ 'title' => __( 'Fallback Ads', 'adpresso' ), 'description' => '', 'link' => 'https://wpadpresso.com/docs/fallback-ads/?utm_source=plugin-backend&utm_medium=manual-link&utm_campaign=fallback-ads&utm_content=settings-page', 'controlled_by' => 'enable_module_' . $this->get_id(), 'initially_open' => true, ], ]; } /** * All options for the General tab. * * @return array */ protected function define_options(): array { $options = [ 'enable_module_' . $this->get_id() => [ 'section' => 'activate_fallback', 'label' => __( 'Activate Fallback Ads', 'adpresso' ), 'type' => 'toggle', 'description' => __( 'Set placeholder items for unfilled ad slots.', 'adpresso' ), 'default' => '0', 'highlighted' => '1', ], 'privacy_fallback' => [ 'section' => 'activate_fallback', 'label' => __( 'Privacy fallback item', 'adpresso' ), 'type' => 'placement-item-select', 'sanitize_type' => 'key', 'default' => '0', 'description' => __( 'Choose a fallback for slots where no ad is available due to missing consent. The selected ad is still subject to privacy settings. If it also requires consent that has not been given, the general fallback is used instead.', 'adpresso' ), 'options' => [ '0' => __( 'No fallback item', 'adpresso' ), ], 'premium' => true, 'disabled' => true, ], 'adblocker_fallback' => [ 'section' => 'activate_fallback', 'label' => __( 'Ad blocker fallback item', 'adpresso' ), 'type' => 'placement-item-select', 'sanitize_type' => 'key', 'default' => '0', 'description' => __( 'Choose a fallback for slots whose ad an ad blocker stops, such as ad network code or AdSense units. Pick an item without external scripts, for example an image from your media library or an HTML text ad. The selected item is still subject to privacy settings; without consent the general fallback is used instead.', 'adpresso' ), 'options' => [ '0' => __( 'No fallback item', 'adpresso' ), ], 'premium' => true, 'disabled' => true, ], 'adsense_fallback' => [ 'section' => 'activate_fallback', 'label' => __( 'AdSense fallback item', 'adpresso' ), 'type' => 'placement-item-select', 'sanitize_type' => 'key', 'default' => '0', 'description' => __( 'Choose a fallback for AdSense ad units that return no ad (unfilled). Works for ad units in your ads, not for Auto Ads. The selected item is still subject to privacy settings; without consent the general fallback is used instead.', 'adpresso' ), 'options' => [ '0' => __( 'No fallback item', 'adpresso' ), ], 'premium' => true, 'disabled' => true, ], 'general_fallback' => [ 'section' => 'activate_fallback', 'label' => __( 'General fallback item', 'adpresso' ), 'type' => 'placement-item-select', 'sanitize_type' => 'key', 'default' => '0', 'description' => __( 'Choose a fallback for slots where no ad is available for other reasons, or when the consent fallback cannot be displayed. The selected ad is displayed regardless of privacy settings, so choose an ad that does not require consent, such as a static banner linking to your own content.', 'adpresso' ), 'options' => [ '0' => __( 'No fallback item', 'adpresso' ), ], ], ]; return apply_filters( "adpresso_tab_{$this->get_id()}_options", $options, $this ); } }