"Flex Slider","nivo" => "Nivo Slider"); $animation_array = array("fade" => "fade","slide" => "slide"); // 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; } $pages_array = get_pages('hide_empty=0'); $site_pages = array(); $pages_ids = array(); foreach ($pages_array as $p_arr) { $site_pages[$p_arr->ID] = htmlspecialchars($p_arr->post_title); $pages_ids[] = $p_arr->ID; } // If using image radio buttons, define a directory path $imagepath = get_bloginfo('stylesheet_directory') . '/images/'; $shortname = "vpthemes"; $options = array(); //=======================================================// // GENERAL SETTINGS // //=======================================================// $options[] = array( "name" => "General Settings", "type" => "heading"); $options[] = array( "name" => "Custom Logo:", "desc" => "You can upload a logo for your theme, or specify an image URL directly.", "id" => "custom_logo_path", "type" => "upload"); $options[] = array( "name" => "Custom Logo ALT Text:", "desc" => "Please specifies an alternate text for the logo.", "id" => "alt_text", "std" => "Austerity", "type" => "text"); $options[] = array( "name" => "Favicon:", "desc" => "Upload/Select (ico) image 16x16 px to be used as favicon.", "id" => "favicon", "type" => "upload"); $options[] = array( "name" => "Meta Keywords:", "desc" => "Please enter meta keywords separated by comma.", "id" => "keywords", "std" => "", "type" => "text"); $options[] = array( "name" => "Site Description Text:", "desc" => "Please enter site description.", "id" => "site_description", "std" => "", "type" => "textarea"); $options[] = array( "name" => "Post/Page Comments:", "desc" => "Select if you want to enable/disable comments on posts or pages.", "id" => "post_comments", "std" => "Show", "type" => "select", "class" => "mini", "options" => array('Show', 'Hide')); $options[] = array( "name" => "Breadcrumbs:", "desc" => "Select if you want to enable/disable breadcrumbs.", "id" => "breadcrumbs", "std" => "Show", "type" => "select", "class" => "mini", "options" => array('Show', 'Hide')); $options[] = array( "name" => "Tracking Code:", "desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer the theme.", "id" => "tracking_code", "std" => "", "type" => "textarea"); //=======================================================// // HOMEPAGE SETTINGS // //=======================================================// $options[] = array( "name" => "Homepage Settings", "type" => "heading"); $options[] = array( "type" => "preheader", "name" => "Image Slider"); $options[] = array( "name" => "Slider Category:", "desc" => "Select category for the featured slider.", "id" => "slider_cat", "type" => "select", "options" => $options_categories); $options[] = array( "name" => "Number of Slides to Display:", "desc" => "Select the number of slides to display on the home page slider.", "id" => "feat_slider_num", "std" => "3", "class" => "mini", "type" => "text"); $options[] = array( "name" => "Slider Animation Effect:", "desc" => "Select slider animation effect.", "id" => "slider_animation", "std" => "fade", "type" => "select", "options" => $animation_array); $options[] = array( "name" => "Slide Delay:", "desc" => "Enter slide animation delay time in milliseconds. e.g. 8000.", "id" => "slider_delay", "std" => "8000", "class" => "mini", "type" => "text"); $options[] = array( "type" => "preheader", "name" => "Services Section"); $options[] = array( "name" => "Content Area 1:", "desc" => "Select page to display in the first box.", "id" => "home_area1", "type" => "select", "options" => $site_pages); $options[] = array( "name" => "Content Area 2:", "desc" => "Select page to display in the second box.", "id" => "home_area2", "type" => "select", "options" => $site_pages); $options[] = array( "name" => "Content Area 3:", "desc" => "Select page to display in the third box.", "id" => "home_area3", "type" => "select", "options" => $site_pages); $options[] = array( "type" => "preheader", "name" => "Call to Action Section"); $options[] = array( "name" => "Enable Call to Action:", "desc" => "Enable call to action section on the homepage.", "id" => "call_to_action_enable", "std" => "1", "type" => "checkbox"); $options[] = array( "name" => "Section Text:", "desc" => "Enter text to display in the section.", "id" => "call_to_action_text", "std" => "", "type" => "textarea"); $options[] = array( "name" => "Button Text:", "desc" => "Enter text for the button.", "id" => "button_text", "std" => "Get Started Today!", "type" => "text"); $options[] = array( "name" => "Button URL:", "desc" => "Enter URL. e.g. http://www.yoursite.com.", "id" => "button_url", "std" => "", "type" => "text"); //=======================================================// // STYLING OPTIONS // //=======================================================// $options[] = array( "name" => "Styling Options", "type" => "heading"); $options[] = array( "name" => "Select Background Image:", "desc" => "Images for layout.", "id" => "preset_bkg", "std" => "1", "type" => "images", "options" => array( '1' => $imagepath . 'pattern-none.png', '2' => $imagepath . 'pattern-1.png', '3' => $imagepath . 'pattern-2.png', '4' => $imagepath . 'pattern-3.png' ) ); $options[] = array( "name" => "Custom Background Image:", "desc" => "You can upload an image for the theme's background.", "id" => "bkg_image", "type" => "upload"); $options[] = array( "name" => "Background Image Repeat:", "desc" => "Select how you would like to repeat the background image.", "id" => "bkg_image_rpt", "std" => "3", "type" => "select", "class" => "mini", "options" => array('no-repeat', 'repeat-x','repeat-y','repeat')); $options[] = array( "name" => "Background Image Position:", "desc" => "Select how you would like to position the background image.", "id" => "bkg_image_pos", "std" => "0", "type" => "select", "class" => "mini", "options" => array('top left', 'top center','top right','center left','center center','center right','bottom left','bottom center','bottom right')); $options[] = array( "name" => "Body Background Color:", "desc" => "Enter color code. Example: #333333.", "id" => "bkg_color", "std" => "", "type" => "color"); $options[] = array( "type" => "preheader", "name" => "Call to Action Section"); $options[] = array( "name" => "Section Text Color:", "desc" => "Enter color code. Example: #333333.", "id" => "action_text_color", "std" => "", "type" => "color"); $options[] = array( "name" => "Button Color:", "desc" => "Enter color code. Example: #333333.", "id" => "button_color", "std" => "", "type" => "color"); $options[] = array( "name" => "Button Hover Color:", "desc" => "Enter color code. Example: #333333.", "id" => "button_hover_color", "std" => "", "type" => "color"); $options[] = array( "name" => "Button Text Color:", "desc" => "Enter color code. Example: #333333.", "id" => "button_text_color", "std" => "", "type" => "color"); $options[] = array( "name" => "Button Text Hover Color:", "desc" => "Enter color code. Example: #333333.", "id" => "button_text_hover_color", "std" => "", "type" => "color"); //=======================================================// // SOCIAL SETTINGS // //=======================================================// $options[] = array( "name" => "Social Settings", "type" => "heading"); $options[] = array( "name" => "Twitter:", "desc" => "Enter your profile URL.", "id" => "twitter_url", "std" => "", "type" => "text"); $options[] = array( "name" => "Facebook:", "desc" => "Enter your profile URL.", "id" => "facebook_url", "std" => "", "type" => "text"); $options[] = array( "name" => "Flickr:", "desc" => "Enter your profile URL.", "id" => "flickr_url", "std" => "", "type" => "text"); $options[] = array( "name" => "LinkedIn:", "desc" => "Enter your profile URL.", "id" => "linkedin_url", "std" => "", "type" => "text"); $options[] = array( "name" => "Enable Sharing Buttons:", "desc" => "Enable/Disable sharing buttons per single post page.", "id" => "sharing_on", "std" => "1", "type" => "checkbox"); $options[] = array( "name" => "AddThis User Name:", "desc" => "Enter your profile user name.", "id" => "addthis_user", "std" => "", "type" => "text"); //=======================================================// // PORTFOLIO SETTINGS // //=======================================================// $options[] = array( "name" => "Portfolio Settings", "type" => "heading"); $options[] = array( "name" => "Hover Background Opacity:", "desc" => "Select hover background opacity from 0 to 1.", "id" => "opacity_overlay", "std" => "2", "type" => "select", "class" => "mini", "options" => array('1','0.9', '0.8','0.7','0.6','0.5','0.4','0.3','0.2','0.1','0')); $options[] = array( "name" => "Hover Background Color:", "desc" => "Enter color code. Example: #333333.", "id" => "mosaic_overlay_color", "std" => "", "type" => "color"); $options[] = array( "name" => "Hover Text Color:", "desc" => "Enter color code. Example: #333333.", "id" => "hover_text_color", "std" => "", "type" => "color"); //=======================================================// // CONTACT SETTINGS // //=======================================================// $options[] = array( "name" => "Contact Settings", "type" => "heading"); $options[] = array( "name" => "Contact Address:", "desc" => "Enter your contact address.", "id" => "contact_address", "std" => "", "type" => "textarea"); $options[] = array( "name" => "Phone Number:", "desc" => "Enter your phone number.", "id" => "phone_number", "std" => "", "type" => "text"); $options[] = array( "name" => "Fax Number:", "desc" => "Enter your fax number.", "id" => "fax_number", "std" => "", "type" => "text"); $options[] = array( "name" => "Contact Form Email (Never be published):", "desc" => "Enter your email address that you want the contact form to send emails to.", "id" => "contact_email", "std" => "", "type" => "text"); return $options; }