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:"); // Image Alignment radio box $options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center"); // Image Links to Options $options_image_link_to = array("image" => "The Image","post" => "The Post"); //Testing $options_select = array("one","two","three","four","five"); $options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five"); //Stylesheets Reader $alt_stylesheet_path = OF_FILEPATH . '/styles/'; $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; } } } } //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"); // Set the Options Array $options = array(); $options[] = array( "name" => "Home page Header Settings", "type" => "heading"); $options[] = array( "name" => "Website Logo", "desc" => "Upload a desired image to be used as the logo for your site, or simply type in the address of the image (http://www.example.com/image.png).", "id" => $shortname."_logo", "std" => "", "type" => "upload"); $options[] = array( "name" => "Headers Adds Image", "desc" => "Upload a Adds image to be used as the Adds for your site, or simply type in the address of the image (http://www.example.com/image.png)", "id" => $shortname."_headeraddimg", "std" => "", "type" => "upload"); $options[] = array( "name" => "Footer ", "type" => "heading"); //CREDIT IS AN ESSENTIAL OF LIFE! $options[] = array( "name" => "Footer Logo", "desc" => "Footer Logo", "id" => $shortname."_footerlogo", "std" => "", "type" => "upload"); $options[] = array( "name" => "Footer Description", "desc" => "Footer Description", "id" => $shortname."_getfooterdesc", "std" => "", "type" => "textarea"); $options[] = array( "name" => "Footer Address", "desc" => "Footer Address", "id" => $shortname."_getfooteraddress", "std" => "", "type" => "textarea"); $options[] = array( "name" => "Footer Email", "desc" => "Footer Email", "id" => $shortname."_getfooteremail", "std" => "", "type" => "text"); $options[] = array( "name" => "Footer Contact Number", "desc" => "Get Started Footer Contact Number", "id" => $shortname."_getfootercontact", "std" => "", "type" => "text"); /*=============================================Social Link======================================================*/ $options[] = array( "name" => "Footer Social Link", "type" => "heading"); //CREDIT IS AN ESSENTIAL OF LIFE! $options[] = array( "name" => "Facebook Link", "desc" => "Facebook Link", "id" => $shortname."_facebooklink", "std" => "", "type" => "text"); $options[] = array( "name" => "Twitter Link", "desc" => "Twitter Link", "id" => $shortname."_twitterlink", "std" => "", "type" => "text"); $options[] = array( "name" => "Linked in Link", "desc" => "Linked in Link", "id" => $shortname."_linkedlink", "std" => "", "type" => "text"); $options[] = array( "name" => "Instagram Link", "desc" => "Instagram Link", "id" => $shortname."_instagramlink", "std" => "", "type" => "text"); $options[] = array( "name" => "You Tube Link", "desc" => "You Tube Link", "id" => $shortname."_youtubelink", "std" => "", "type" => "text"); update_option('of_template',$options); update_option('of_themename',$themename); update_option('of_shortname',$shortname); } } ?>