__('Red', 'gamepress'),"green" => __('Green', 'gamepress'),"blue" => __('Blue', 'gamepress'),"orange" =>__('Orange', 'gamepress')); // HomePage layout $hp_layout = array("1" => __('Display full content for each post', 'gamepress'),"2" => __('Display excerpt and big thumbnail', 'gamepress'), "3" => __('Display excerpt and small thumbnail', 'gamepress')); // HomePage include $hp_include = array( 'gamepress_reviews' => __('Game Reviews', 'gamepress'), 'gamepress_video' => __('Videos', 'gamepress') ); $radio = array("0" => __('No', 'gamepress'),"1" => __('Yes', 'gamepress')); $slider_type = array ("1" => __('Default Nivo Slider','gamepress'),"2" => __('Nivo Slider with thumbs navigation', 'gamepress')); // 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 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_stylesheet_directory_uri() . '/images/'; $options = array(); $options[] = array( "name" => __('Basic settings', 'gamepress'), "type" => "heading"); $options[] = array( "name" => __('Color scheme', 'gamepress'), "desc" => __('Select color scheme.', 'gamepress'), "id" => "color_scheme", "std" => "one", "type" => "select", "class" => "mini", //mini, tiny, small "options" => $color_scheme); $options[] = array( "name" => __('Custom logo image', 'gamepress'), "desc" => __('You can upload custom image for your website logo (optional).', 'gamepress'), "id" => "logo_image", "type" => "upload"); $options[] = array( "name" => __('Do You want to use custom favicon?','gamepress'), "id" => "favicon_radio", "std" => "0", "type" => "radio", "options" => $radio); $options[] = array( "name" => __('Favicon URL', 'gamepress'), "desc" => __('If You choose to use custom favicon, input here FULL URL to the favicon.ico image.', 'gamepress'), "id" => "favicon_url", "type" => "text"); $options[] = array( "name" => __('Home Page settings', 'gamepress'), "type" => "heading"); $options[] = array( "name" => __('Home Page layout', 'gamepress'), "id" => "hp_layout", "std" => "1", "type" => "select", "options" => $hp_layout); $options[] = array( "name" => __('Select custom post types, that You want to include on the home page', 'gamepress'), "desc" => __('These custom post types will be also included in archives pages', 'gamepress'), "id" => "hp_include", "std" => "one", "type" => "multicheck", "options" => $hp_include); $options[] = array( "name" => __('Do You want to display image slider on the Home Page?','gamepress'), "id" => "slider_radio", "std" => "0", "type" => "radio", "options" => $radio); $options[] = array( "name" => __('Select Category for Featured Posts slider', 'gamepress'), "desc" => __('Posts from this category will be rotating in image slider on the Home Page. IMPORTANT: Make sure all posts in this category have Featured Image set.', 'gamepress'), "id" => "slider_category", "type" => "select", "options" => $options_categories); $options[] = array( "name" => __('Slider type', 'gamepress'), "id" => "slider_type", "std" => "1", "type" => "select", "class" => "mini", //mini, tiny, small "options" => $slider_type); return $options; }