$values){
$type_options[$type] = $values['name'];
}
$hide_ads_options = array(
"no-one" => "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"
);
$options = array(
array( "name" => __( "General Settings", 'adsense-widget' ),
"type" => "section"),
array( "type" => "open"),
array(
"type" => "text",
"name" => __( "Adsense 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-xx-"
),
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" => ""
),
array(
"type" => "checkbox",
"name" => __( "Show placeholders for admin", 'adsense-widget' ),
"id" => "show_placeholders",
"desc" => __( "Shows boxes in place of ads (?) ", 'adsense-widget' ),
"std" => ""
),
array(
"type" => "text",
"name" => __( "Shortcode Channel ID", 'adsense-widget' ),
"id" => "shortcode_channel_id",
"desc" => __( "Default channel id for shortcodes (?) ", 'adsense-widget' ),
"std" => ""
),
array(
"type" => "select",
"options" => $type_options,
"name" => __( "Default ad type for shortcode", 'adsense-widget' ),
"id" => "default_ad_type",
"desc" => __( "Default ad to be displayed using [adsense] shortcode with no attributes. See documentation for all shortcode options.(?) ", 'adsense-widget' ),
"std" => ""
),
array( "type" => "close")
);