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; } // Disable Panel Elements Array $dp_elements = array( 'fw_update' => __('Framework Update.', 'acosmin'), 'fw_update_notice' => __('Framework Update Notice.', 'acosmin'), 'th_update_notice' => __('Theme Update Notice.', 'acosmin'), 'ac_panel_news_widget' => __('Acosmin News Widget.', 'acosmin'), ); $dp_elements_defaults = array( 'fw_update' => '0', 'fw_update_notice' => '0', 'th_update_notice' => '0', 'ac_panel_news_widget' => '0' ); // If using image radio buttons, define a directory path $imagepath = get_template_directory_uri() . '/acosmin/framework/images/'; $imagepath_extensions = get_template_directory_uri() . '/acosmin/framework/extensions/images/'; $options = array(); $options[] = array( 'name' => __('Basic Settings', 'acosmin'), 'type' => 'heading'); $options[] = array( 'name' => __('Information', 'acosmin'), 'desc' => __('- You can upload a logo and see it live by using the', 'acosmin') . ' ' . __('Theme Customizer', 'acosmin') . '.
', 'type' => 'info'); $options[] = array( 'name' => __('Favicon', 'options_framework_theme'), 'desc' => __('Upload a favicon image for your website. (16x16px)', 'acosmin'), 'id' => 'ac_favicon_desktop', 'type' => 'upload'); $options[] = array( 'name' => __('Custom RSS Feed Url:', 'acosmin'), 'desc' => __('Ex: http://feeds.feedburner.com/acosmin', 'acosmin'), 'id' => 'ac_custom_rss_url', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Google Analytics Script', 'acosmin'), 'desc' => __('Enable Google Analytics on your website. Add your code in the textarea.', 'acosmin'), 'id' => 'ac_google_analytics_code', 'std' => '', 'type' => 'textarea'); $options[] = array( 'name' => __('Disable', 'acosmin'), 'desc' => __('These elements won\'t show up if you check the boxes.', 'acosmin'), 'id' => 'ac_disable_panel_elements', 'std' => $dp_elements_defaults, 'type' => 'multicheck', 'options' => $dp_elements); /* ------------------------------------------------------------------- */ $ac_theme_options = apply_filters( 'ac_other_theme_options', array( 'acosmin/framework/extensions/options-theme.php' ) ); if ( $other_theme_options_file = locate_template( $ac_theme_options ) ) { $maybe_other_theme_options = require_once $other_theme_options_file; } return $options; }