cat_ID] = $category->cat_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; } // The Options Array $options = array(); $options[] = array( 'name' => 'Layout Options', 'type' => 'heading' ); $options[] = array( 'name' => 'Display Homepage Widget Row', 'desc' => 'Select the checkbox to display the homepage widget row, which allows you to place three widgets in line below the slider.', 'id' => 'best_display_homepage_widget_row', 'std' => 1, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Display Featured Content Bar', 'desc' => 'Select the checkbox to display the featured content bar, which appears at the top of your inner pages throughout the site. This section is perfect for marketing and promotions purposes.', 'id' => 'best_display_featured_bar', 'std' => 0, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Featured Content Bar Text', 'desc' => 'This section supports HTML tags if desired. This text is wrapped in a paragraph element for formatting.', 'id' => 'best_featured_bar', 'std' => 'Something Important (set background color, image, text, and link)', 'class' => 'hidden', 'type' => 'textarea' ); $options[] = array( 'name' => 'Blog Slider', 'desc' => 'Select the checkbox to display the slider at the top of your blog page.', 'id' => 'best_blog_slider', 'std' => 0, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Blog Pagination Option', 'desc' => 'Select the checkbox to display custom pagination with advanced features. Deselecting the checkbox will display standard WordPress pagination.', 'id' => 'best_pagination_option', 'std' => 1, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Display Twitter Integration', 'desc' => 'Select the checkbox to display the Twitter integration above the footer.', 'id' => 'best_display_twitter', 'std' => 1, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Twitter Username', 'desc' => 'Enter your Twitter username to have your latest tweet displayed above the footer.', 'id' => 'best_twitter', 'std' => 'generasite', 'class' => 'hidden mini', 'type' => 'text' ); $options[] = array( 'name' => 'Display Footer Top', 'desc' => 'Select the checkbox to display the top section of the footer, which contains widget areas.', 'id' => 'best_display_footer_top', 'std' => 1, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Display Footer Bottom', 'desc' => 'Select the checkbox to display the bottom section of the footer, which contains a space for a tagline and a menu.', 'id' => 'best_display_footer_bottom', 'std' => 1, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Footer Bottom Tagline', 'desc' => 'Enter a brief tagline about your site, which will display on the left side of the bottom section of the footer. This section supports HTML tags if desired. This text is wrapped in a paragraph element for formatting.', 'id' => 'best_footer_bottom_tagline', 'std' => 'Copyright © 2014 BestRespo', 'class' => 'hidden', 'type' => 'textarea' ); $options[] = array( 'name' => 'Layout', 'type' => 'heading' ); $options[] = array( 'name' => 'Do You want to use custom favicon?', 'id' => 'best_display_favicon', 'std' => 0, 'type' => 'checkbox' ); $options[] = array( 'name' => 'Favicon URL', 'desc' => 'If You choose to use custom favicon, input here full url to the favicon.ico image', 'id' => 'best_favicon', 'type' => 'text', 'class' => 'hidden' ); $options[] = array( 'name' => 'Logo Uploader', 'id' => 'best_heading_img', 'class' => 'medium', 'type' => 'upload' ); return $options; } add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts'); function optionsframework_custom_scripts() { ?>