"Do not hide ads", "add_users" => "Admins Only", "moderate_comments" => "Admins + Editors", "edit_published_posts" => "Admins + Editors + Authors", "edit_posts" => "Admins + Editors + Authors + Contributors", "read" => "All Registered Users" ); // Ad Format $adsense_formats = array( 'display' => 'Display', 'in_feed' => 'In-Feed', 'in_article' => 'In-Article', 'matched_content' => 'Matched Content', 'link' => 'Link' ); $adsense_widget = new WPA_Plugin( 'Adsense Widget', 'adsense-widget', MS_AW_PLUGIN_PATH ); $adsense_widget_options = array( array( "name" => 'general-settings', "label" => __( 'General Settings', 'adsense-widget' ), "type" => "section" ), array( "type" => "text", "name" => __( "Publisher ID", 'adsense-widget' ), "id" => "adsense_id", "desc" => __( "Your unique Adsense ID. This field is required for your ads to work (?) ", 'adsense-widget' ), "std" => "", "placeholder" => "pub-00000000000000" ), array( 'id' => 'auto_ads_enabled', 'name' => __( 'Auto-Ads', 'adsense-widget' ), 'desc' => __( 'Enable auto-ads by Google' ), 'type' => 'checkbox', 'std' => 'on' ), array( "type" => "select", "options" => $hide_ads_options, "name" => __( "Hide ads for", 'adsense-widget' ), "id" => "hide_ads_for", "desc" => __( "Who will see the ads on your site (?) ", 'adsense-widget' ), "std" => "no-one" ), array( "type" => "checkbox", "name" => __( "Placeholders", 'adsense-widget' ), "id" => "show_placeholders", "desc" => __( "Shows placeholders in place of ads (Don't enable this if you have caching!) (?) ", 'adsense-widget' ), "std" => "off" ), array( "type" => "close"), array( "name" => 'auto-insert-settings', "label" => __( 'Auto-Insert Settings', 'adsense-widget' ), "type" => "section" ), array( 'id' => 'insert_before_post', 'name' => __( 'Insert Ads Before Post', 'adsense-widget' ), 'desc' => __( 'Insert ads before post content' ), 'type' => 'checkbox', 'std' => 'off' ), array( "type" => "select", "options" => $adsense_formats, "name" => __( "Ad Format", 'adsense-widget' ), "id" => "before_post_ad_format", "desc" => "", "std" => "display" ), array( "type" => "text", "name" => __( "Ad Sizes", 'adsense-widget' ), "id" => "before_post_ad_sizes", "desc" => __( "Default css sizing for shortcode", 'adsense-widget' ), "std" => "b300x250 md-alignright" ), array( "type" => "text", "name" => __( "Slot Id", 'adsense-widget' ), "id" => "before_post_slot_id", "desc" => __( "Slot Id for before post insert", 'adsense-widget' ), "std" => "" ), array( 'id' => 'insert_after_post', 'name' => __( 'Insert Ads After Post', 'adsense-widget' ), 'desc' => __( 'Insert ads after post content' ), 'type' => 'checkbox', 'std' => 'on' ), array( "type" => "select", "options" => $adsense_formats, "name" => __( "Ad Format", 'adsense-widget' ), "id" => "after_post_ad_format", "desc" => "", "std" => "display" ), array( "type" => "text", "name" => __( "Ad Sizes", 'adsense-widget' ), "id" => "after_post_ad_sizes", "desc" => __( "Default css sizing for shortcode", 'adsense-widget' ), "std" => "sm-rectangle md-rectangle aligncenter" ), array( "type" => "text", "name" => __( "Slot Id", 'adsense-widget' ), "id" => "after_post_slot_id", "desc" => __( "Slot Id for before post insert", 'adsense-widget' ), "std" => "" ), array( "type" => "close"), array( "name" => 'shortcode-settings', "label" => __( 'Shortcode Default Options', 'adsense-widget' ), "type" => "section" ), array( "type" => "paragraph", "desc" => __( "This section defines default settings for shortcode [adsense]. Any custom attributes you provide in your shortcode will replace default options defined here.", 'adsense-widget' ) ), array( "type" => "select", "options" => $adsense_formats, "name" => __( "Ad Format", 'adsense-widget' ), "id" => "default_ad_format", "desc" => __( "Default ad to be displayed using [adsense] shortcode with no attributes. See documentation for all shortcode options.(?) ", 'adsense-widget' ), "std" => "in_article" ), array( "type" => "text", "name" => __( "Slot Id", 'adsense-widget' ), "id" => "shortcode_slot", "desc" => __( "Default slot for shortcode", 'adsense-widget' ), "std" => "" ), array( "type" => "text", "name" => __( "Sizes", 'adsense-widget' ), "id" => "shortcode_sizes", "desc" => __( "Default css sizing for shortcode", 'adsense-widget' ), "std" => "sm-rectangle md-banner lg-leaderboard" ), array( "type" => "close"), array( "name" => 'advanced-settings', "label" => __( 'Advanced Settings', 'adsense-widget' ), "type" => "section" ), array( 'id' => 'output_css', 'name' => __( 'Output Plugin CSS', 'adsense-widget' ), 'desc' => __( 'Turn on/off plugin CSS' ), 'type' => 'checkbox', 'std' => 'on' ), array( "type" => "close") ); $adsense_widget->options = $adsense_widget_options; $adsense_widget->options_nav = array( array( 'label' => 'Plugin Page', 'link' => 'https://wpassist.me/plugins/adsense-widget/' ), array( 'label' => 'Usage', 'link' => 'https://wpassist.me/plugins/adsense-widget/help/' ), array( 'label' => 'Shortcode', 'link' => 'https://wpassist.me/plugins/adsense-widget/shortcode/' ), array( 'label' => 'Donate', 'link' => 'https://wpassist.me/donate/' ) );