"On", "off" => "Off" ); $on_off = array( "on" => "On", "off" => "Off" ); $background_defaults = array( 'color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll' ); //Stylesheet Reader $alt_stylesheets = array( "green" => "green", "black" => "black", "blue" => "blue", "orange" => "orange", "pink" => "pink", "red" => "red", "skyblue" => "skyblue" ); //Listing publish mode //RTL Stylesheet Reader $lan_stylesheets = array( "default" => "default", "rtl" => "rtl" ); $post_mode = array( 'pending' => 'Pending', 'publish' => 'Publish' ); // 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_template_directory_uri() . '/images/'; $options = array( array( "name" => GEN_SETTING, "type" => "heading" ), array( "name" => CUSTOM_LOGO, "desc" => CUSTOM_LOGO_DES, "id" => "inkthemes_logo", "type" => "upload" ), array( "name" => CUSTOM_FAVICON, "desc" => FAVICON_DES, "id" => "inkthemes_favicon", "type" => "upload" ), array( "name" => BG_IMG, "desc" => BG_IMG_DES, "id" => "bodybg", "std" => "", "type" => "upload" ), array( "name" => "Front Page On/Off", "desc" => "Check on for enabling front page or check off for enabling blog page in front page", "id" => "re_nm", "std" => "on", "type" => "radio", "options" => $file_rename ), array( "name" => HOME_SETTING, "type" => "heading" ), array( "name" => POST_BTN, "desc" => POST_BTN_DES, "id" => "post_btn", "std" => "", "type" => "text" ), array( "name" => HOME_F_SLIDER, "desc" => HOME_F_SLIDER_DES, "id" => "home_feature_txt", "std" => "GeoCraft Directory Listing Theme", "type" => "text" ), //****=============================================================================****// //****-----------This code is used for creating home page feature content----------****// //****=============================================================================****// array( "name" => LISTING_SETTING, "type" => "heading" ), array( "name" => FREE_LISTING, "desc" => FREE_LISTING_DES, "id" => "free_post_mode", "std" => "pending", "type" => "select", "options" => $post_mode ), array( "name" => PAID_LISTING, "desc" => PAID_LISTING_DES, "id" => "paid_post_mode", "std" => "publish", "type" => "select", "options" => $post_mode ), array( "name" => "Slider Limit", "desc" => "Enter your digit for limitation the slider. Default is 20. Note: It will be applied for both homepage and category page slider.", "id" => "slider_limit", "std" => 20, "type" => "text" ), array( "name" => "Enable Terms & Conditions Block on Registration page.", "desc" => "Check on for enabling terms & conditions on registration page", "id" => "reg_terms", "std" => "", "type" => "radio", "options" => $on_off ), array( "name" => "Filter Listings Top By Paid Listing", "desc" => "Check on, if you want to show paid listing on top of the list on listing page and home page.", "id" => "filter_by_paid", "std" => "", "type" => "radio", "options" => $on_off ), array( "name" => "Terms & Conditions Url", "desc" => "Enter url for terms and conditions.", "id" => "gc_terms", "std" => '', "type" => "text" ), //****=============================================================================****// //****-----------This code is used for creating color styleshteet options----------****// //****=============================================================================****// array( "name" => STYLING_OPTION, "type" => "heading" ), array( "name" => CUSTOM_CSS, "desc" => CUSTOM_CSS_DES, "id" => "customcss", "std" => "", "type" => "textarea" ), ); geocraft_update_option( 'of_template', $options ); geocraft_update_option( 'of_themename', $themename ); geocraft_update_option( 'of_shortname', $shortname ); } } ?>