cat_ID] = $of_cat->cat_name;} $categories_tmp = array_unshift($of_categories, "Select a category:"); //Access the WordPress Pages via an Array $of_pages = array(); $of_pages_obj = get_pages('sort_column=post_parent,menu_order'); foreach ($of_pages_obj as $of_page) { $of_pages[$of_page->ID] = $of_page->post_name; } $of_pages_tmp = array_unshift($of_pages, "Select a page:"); //Testing $of_options_select = array("one","two","three","four","five"); $of_options_select_bg = array("whites" => "White Section","grays" => "Gray Section"); $of_options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five"); //Sample Homepage blocks for the layout manager (sorter) $of_options_homepage_blocks = array ( "disabled" => array ( "placebo" => "placebo", //REQUIRED! "block_one" => "Slider", ), "enabled" => array ( "placebo" => "placebo", //REQUIRED! "block_two" => "Intro Text", "block_three" => "Services", "block_four" => "Recent Portfolio", "block_five" => "Info Area", "block_six" => "Video Area", "block_seven" => "Content Slider", "block_eight" => "Recent Posts", "block_nine" => "Call to Action", ), ); //Stylesheets Reader $alt_stylesheet_path = get_stylesheet_directory(). '/css/skins/'; // $alt_stylesheets = array(); if ( is_dir($alt_stylesheet_path) ) { if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) { while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) { if(stristr($alt_stylesheet_file, ".css") !== false) { $alt_stylesheets[] = $alt_stylesheet_file; } } } } //Background Images Reader $bg_images_path = get_stylesheet_directory(). '/img/bg/'; // change this to where you store your bg images $bg_images_url = get_template_directory_uri().'/img/bg/'; // change this to where you store your bg images $bg_images = array(); if ( is_dir($bg_images_path) ) { if ($bg_images_dir = opendir($bg_images_path) ) { while ( ($bg_images_file = readdir($bg_images_dir)) !== false ) { if(stristr($bg_images_file, ".png") !== false || stristr($bg_images_file, ".jpg") !== false) { natsort($bg_images); //Sorts the array into a natural order $bg_images[] = $bg_images_url . $bg_images_file; } } } } /*-----------------------------------------------------------------------------------*/ /* TO DO: Add options/functions that use these */ /*-----------------------------------------------------------------------------------*/ //More Options $uploads_arr = wp_upload_dir(); $all_uploads_path = $uploads_arr['path']; $all_uploads = get_option('of_uploads'); $other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"); $body_repeat = array("no-repeat","repeat-x","repeat-y","repeat"); $body_pos = array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right"); // Image Alignment radio box $of_options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center"); // Image Links to Options $of_options_image_link_to = array("image" => "The Image","post" => "The Post"); /*-----------------------------------------------------------------------------------*/ /* The Options Array */ /*-----------------------------------------------------------------------------------*/ // Set the Options Array global $of_options; $of_options = array(); /*-----------------------------------------------------------------------------------*/ /* GENERAL SETTINGS */ /*-----------------------------------------------------------------------------------*/ $of_options[] = array( "name" => "General Settings", "type" => "heading" ); $url = ADMIN_DIR . 'assets/images/'; $logo_images_url = get_template_directory_uri().'/img/'; $favicon_images_url = get_template_directory_uri().'/img/'; $of_options[] = array( "name" => "Logo Uploader", "desc" => "Upload your logo. Recommended size: 220x52 pixels.", "id" => "wowlogo_upload", "std" => $logo_images_url."logo.png", "type" => "upload" ); $of_options[] = array( "name" => "Favicon Uploader", "desc" => "Upload your favicon. Size: 16x16 pixels or 32x32 pixels", "id" => "favicon_upload", "std" => $favicon_images_url."favicon.png", "type" => "upload" ); $of_options[] = array( "name" => "Tracking Code", "desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.", "id" => "google_analytics_textarea", "std" => "", "type" => "textarea" ); $of_options[] = array( "name" => "Styling Options", "type" => "heading" ); $of_options[] = array( "name" => "Styling Options", "desc" => "", "id" => "stylingopt", "std" => "These settings are optional (will override the default style but you can revert manually)", "icon" => true, "type" => "info" ); $of_options[] = array( "name" => "Boxed Layout", "desc" => "Enable it if you prefer the boxed layout
Disable it if you prefer the full width layout", "id" => "switch_themelayouts", "std" => 1, "on" => "Enable", "off" => "Disable", "type" => "switch" ); $of_options[] = array( "name" => "", "desc" => "Define boxed layout width (enter value px or percentage, example: 1060px or 78%)", "id" => "boxed_width", "std" => "1060px", "type" => "text" ); $of_options[] = array( "name" => "", "desc" => "Select a background pattern (if layout boxed enabled).", "id" => "custom_bg", "std" => $bg_images_url."bg12.png", "type" => "tiles", "options" => $bg_images, ); $of_options[] = array( "name" => "", "desc" => "Pick a background color for the theme (optional, if boxed layout enabled).", "id" => "body_background_color", "std" => "", "type" => "color" ); $of_options[] = array( "name" => "Upload Background Image", "desc" => "Upload your own image background instead", "id" => "bgbody_upload", "std" => "", "type" => "media" ); $of_options[] = array( "name" => "Background Attachment", "desc" => "", "id" => "bg_attachment", "std" => "", "type" => "select", "options" => array('fixed' => 'fixed', 'scroll' => 'scroll')); $of_options[] = array( "name" => "Background Repeat", "desc" => "", "id" => "bg_repeat", "std" => "", "type" => "select", "options" => array('repeat' => 'repeat', 'repeat-x' => 'repeat-x', 'repeat-y' => 'repeat-y', 'no-repeat' => 'no-repeat')); $of_options[] = array( "name" => "100% Background Image", "desc" => "Have background image always at 100% in width and height and scale according to the browser size.", "id" => "bg_full", "std" => 0, "type" => "checkbox"); /*-----------------------------------------------------------------------------------*/ /* BACKUP OPTIONS */ /*-----------------------------------------------------------------------------------*/ $of_options[] = array( "name" => "Go Premium", "type" => "heading", "icon" => ADMIN_IMAGES . "icon-slider.png" ); $of_options[] = array( "name" => "", "desc" => "", "id" => "premiumfino", "std" =>"Need more than a blog? Get all features and theme options with our premium version.
Click here for more details or preview the live demo.

", "type" => "info" ); }//End function: of_options() }//End chack if function exists: of_options() ?>