'', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment'=>'scroll' ); // Pull all the categories into an array $options_categories = array(); $options_categories_obj = get_categories(); foreach ($options_categories_obj as $category) { $options_categories[$category->cat_ID] = $category->cat_name; } // Pull all tags into an array $options_tags = array(); $options_tags_obj = get_tags(); foreach ( $options_tags_obj as $tag ) { $options_tags[$tag->term_id] = $tag->name; } // Pull all the pages into an array $options_pages = array(); $options_pages_obj = get_pages('sort_column=post_parent,menu_order'); $options_pages[''] = 'Select a page:'; foreach ($options_pages_obj as $page) { $options_pages[$page->ID] = $page->post_title; } // If using image radio buttons, define a directory path $imagepath = get_template_directory_uri() . '/images/'; $options = array(); $options[] = array( 'name' => __('Colour Settings', 'options_check'), 'type' => 'heading'); $options[] = array( 'name' => __('Background', 'options_check'), 'desc' => __('Change the background colour.', 'options_check'), 'id' => 'example_background', 'std' => $background_defaults, 'type' => 'background' ); $options[] = array( 'name' => __('Color Scheme', 'options_check'), 'desc' => __('Select main colour scheme of website.', 'options_check'), 'id' => 'background_colorpicker', 'std' => '', 'type' => 'color' ); $options[] = array( 'desc' => __('Select a secondary clash colour.', 'options_check'), 'id' => 'secondary_colorpicker', 'std' => '', 'type' => 'color' ); $options[] = array( 'desc' => __('Select text colour to go on top of your main colour scheme', 'options_check'), 'id' => 'text_colorpicker', 'std' => '', 'type' => 'color' ); $options[] = array( 'desc' => __('Select the text colour of the headings within your widgets', 'options_check'), 'id' => 'widgetheader_colorpicker', 'std' => '', 'type' => 'color' ); $options[] = array( "desc" => __('Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}', 'options_check'), "id" => 'custom_css', "type" => 'textarea', "std" => ""); return $options; }