diff --git a/admin/assets/images/blog1.png b/admin/assets/images/blog1.png deleted file mode 100644 index fcc950d..0000000 Binary files a/admin/assets/images/blog1.png and /dev/null differ diff --git a/admin/assets/images/blog2.png b/admin/assets/images/blog2.png deleted file mode 100644 index e86cbad..0000000 Binary files a/admin/assets/images/blog2.png and /dev/null differ diff --git a/admin/assets/images/blog3.png b/admin/assets/images/blog3.png deleted file mode 100644 index 9eb2e57..0000000 Binary files a/admin/assets/images/blog3.png and /dev/null differ diff --git a/admin/assets/images/blog4.png b/admin/assets/images/blog4.png deleted file mode 100644 index 015fcd2..0000000 Binary files a/admin/assets/images/blog4.png and /dev/null differ diff --git a/admin/assets/images/blog5.png b/admin/assets/images/blog5.png deleted file mode 100644 index 84452db..0000000 Binary files a/admin/assets/images/blog5.png and /dev/null differ diff --git a/admin/assets/images/pf2.png b/admin/assets/images/pf2.png deleted file mode 100644 index 1c6f072..0000000 Binary files a/admin/assets/images/pf2.png and /dev/null differ diff --git a/admin/assets/images/pf22.png b/admin/assets/images/pf22.png deleted file mode 100644 index da93d23..0000000 Binary files a/admin/assets/images/pf22.png and /dev/null differ diff --git a/admin/assets/images/pf3.png b/admin/assets/images/pf3.png deleted file mode 100644 index 20011fb..0000000 Binary files a/admin/assets/images/pf3.png and /dev/null differ diff --git a/admin/assets/images/pf32.png b/admin/assets/images/pf32.png deleted file mode 100644 index a429b01..0000000 Binary files a/admin/assets/images/pf32.png and /dev/null differ diff --git a/admin/assets/images/pf4.png b/admin/assets/images/pf4.png deleted file mode 100644 index b4859b2..0000000 Binary files a/admin/assets/images/pf4.png and /dev/null differ diff --git a/admin/assets/images/pf42.png b/admin/assets/images/pf42.png deleted file mode 100644 index 354a5b4..0000000 Binary files a/admin/assets/images/pf42.png and /dev/null differ diff --git a/admin/assets/images/pfg3.png b/admin/assets/images/pfg3.png deleted file mode 100644 index 773291f..0000000 Binary files a/admin/assets/images/pfg3.png and /dev/null differ diff --git a/admin/assets/images/pfg32.png b/admin/assets/images/pfg32.png deleted file mode 100644 index e94dc0f..0000000 Binary files a/admin/assets/images/pfg32.png and /dev/null differ diff --git a/admin/assets/images/pfg4.png b/admin/assets/images/pfg4.png deleted file mode 100644 index 4b953a2..0000000 Binary files a/admin/assets/images/pfg4.png and /dev/null differ diff --git a/admin/functions/functions.mediauploader.php b/admin/functions/functions.mediauploader.php deleted file mode 100644 index acb7e14..0000000 --- a/admin/functions/functions.mediauploader.php +++ /dev/null @@ -1,213 +0,0 @@ - array( - 'name' => __( 'Options' ), - ), - 'public' => true, - 'show_ui' => false, - 'capability_type' => 'post', - 'hierarchical' => false, - 'rewrite' => false, - 'supports' => array( 'title', 'editor' ), - 'query_var' => false, - 'can_export' => true, - 'show_in_nav_menus' => false - ) ); - } -} - -/** - * Forces insert into post -*/ - -add_filter( 'get_media_item_args', 'force_send' ); -function force_send($args){ - $args['send'] = true; - return $args; -} - -/** - * Adds the Thickbox CSS file and specific loading and button images to the header - * on the pages where this function is called. - */ - -if ( ! function_exists( 'optionsframework_mlu_css' ) ) { - - function optionsframework_mlu_css () { - - $_html = ''; - $_html .= '' . "\n"; - $_html .= '' . "\n"; - - echo $_html; - - } - -} - -/** - * Registers and enqueues (loads) the necessary JavaScript file for working with the - * Media Library-driven AJAX File Uploader Module. - */ - -if ( ! function_exists( 'optionsframework_mlu_js' ) ) { - - function optionsframework_mlu_js () { - - // Registers custom scripts for the Media Library AJAX uploader. - wp_register_script( 'of-medialibrary-uploader', ADMIN_DIR .'assets/js/of-medialibrary-uploader.js', array( 'jquery', 'thickbox' ) ); - wp_enqueue_script( 'of-medialibrary-uploader' ); - wp_enqueue_script( 'media-upload' ); - } - -} - -/** - * Uses "silent" posts in the database to store relationships for images. - * This also creates the facility to collect galleries of, for example, logo images. - * - * Return: $_postid. - * - * If no "silent" post is present, one will be created with the type "optionsframework" - * and the post_name of "of-$_token". - * - * Example Usage: - * optionsframework_mlu_get_silentpost ( 'of_logo' ); - */ - -if ( ! function_exists( 'optionsframework_mlu_get_silentpost' ) ) { - - function optionsframework_mlu_get_silentpost ( $_token ) { - - global $wpdb; - $_id = 0; - - // Check if the token is valid against a whitelist. - // $_whitelist = array( 'of_logo', 'of_custom_favicon', 'of_ad_top_image' ); - // Sanitise the token. - - $_token = strtolower( str_replace( ' ', '_', $_token ) ); - - // if ( in_array( $_token, $_whitelist ) ) { - if ( $_token ) { - - // Tell the function what to look for in a post. - - $_args = array( 'post_type' => 'options', 'post_name' => 'of-' . $_token, 'post_status' => 'draft', 'comment_status' => 'closed', 'ping_status' => 'closed' ); - - // Look in the database for a "silent" post that meets our criteria. - $query = 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_parent = 0'; - foreach ( $_args as $k => $v ) { - $query .= ' AND ' . $k . ' = "' . $v . '"'; - } // End FOREACH Loop - - $query .= ' LIMIT 1'; - $_posts = $wpdb->get_row( $query ); - - // If we've got a post, loop through and get it's ID. - if ( count( $_posts ) ) { - $_id = $_posts->ID; - } else { - - // If no post is present, insert one. - // Prepare some additional data to go with the post insertion. - $_words = explode( '_', $_token ); - $_title = join( ' ', $_words ); - $_title = ucwords( $_title ); - $_post_data = array( 'post_title' => $_title ); - $_post_data = array_merge( $_post_data, $_args ); - $_id = wp_insert_post( $_post_data ); - } - } - return $_id; - } -} - -/** - * Trigger code inside the Media Library popup. - */ - -if ( ! function_exists( 'optionsframework_mlu_insidepopup' ) ) { - - function optionsframework_mlu_insidepopup () { - - if ( isset( $_REQUEST['is_optionsframework'] ) && $_REQUEST['is_optionsframework'] == 'yes' ) { - - add_action( 'admin_head', 'optionsframework_mlu_js_popup' ); - add_filter( 'media_upload_tabs', 'optionsframework_mlu_modify_tabs' ); - } - } -} - -if ( ! function_exists( 'optionsframework_mlu_js_popup' ) ) { - - function optionsframework_mlu_js_popup () { - - $_of_title = $_REQUEST['of_title']; - if ( ! $_of_title ) { $_of_title = 'file'; } // End IF Statement -?> - -cat_ID] = $of_cat->cat_name;} - $categories_tmp = array_unshift($of_categories, "Select a category:"); +if (!function_exists('of_options')) +{ + function of_options() + { + //Access the WordPress Categories via an Array + $of_categories = array(); + $of_categories_obj = get_categories('hide_empty=0'); + foreach ($of_categories_obj as $of_cat) { + $of_categories[$of_cat->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:"); - - - //================== Custom options - //-- Color Scheme - $of_options_color_scheme = array("black","blue","blue2","brown","brown2","darkblue","darkorange","darkgreen","darkred","fire","gray","green","green2","indianred","indigo","lightblue","lightbrown","lime","olive","orange","pinkred","purple","red","sahara","silver","teal","tealgray","tomato","violet","yellow"); - - //Background Images Reader - $bg_images_path = STYLESHEETPATH. '/images/pattern/'; // change this to where you store your bg images - $bg_images_url = get_stylesheet_directory_uri().'/images/pattern/'; // 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) { - $bg_images[] = $bg_images_url . $bg_images_file; - } - } - } - } + //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_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" => "Block One", + "block_two" => "Block Two", + "block_three" => "Block Three", + ), + "enabled" => array ( + "placebo" => "placebo", //REQUIRED! + "block_four" => "Block Four", + ), + ); + + + //Stylesheets Reader + $alt_stylesheet_path = LAYOUT_PATH; + $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(). '/images/bg/'; // change this to where you store your bg images + $bg_images_url = get_template_directory_uri().'/images/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; + } + } + } + } + - $imgs_url = get_stylesheet_directory_uri().'/images/'; - $admin_imgs_url = get_stylesheet_directory_uri().'/admin/assets/images/'; + /*-----------------------------------------------------------------------------------*/ + /* 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 -============================================================================================================= -------------------------------------------------------------------------------------------------------------*/ +/*-----------------------------------------------------------------------------------*/ +/* The Options Array */ +/*-----------------------------------------------------------------------------------*/ // Set the Options Array global $of_options; $of_options = array(); -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - GENERAL SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "General Settings", - "type" => "heading"); - -$of_options[] = array( "name" => "Logo", - "desc" => "Upload a custom logo image for your site here. Maximum size should be 233px x 60px.", - "id" => "site_logo", - "std" => $imgs_url.'logo.png', - "type" => "upload"); - -$of_options[] = array( "name" => "Custom Favicon", - "desc" => "Upload a custom favicon (.ico/.png/.gif) image for your site here. Maximum size should be 32px x 32px.", - "id" => "custom_favicon", - "std" => $imgs_url.'favicon.ico', - "type" => "upload"); - -$of_options[] = array( "name" => "Color Scheme", - "desc" => "Select a color scheme. Default is blue", - "id" => "color_scheme", - "std" => "blue", - "type" => "select", - "options" => $of_options_color_scheme); - - -$of_options[] = array( "name" => "Disable widgetized footer", - "desc" => "Check this to disable widgets from footer and show only copyright text and menu links.", - "id" => "disable_wdgets_footer", - "std" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Pages sidebar", - "desc" => "Select sidebar alignment for simple pages.", - "id" => "pages_sidebar_position", - "std" => "right", - "type" => "images", - "options" => array( - 'right' => $admin_imgs_url .'2cr.png', - 'left' => $admin_imgs_url .'2cl.png') - ); - -$of_options[] = array( "name" => "Copyright text", - "desc" => "Copyright text to display in footer. To display current year use this %year% and for copyright sign %copy%", - "id" => "footer_copyright_text", - "std" => "%copy% Smartik %year%. All rights reserved.", - "type" => "text"); - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - FONT SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Font Settings", - "type" => "heading"); - -$of_options[] = array( "name" => "Headings font", - "desc" => "", - "id" => "font_heading_introduction", - "std" => "Customize heading tags font ( h1, h2, h3 ,h4 ,h5, h6 ). Choose one option(4 available) and continue below to change default settings.", - "icon" => true, - "type" => "info"); - -$of_options[] = array( "name" => "Headings Font type", - "desc" => "







", - "id" => "font_radio_select", - "std" => 0, - "type" => "radio", - "options" => array( - "Predefined Cufon", - "Custom Cufon", - "Google Font", - "Standart Web Font", - ) - ); - -$url_asset = $admin_imgs_url .'assets/'; -$of_options[] = array( "name" => "Predefined Cufon", - "desc" => "Select main cufon font.
- Demonstration




", - "id" => "font_cufon", - "std" => "Share-Regular", - "type" => "select", - "options" => array( - "Proletarsk", - "Bebas Neue", - "CuprumFFU", - "Times Sans Serif", - "Corbel", - "Share-Regular", - "SF Collegiate Solid", - "SF Collegiate", - "Playtime With Hot Toddies", - "UglyQua", - "DejaVu Serif", - - - ) - ); - -$of_options[] = array( "name" => "Custom cufon script", - "desc" => "Upload custom cufon script in \"Template directory -> js -> cufon\" and paste file name (with extension) here
Example: corbel.cufonfonts.js
Download custom cufon", - "id" => "font_cufon_custom_url", - "std" => "bebas-neue.cufonfonts.js", - "type" => "text", - ); - -$of_options[] = array( "name" => "Custom cufon script name", - "desc" => "Please enter exactly, the name, of this cufon to call the script(value). Example: Corbel





", - "id" => "font_cufon_custom_name", - "std" => "Bebas Neue", - "type" => "text", - ); - - -$of_options[] = array( "name" => "Google font name", - "desc" => "You can see Google font directory, also.
Google Font Directory



", - "id" => "google_font", - "std" => "PT Sans", - "type" => "select_google_font", - "preview" => array( - "text" => "Custom Google font preview!", //this is the text from preview box - "size" => "20px" //this is the text size from preview box - ), - "options" => smk_list_all_google_font() +$of_options[] = array( "name" => "Home Settings", + "type" => "heading" ); - -$of_options[] = array( "name" => "Standart font", - "id" => "standart_font", - "std" => "Arial, Helvetica, sans-serif", - "type" => "select", - "options" => array( - "Arial, Helvetica, sans-serif", - "'Bookman Old Style', serif", - "'Courier New', Courier, monospace", - "Garamond, serif", - "Georgia, serif", - "Impact, Charcoal, sans-serif", - "'Lucida Console', Monaco, monospace", - "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", - "'MS Sans Serif', Geneva, sans-serif", - "'MS Serif', 'New York', sans-serif", - "'Palatino Linotype', 'Book Antiqua', Palatino, serif", - "Tahoma, Geneva, sans-serif", - "'Times New Roman', Times, serif", - "'Trebuchet MS', Helvetica, sans-serif", - "Verdana, Geneva, sans-serif", - ) - ); - -$of_options[] = array( "name" => "H1 font size", - "desc" => "H1 font size ( in pixels )", - "id" => "font_h1_size", - "std" => "25", - "min" => "12", - "max" => "35", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "H2 font size", - "desc" => "H2 font size ( in pixels )", - "id" => "font_h2_size", - "std" => "21", - "min" => "12", - "max" => "30", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "H3 font size", - "desc" => "H3 font size ( in pixels )", - "id" => "font_h3_size", - "std" => "19", - "min" => "12", - "max" => "30", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "H4 font size", - "desc" => "H4 font size ( in pixels )", - "id" => "font_h4_size", - "std" => "17", - "min" => "12", - "max" => "30", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "H5 font size", - "desc" => "H5 font size ( in pixels )", - "id" => "font_h5_size", - "std" => "15", - "min" => "10", - "max" => "30", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "H6 font size", - "desc" => "H6 font size ( in pixels )






", - "id" => "font_h6_size", - "std" => "13", - "min" => "9", - "max" => "45", - "type" => "sliderui", - ); - - -$of_options[] = array( "name" => "Body font", - "desc" => "", - "id" => "font_body_introduction", - "std" => "Customize primary font( body ), used for simple text blocks, articles, sidebar etc. Choose one option(2 available) and continue below to change default settings.", - "type" => "info"); - -$of_options[] = array( "name" => "Body Font type", - "desc" => "

", - "id" => "font_radio_select_body", - "std" => 0, - "type" => "radio", - "options" => array( - "Standart Web Font", - "Google Font", - ) - ); - -$of_options[] = array( "name" => "Standart font( for body )", - "id" => "standart_font_body", - "std" => "Helvetica, Arial, sans-serif", - "type" => "select", - "options" => array( - "Helvetica, Arial, sans-serif", - "Arial, Helvetica, sans-serif", - "'Bookman Old Style', serif", - "'Courier New', Courier, monospace", - "Garamond, serif", - "Georgia, serif", - "Impact, Charcoal, sans-serif", - "'Lucida Console', Monaco, monospace", - "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", - "'MS Sans Serif', Geneva, sans-serif", - "'MS Serif', 'New York', sans-serif", - "'Palatino Linotype', 'Book Antiqua', Palatino, serif", - "Tahoma, Geneva, sans-serif", - "'Times New Roman', Times, serif", - "'Trebuchet MS', Helvetica, sans-serif", - "Verdana, Geneva, sans-serif", - ) - ); - -$of_options[] = array( "name" => "Google font name( for body )", - "desc" => "Enter the font name from Google font directory.
Google Font Directory



", - "id" => "google_font_body", - "std" => "PT Sans", - "type" => "text", - ); - -$of_options[] = array( "name" => "Body font size", - "desc" => "General font size ( in pixels )

", - "id" => "font_body_size", - "std" => "13", - "min" => "9", - "max" => "16", - "type" => "sliderui", - ); - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - HOMEPAGE -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "HomePage", - "type" => "heading"); - -$of_options[] = array( "name" => "Homepage Layout Manager", - "desc" => "Organize how you want the layout to appear on the homepage. You can enable or disable each block by dragging it to the appropriate box", - "id" => "homepage_layout", - "std" => array( - "disabled" => array ( - "placebo" => "placebo", //REQUIRED! - "block_home_callout" => "Callout Box", - ), - "enabled" => array ( - "placebo" => "placebo", //REQUIRED! - "block_home_content" => "Homepage Content", - "block_latest_blog" => "Latest blog posts", - "block_latest_portfolio" => "Latest Portfolio Items", - ), - ), - "type" => "sorter"); - -$of_options[] = array( "name" => "Latest Blog Posts Text", - "desc" => "Set the text on homepage for \"Latest Blog Posts\". Leave blank to disable.", - "id" => "home_blog_item_text", - "std" => "Latest Blog Posts", - "type" => "text", - ); -$of_options[] = array( "name" => "Latest Portfolio Items Text", - "desc" => "Set the text on homepage for \"Latest Portfolio Items\". Leave blank to disable.", - "id" => "home_portfolio_item_text", - "std" => "Latest Portfolio Items", - "type" => "text", - ); - -$of_options[] = array( "name" => "Disable portfolio scrolling", - "desc" => "Disable or not scrolling type for latest portfolio items on Homepage.", - "id" => "home_portfolio_item_disable", - "std" => 0, - "type" => "radio", - "options" => array( - "No", - "Yes", - ), - ); - -$of_options[] = array( "name" => "Number of blog items", - "desc" => "Select a number of posts from blog to display on homepage", - "id" => "home_blog_item_number", - "std" => "4", - "min" => "4", - "step" => "4", - "max" => "24", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "Number of portfolio items", - "desc" => "Select a number of posts to display on homepage", - "id" => "home_portfolio_item_number", - "std" => "8", - "min" => "4", - "step" => "4", - "max" => "24", - "type" => "sliderui", - ); - -$of_options[] = array( "name" => "Callout settings", - "desc" => "Check this to configure callout box. ", - "id" => "home_callout_check", - "folds" => "0", - "std" => "0", - "type" => "checkbox", - ); - -$of_options[] = array( "name" => "Text", - "desc" => "Callout text", - "id" => "home_callout_text", - "std" => "Morbi fermentum ante lacus, posuere pretium quam, nunc pellentesque varius faucibus. Aenean vest sagittis porta. Nunc diam nulla, blandit vel eleifend et, gravida quis odio.", - "fold" => "home_callout_check", - "type" => "textarea", - ); - -$of_options[] = array( "name" => "Button text", - "desc" => "Callout button text", - "id" => "home_callout_button_text", - "std" => "Purchase", - "fold" => "home_callout_check", - "type" => "text", - ); - -$of_options[] = array( "name" => "Button url", - "desc" => "Callout button url", - "id" => "home_callout_button_url", - "std" => "#", - "fold" => "home_callout_check", - "type" => "text", - ); - -$of_options[] = array( "name" => "Button color", - "desc" => "Callout button color








", - "id" => "home_callout_button_color", - "std" => "green", - "fold" => "home_callout_check", - "type" => "select", - "options" => array( - "green", - "blue", - "white", - "red", - "orange" - ) - ); - -$of_options[] = array( "name" => "Homepage Type", - "desc" => "Select a homepage type. Slider, video, image or nothing.", - "id" => "home_type_select", - "std" => "0", - "type" => "select", - "options" => array( - "Skitter Slider", - "Cycle Slider", - "Nivo Slider", - "zAccordion Slider", - "Large Video", - "Video Left", - "Video Right", - "Static Image" - ), - ); - -$of_options[] = array( "name" => "Slider Content", - "desc" => "Slider content. Add how many slides you want. Title and URL are mandatory. Please use images hosted on your site, click on \"Upload\" button and insert an image from media library or upload one new.", - "id" => "homepage_slider", - "std" => array ( // do not leave this empty, just put an empty array. - 1 => - array ( - 'order' => '', - 'title' => '', - 'url' => '', - 'link' => '', - 'description' => '', - ), - ), - "type" => "slider"); - -//------------------------------------ -// video and static image -//------------------------------------ -$of_options[] = array( "name" => "Video and Static image options", - "desc" => "Show video and image settings", - "id" => "home_video_settings", - "std" => "", - "folds" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Video URL", - "desc" => "Enter a video url. Allowed only from: Youtube, Vimeo, Metacafe and Dailymotion", - "id" => "home_video_link", - "std" => "", - "fold" => "home_video_settings", - "type" => "text"); - -$of_options[] = array( "name" => "Video Title", - "desc" => "", - "id" => "home_video_title", - "std" => "", - "fold" => "home_video_settings", - "type" => "text"); - -$of_options[] = array( "name" => "Video Description", - "desc" => "This is the description to display on homepage if you have selected \"Vide Left\" or \"Vide Right\". Shortcodes and HTML tags allowed.", - "id" => "home_video_description", - "std" => "", - "fold" => "home_video_settings", - "type" => "textarea"); - -$of_options[] = array( "name" => "Static image", - "desc" => "Upload a static image to show it on homepage








", - "id" => "homepage_staticimage", - "std" => "", - "fold" => "home_video_settings", - "type" => "upload"); - -//------------------------------------ -// Skitter slider -//------------------------------------ -$of_options[] = array( "name" => "Skitter slider options", - "desc" => "Show settings for Skitter slider", - "id" => "home_skitter_settings", - "std" => "", - "folds" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Animation", +$of_options[] = array( "name" => "Hello there!", "desc" => "", - "id" => "home_skitter_animation", - "std" => "random", - "type" => "select", - "fold" => "home_skitter_settings", - "options" => array( - 'random', - 'cube', - 'cubeRandom', - 'block', - 'cubeStop', - 'cubeStopRandom', - 'cubeHide', - 'cubeSize', - 'horizontal', - 'showBars', - 'showBarsRandom', - 'tube', - 'fade', - 'fadeFour', - 'paralell', - 'blind', - 'blindHeight', - 'blindWidth', - 'directionTop', - 'directionBottom', - 'directionRight', - 'directionLeft', - 'cubeSpread', - 'glassCube', - 'glassBlock' - ), - ); - -$of_options[] = array( "name" => "Show Dots", - "desc" => "Navigation with dots:
true - dots,
false - numbers ", - "id" => "home_skitter_dots", - "std" => "true", - "type" => "select", - "fold" => "home_skitter_settings", - "options" => array( - "true", - "false", - ), - ); - -$of_options[] = array( "name" => "Interval", - "desc" => "Interval between transitions(miliseconds). Default: 2500








", - "id" => "home_skitter_interval", - "std" => "2500", - "min" => "500", - "step" => "50", - "max" => "10000", - "type" => "sliderui", - "fold" => "home_skitter_settings" - ); - - - -//------------------------------------ -// Cycle slider -//------------------------------------ -$of_options[] = array( "name" => "Cycle slider options", - "desc" => "Show settings for Cycle slider", - "id" => "home_cycle_settings", - "std" => "", - "folds" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Animation", - "desc" => "Transition effect", - "id" => "home_cycle_animation", - "std" => "scrollDown", - "type" => "select", - "fold" => "home_cycle_settings", - "options" => array( - 'all', - 'blindX', - 'blindY', - 'blindZ', - 'cover', - 'curtainX', - 'curtainY', - 'fade', - 'fadeZoom', - 'growX', - 'growY', - 'scrollUp', - 'scrollDown', - 'scrollLeft', - 'scrollRight', - 'scrollHorz', - 'scrollVert', - 'shuffle', - 'slideX', - 'slideY', - 'toss', - 'turnUp', - 'turnDown', - 'turnLeft', - 'turnRight', - 'uncover', - 'wipe', - 'zoom', - ), - ); - -$of_options[] = array( "name" => "Easing", - "desc" => "Easing method for both in and out transitions ", - "id" => "home_cycle_easing", - "std" => "easeOutBounce", - "type" => "select", - "fold" => "home_cycle_settings", - "options" => array( - "easeInQuad", - "easeOutQuad", - "easeInOutQuad", - "easeInCubic", - "easeOutCubic", - "easeInOutCubic", - "easeInQuart", - "easeOutQuart", - "easeInOutQuart", - "easeInQuint", - "easeOutQuint", - "easeInOutQuint", - "easeInSine", - "easeOutSine", - "easeInOutSine", - "easeInExpo", - "easeOutExpo", - "easeInOutExpo", - "easeInCirc", - "easeOutCirc", - "easeInOutCirc", - "easeInElastic", - "easeOutElastic", - "easeInOutElastic", - "easeInBack", - "easeOutBack", - "easeInOutBack", - "easeInBounce", - "easeOutBounce", - "easeInOutBounce", - ), - ); - - -$of_options[] = array( "name" => "Interval", - "desc" => "Interval between transitions(miliseconds). Default: 800", - "id" => "home_cycle_timeout", - "std" => "800", - "min" => "500", - "step" => "50", - "max" => "5000", - "type" => "sliderui", - "fold" => "home_cycle_settings" - ); + "id" => "introduction", + "std" => "

Welcome to the Options Framework demo.

+ This is a slightly modified version of the original options framework by Devin Price with a couple of aesthetical improvements on the interface and some cool additional features. If you want to learn how to setup these options or just need general help on using it feel free to visit my blog at AquaGraphite.com", + "icon" => true, + "type" => "info" + ); -$of_options[] = array( "name" => "Speed", - "desc" => "Speed of the transition(miliseconds). Default: 4000", - "id" => "home_cycle_speed", - "std" => "4000", - "min" => "500", - "step" => "50", - "max" => "10000", - "type" => "sliderui", - "fold" => "home_cycle_settings" - ); - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - STYLING -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Styling", - "type" => "heading"); - -// ============ GENERAL STYLE, MAIN LAYOUT - -$of_options[] = array( "name" => "General styling", - "desc" => "Set a background color for main layout, color for links, text, headings, etc.", - "id" => "layout_colors_check_option", +$of_options[] = array( "name" => "Media Uploader 3.5", + "desc" => "Upload images using native media uploader from Wordpress 3.5+.", + "id" => "media_upload_35", + // Use the shortcodes [site_url] or [site_url_secure] for setting default URLs "std" => "", - "folds" => "0", - "type" => "checkbox"); + "type" => "upload" + ); -$of_options[] = array( "name" => "Main layout background", - "desc" => "Set background color for main layout. Default: #eeeeee", - "id" => "layout_bg_color", - "std" => "", - "fold" => "layout_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Text color", - "desc" => "Set text color for main layout. Default: #333333", - "id" => "layout_text_color", - "std" => "", - "fold" => "layout_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Headings color", - "desc" => "Set text color for headings. Default: #444444", - "id" => "layout_headings_color", +$of_options[] = array( "name" => "Media Uploader 3.5 min", + "desc" => "Upload images using native media uploader from Wordpress 3.5+. Min mod", + "id" => "media_upload_356", + // Use the shortcodes [site_url] or [site_url_secure] for setting default URLs "std" => "", - "fold" => "layout_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Link color", - "desc" => "Set a color for links.", - "id" => "link_color", - "std" => "", - "fold" => "layout_colors_check_option", - "type" => "color"); + "mod" => "min", + "type" => "media" + ); -$of_options[] = array( "name" => "Link hover color", - "desc" => "Set a color for links on hover.




", - "id" => "link_hover_color", - "std" => "", - "fold" => "layout_colors_check_option", - "type" => "color"); +$of_options[] = array( "name" => "JQuery UI Slider example 1", + "desc" => "JQuery UI slider description.
Min: 1, max: 500, step: 3, default value: 45", + "id" => "slider_example_1", + "std" => "45", + "min" => "1", + "step" => "3", + "max" => "500", + "type" => "sliderui" + ); + +$of_options[] = array( "name" => "JQuery UI Slider example 1 with steps(5)", + "desc" => "JQuery UI slider description.
Min: 0, max: 300, step: 5, default value: 75", + "id" => "slider_example_2", + "std" => "75", + "min" => "0", + "step" => "5", + "max" => "300", + "type" => "sliderui" + ); - - -// ============ MENU STYLES +$of_options[] = array( "name" => "JQuery UI Spinner", + "desc" => "JQuery UI spinner description.
Min: 0, max: 300, step: 5, default value: 75", + "id" => "spinner_example_2", + "std" => "75", + "min" => "0", + "step" => "5", + "max" => "300", + "type" => "spinner" + ); + +$of_options[] = array( "name" => "Switch 1", + "desc" => "Switch OFF", + "id" => "switch_ex1", + "std" => 0, + "type" => "switch" + ); + +$of_options[] = array( "name" => "Switch 2", + "desc" => "Switch ON", + "id" => "switch_ex2", + "std" => 1, + "type" => "switch" + ); + +$of_options[] = array( "name" => "Switch 3", + "desc" => "Switch with custom labels", + "id" => "switch_ex3", + "std" => 0, + "on" => "Enable", + "off" => "Disable", + "type" => "switch" + ); + +$of_options[] = array( "name" => "Switch 4", + "desc" => "Switch OFF with hidden options. ;)", + "id" => "switch_ex4", + "std" => 0, + "folds" => 1, + "type" => "switch" + ); + +$of_options[] = array( "name" => "Hidden option 1", + "desc" => "This is a sample hidden option controlled by a switch button", + "id" => "hidden_switch_ex1", + "std" => "Hi, I\'m just a text input - nr 1", + "fold" => "switch_ex4", /* the switch hook */ + "type" => "text" + ); + +$of_options[] = array( "name" => "Hidden option 2", + "desc" => "This is a sample hidden option controlled by a switch button", + "id" => "hidden_switch_ex2", + "std" => "Hi, I\'m just a text input - nr 2", + "fold" => "switch_ex4", /* the switch hook */ + "type" => "text" + ); + + +$of_options[] = array( "name" => "Homepage Layout Manager", + "desc" => "Organize how you want the layout to appear on the homepage", + "id" => "homepage_blocks", + "std" => $of_options_homepage_blocks, + "type" => "sorter" + ); -$of_options[] = array( "name" => "Menu Styles", - "desc" => "Set a background color for main menu, color for links, text, etc.", - "id" => "menu_colors_check_option", - "std" => "", - "folds" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Level 0 text color", - "desc" => "Default: #ffffff", - "id" => "menu_level0_color", - "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Level 0 hover text color", - "desc" => "Default: #ffffff", - "id" => "menu_level0_hover_color", - "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Level 1 text color", - "desc" => "Default: #ffffff", - "id" => "menu_level1_color", +$of_options[] = array( "name" => "Slider Options", + "desc" => "Unlimited slider with drag and drop sortings.", + "id" => "pingu_slider", "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Level 1 hover text color", - "desc" => "Default: #ffffff", - "id" => "menu_level1_hover_color", - "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Border color", - "desc" => "Default: #111111", - "id" => "menu_border_color", - "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Submenu background", - "desc" => "Default: #333333", - "id" => "menu_submenu_bg", - "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Submenu item hover background", - "desc" => "Default: #222222





", - "id" => "menu_submenu_item_hover_bg", - "std" => "", - "fold" => "menu_colors_check_option", - "type" => "color"); - - -// ============ FOOTER STYLES + "type" => "slider" + ); -$of_options[] = array( "name" => "Footer Styles", - "desc" => "Set a background color for main footer, color for links, text, headings, etc.", - "id" => "footer_colors_check_option", - "std" => "", - "folds" => "0", - "type" => "checkbox"); +$of_options[] = array( "name" => "Background Images", + "desc" => "Select a background pattern.", + "id" => "custom_bg", + "std" => $bg_images_url."bg0.png", + "type" => "tiles", + "options" => $bg_images, + ); + +$of_options[] = array( "name" => "Typography", + "desc" => "Typography option with each property can be called individually.", + "id" => "custom_type", + "std" => array('size' => '12px','style' => 'bold italic'), + "type" => "typography" + ); -$of_options[] = array( "name" => "Footer background color", - "desc" => "Default: #373737", - "id" => "footer_bg_color", +$of_options[] = array( "name" => "General Settings", + "type" => "heading" + ); + +$url = ADMIN_DIR . 'assets/images/'; +$of_options[] = array( "name" => "Main Layout", + "desc" => "Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.", + "id" => "layout", + "std" => "2c-l-fixed.css", + "type" => "images", + "options" => array( + '1col-fixed.css' => $url . '1col.png', + '2c-r-fixed.css' => $url . '2cr.png', + '2c-l-fixed.css' => $url . '2cl.png', + '3c-fixed.css' => $url . '3cm.png', + '3c-r-fixed.css' => $url . '3cr.png' + ) + ); + +$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", "std" => "", - "fold" => "footer_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Footer text color", - "desc" => "Default: #dddddd", - "id" => "footer_text_color", + "type" => "textarea" + ); + +$of_options[] = array( "name" => "Footer Text", + "desc" => "You can use the following shortcodes in your footer text: [wp-link] [theme-link] [loginout-link] [blog-title] [blog-link] [the-year]", + "id" => "footer_text", + "std" => "Powered by [wp-link]. Built on the [theme-link].", + "type" => "textarea" + ); + +$of_options[] = array( "name" => "Styling Options", + "type" => "heading" + ); + +$of_options[] = array( "name" => "Theme Stylesheet", + "desc" => "Select your themes alternative color scheme.", + "id" => "alt_stylesheet", + "std" => "default.css", + "type" => "select", + "options" => $alt_stylesheets + ); + +$of_options[] = array( "name" => "Body Background Color", + "desc" => "Pick a background color for the theme (default: #fff).", + "id" => "body_background", "std" => "", - "fold" => "footer_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Footer menu text/links color", - "desc" => "Default: #ffffff", - "id" => "footer_menu_text_color", + "type" => "color" + ); + +$of_options[] = array( "name" => "Header Background Color", + "desc" => "Pick a background color for the header (default: #fff).", + "id" => "header_background", "std" => "", - "fold" => "footer_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Footer links color", - "desc" => "Default: #dddddd




", - "id" => "footer_links_color", + "type" => "color" + ); + +$of_options[] = array( "name" => "Footer Background Color", + "desc" => "Pick a background color for the footer (default: #fff).", + "id" => "footer_background", "std" => "", - "fold" => "footer_colors_check_option", - "type" => "color"); - -// ============ CUSTOM CSS - + "type" => "color" + ); + +$of_options[] = array( "name" => "Body Font", + "desc" => "Specify the body font properties", + "id" => "body_font", + "std" => array('size' => '12px','face' => 'arial','style' => 'normal','color' => '#000000'), + "type" => "typography" + ); + $of_options[] = array( "name" => "Custom CSS", - "desc" => "Add you custom css styles here.", + "desc" => "Quickly add some CSS to your theme by adding it to this block.", "id" => "custom_css", - "std" => "/* Custom CSS */", - "type" => "textarea"); - - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - BACKGROUND -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Background", - "type" => "heading"); - -$of_options[] = array( "name" => "Background color", - "desc" => "Set a background color for body.", - "id" => "body_background_color", - "std" => "#dddddd", - "type" => "color"); - -$of_options[] = array( "name" => "Background attachment", - "desc" => "Set a background attachment for body.", - "id" => "body_background_attachment", - "std" => "", - "type" => "select", - "options" => array( - "scroll", - "fixed", - ) - ); - -$of_options[] = array( "name" => "Custom Background image", - "desc" => "Upload a custom background image.
This will overwrite the pattern below..", - "id" => "body_custom_bg_img", "std" => "", - "type" => "upload"); - -$of_options[] = array( "name" => "Background repeat", - "desc" => "", - "id" => "body_background_repeat", - "std" => "repeat", - "type" => "select", - "options" => array( - "repeat", - "repeat-x", - "repeat-y", - "no-repeat", - ) - ); - -$of_options[] = array( "name" => "Background position", - "desc" => "", - "id" => "body_background_position", - "std" => "left top", - "type" => "select", - "options" => array( - "left top", - "left center", - "left bottom", - "right top", - "right center", - "right bottom", - "center top", - "center center", - "center bottom", - ) - ); - -$of_options[] = array( "name" => "Background Pattern", - "desc" => "Select a background pattern.", - "id" => "custom_bg_pattern", - "std" => $bg_images_url."13.png", - "type" => "tiles", - "options" => $bg_images); - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - BLOG SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Blog settings", - "type" => "heading"); - -$of_options[] = array( "name" => "Blog style", - "desc" => "", - "id" => "blog_style_layout", - "std" => "blog5", - "type" => "images", - "options" => array( - 'blog1' => $admin_imgs_url .'blog1.png', - 'blog2' => $admin_imgs_url .'blog2.png', - 'blog3' => $admin_imgs_url .'blog3.png', - 'blog4' => $admin_imgs_url .'blog4.png', - 'blog5' => $admin_imgs_url .'blog5.png') - ); - -$of_options[] = array( "name" => "Blog sidebar", - "desc" => "Select sidebar alignment for blog pages.", - "id" => "blog_sidebar_position", - "std" => "right", - "type" => "images", - "options" => array( - 'right' => $admin_imgs_url .'2cr.png', - 'left' => $admin_imgs_url .'2cl.png') - ); - -$of_options[] = array( "name" => "Hide blog page title?", - "desc" => "If is checked the title and search form will be disabled from all blog pages.
This applies only for blog section.", - "id" => "hide_blog_page_title", - "std" => 0, - "type" => "checkbox"); - -$of_options[] = array( "name" => "Custom blog page title", - "desc" => "If the option above is NOT checked you can enter a custom blog title. For example: Our blog, Awesome articles, etc. Default: Blog", - "id" => "custom_blog_page_title", - "std" => "Blog", - "type" => "text"); - -$of_options[] = array( "name" => "Custom blog page slogan", - "desc" => "Enter a slogan for your blog. For example: Great articles, Awesome articles, etc. Default: Our awesome articles", - "id" => "custom_blog_page_slogan", - "std" => "Our awesome articles", - "type" => "text"); - -$of_options[] = array( "name" => "Single post image height", - "desc" => "Blog image height for single post. Default: Fixed (260px)", - "id" => "single_post_image_height", - "std" => "Fixed", - "type" => "select", - "options" => array( - 'Fixed', - 'Auto', - ) - ); - -$of_options[] = array( "name" => "Post author avatar size", - "desc" => "Set the size (in pixels) for author avatar from posts. Default: 80", - "id" => "single_avatar_size", - "std" => "80", - "min" => "30", - "max" => "150", - "type" => "sliderui"); - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - PORTFOLIO SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Portfolio settings", - "type" => "heading"); - -$url = $admin_imgs_url; -$of_options[] = array( "name" => "Portfolio style", - "desc" => "1st - 2 columns portfolio,
2nd - 3 columns portfolio,
3rd - 4 columns portfolio,
4th - 2 columns portfolio with excerpt,
5th - 3 columns portfolio with excerpt,
6th - 4 columns portfolio with excerpt,
7th - 3 columns portfolio(gallery style),
8th - 4 columns portfolio(gallery style),
9th - 3 columns portfolio(gallery style) without space between items,
", - "id" => "portfolio_style_layout", - "std" => "pf_col3", - "type" => "images", - "options" => array( - 'pf_col2' => $url . 'pf2.png', - 'pf_col3' => $url . 'pf3.png', - 'pf_col4' => $url . 'pf4.png', - 'pf_col22' => $url . 'pf22.png', - 'pf_col32' => $url . 'pf32.png', - 'pf_col42' => $url . 'pf42.png', - 'pf_colg3' => $url . 'pfg3.png', - 'pf_colg4' => $url . 'pfg4.png', - 'pf_colg32' => $url . 'pfg32.png') - ); - -$of_options[] = array( "name" => "Portfolio items per page", - "desc" => "How many portfolio items to show per page?
Default: for 4 columns - 12, for 3 columns - 9, for 2 columns - 8
This is optional, leave it blank to use default.", - "id" => "portfolio_items_perpage", + "type" => "textarea" + ); + +$of_options[] = array( "name" => "Example Options", + "type" => "heading" + ); + +$of_options[] = array( "name" => "Typography", + "desc" => "This is a typographic specific option.", + "id" => "typography", + "std" => array( + 'size' => '12px', + 'face' => 'verdana', + 'style' => 'bold italic', + 'color' => '#123456' + ), + "type" => "typography" + ); + +$of_options[] = array( "name" => "Border", + "desc" => "This is a border specific option.", + "id" => "border", + "std" => array( + 'width' => '2', + 'style' => 'dotted', + 'color' => '#444444' + ), + "type" => "border" + ); + +$of_options[] = array( "name" => "Colorpicker", + "desc" => "No color selected.", + "id" => "example_colorpicker", "std" => "", - "type" => "text"); - -$of_options[] = array( "name" => "Disable portfolio filter?", - "desc" => "If is checked, this will disable filter for portfolio items. Default unchecked(disabled).", - "id" => "portfolio_disable_filter", - "std" => 0, - "type" => "checkbox"); - -$of_options[] = array( "name" => "Disable portfolio lightbox?", - "desc" => "If is checked, this will disable ligtbox for portfolio items. Default unchecked(enabled).", - "id" => "portfolio_disable_lightbox", - "std" => 0, - "type" => "checkbox"); + "type" => "color" + ); -$of_options[] = array( "name" => "Enable lightbox gallery?", - "desc" => "If is checked, this will enable ligtbox gallery mode for portfolio items. Default unchecked(disabled).", - "id" => "portfolio_enable_lightbox_gallery", +$of_options[] = array( "name" => "Colorpicker (default #2098a8)", + "desc" => "Color selected.", + "id" => "example_colorpicker_2", + "std" => "#2098a8", + "type" => "color" + ); + +$of_options[] = array( "name" => "Input Text", + "desc" => "A text input field.", + "id" => "test_text", + "std" => "Default Value", + "type" => "text" + ); + +$of_options[] = array( "name" => "Input Checkbox (false)", + "desc" => "Example checkbox with false selected.", + "id" => "example_checkbox_false", "std" => 0, - "type" => "checkbox"); - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - SERVICES SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Services settings", - "type" => "heading"); + "type" => "checkbox" + ); -$of_options[] = array( "name" => "Sidebar", - "desc" => "Select sidebar alignment.", - "id" => "services_sidebar_position", - "std" => "right", - "type" => "images", - "options" => array( - 'right' => $admin_imgs_url .'2cr.png', - 'left' => $admin_imgs_url .'2cl.png', - 'nosidebar' => $admin_imgs_url .'1col.png') - ); - -$of_options[] = array( "name" => "Service items per page", - "desc" => "How many service items to show per page?
Default: 30", - "id" => "services_items_perpage", - "std" => "30", - "min" => "1", - "max" => "100", - "type" => "sliderui"); - -$of_options[] = array( "name" => "Order", - "desc" => "'DESC' - Ascending order from lowest to highest values (1, 2, 3; a, b, c).
- 'ASC' - Descending order from highest to lowest values (3, 2, 1; c, b, a).
- Default: 'DESC'", - "id" => "services_posts_order", - "std" => "DESC", +$of_options[] = array( "name" => "Input Checkbox (true)", + "desc" => "Example checkbox with true selected.", + "id" => "example_checkbox_true", + "std" => 1, + "type" => "checkbox" + ); + +$of_options[] = array( "name" => "Normal Select", + "desc" => "Normal Select Box.", + "id" => "example_select", + "std" => "three", "type" => "select", - "options" => array( - "DESC", - "ASC", - ) - ); - -$of_options[] = array( "name" => "Order by", - "desc" => "'date' - Order by date.
- 'ID' - Order by post id.
- 'author' - Order by author.
- 'title' - Order by title.
- 'modified' - Order by last modified date.
- 'rand' - Random order.
- Default: 'date'", - "id" => "services_posts_order_by", - "std" => "date", + "options" => $of_options_select + ); + +$of_options[] = array( "name" => "Mini Select", + "desc" => "A mini select box.", + "id" => "example_select_2", + "std" => "two", "type" => "select", - "options" => array( - "date", - "ID", - "author", - "title", - "modified", - "rand", - ) - ); - - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - JOBS SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Jobs settings", - "type" => "heading"); - -$of_options[] = array( "name" => "Sidebar", - "desc" => "Select sidebar alignment.", - "id" => "jobs_sidebar_position", - "std" => "right", - "type" => "images", + "mod" => "mini", + "options" => $of_options_radio + ); + +$of_options[] = array( "name" => "Google Font Select", + "desc" => "Some description. Note that this is a custom text added added from options file.", + "id" => "g_select", + "std" => "Select a font", + "type" => "select_google_font", + "preview" => array( + "text" => "This is my preview text!", //this is the text from preview box + "size" => "30px" //this is the text size from preview box + ), "options" => array( - 'right' => $admin_imgs_url .'2cr.png', - 'left' => $admin_imgs_url .'2cl.png', - 'nosidebar' => $admin_imgs_url .'1col.png') - ); - -$of_options[] = array( "name" => "Jobs per page", - "desc" => "How many Jobs to show per page?
Default: 10", - "id" => "jobs_items_perpage", - "std" => "10", - "min" => "1", - "max" => "50", - "type" => "sliderui"); - -$of_options[] = array( "name" => "Order", - "desc" => "'DESC' - Ascending order from lowest to highest values (1, 2, 3; a, b, c).
- 'ASC' - Descending order from highest to lowest values (3, 2, 1; c, b, a).
- Default: 'DESC'", - "id" => "jobs_posts_order", - "std" => "DESC", - "type" => "select", - "options" => array( - "DESC", - "ASC", - ) - ); - -$of_options[] = array( "name" => "Order by", - "desc" => "'date' - Order by date.
- 'ID' - Order by post id.
- 'author' - Order by author.
- 'title' - Order by title.
- 'modified' - Order by last modified date.
- 'rand' - Random order.
- Default: 'date'", - "id" => "jobs_posts_order_by", - "std" => "date", - "type" => "select", - "options" => array( - "date", - "ID", - "author", - "title", - "modified", - "rand", - ) - ); - -$of_options[] = array( "name" => "Button text", - "desc" => "Text to display on button. Default \"Apply for this job\"", - "id" => "jobs_button_text", - "std" => "Apply for this job", - "type" => "text"); - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - FAQ SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "FAQ settings", - "type" => "heading"); + "none" => "Select a font",//please, always use this key: "none" + "Lato" => "Lato", + "Loved by the King" => "Loved By the King", + "Tangerine" => "Tangerine", + "Terminal Dosis" => "Terminal Dosis" + ) + ); -$of_options[] = array( "name" => "Sidebar", - "desc" => "Select sidebar alignment.", - "id" => "faq_sidebar_position", - "std" => "nosidebar", - "type" => "images", +$of_options[] = array( "name" => "Google Font Select2", + "desc" => "Some description.", + "id" => "g_select2", + "std" => "Select a font", + "type" => "select_google_font", "options" => array( - 'right' => $admin_imgs_url .'2cr.png', - 'left' => $admin_imgs_url .'2cl.png', - 'nosidebar' => $admin_imgs_url .'1col.png') - ); - -$of_options[] = array( "name" => "FAQ items per page", - "desc" => "How many FAQ items to show per page?
Default: 50", - "id" => "faq_items_perpage", - "std" => "50", - "min" => "1", - "max" => "150", - "type" => "sliderui"); - -$of_options[] = array( "name" => "Order", - "desc" => "'DESC' - Ascending order from lowest to highest values (1, 2, 3; a, b, c).
- 'ASC' - Descending order from highest to lowest values (3, 2, 1; c, b, a).
- Default: 'DESC'", - "id" => "faq_posts_order", - "std" => "DESC", - "type" => "select", - "options" => array( - "DESC", - "ASC", - ) - ); - -$of_options[] = array( "name" => "Order by", - "desc" => "'date' - Order by date.
- 'ID' - Order by post id.
- 'author' - Order by author.
- 'title' - Order by title.
- 'modified' - Order by last modified date.
- 'rand' - Random order.
- Default: 'date'", - "id" => "faq_posts_order_by", - "std" => "date", - "type" => "select", - "options" => array( - "date", - "ID", - "author", - "title", - "modified", - "rand", - ) - ); - -$of_options[] = array( "name" => "Default view", - "desc" => "If is checked, this will disable ligtbox for portfolio items. Default unchecked(enabled).", - "id" => "faq_default_view", - "std" => "closed", - "type" => "select", - "options" => array( - "open", - "closed", - ) - ); - -$of_options[] = array( "name" => "Display \"last edit\"?", - "desc" => "This will show last modification date.", - "id" => "faq_last_edit", - "std" => "Yes", - "type" => "select", - "options" => array( - "Yes", - "No", + "none" => "Select a font",//please, always use this key: "none" + "Lato" => "Lato", + "Loved by the King" => "Loved By the King", + "Tangerine" => "Tangerine", + "Terminal Dosis" => "Terminal Dosis" ) - ); - -$of_options[] = array( "name" => "Custom style", - "desc" => "Custom FAQ posts style. Check this and edit settings below.", - "id" => "faq_colors_check_option", - "std" => "", - "folds" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Title color", - "desc" => "Default: #444444", - "id" => "faq_title_color", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Title hover color", - "desc" => "Default: #4682B4", - "id" => "faq_title_color_hover", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Title background color", - "desc" => "Default: #F2F2F2", - "id" => "faq_title_color_bg", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Title border color", - "desc" => "Default: #BBBBBB", - "id" => "faq_title_color_border", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Content Background", - "desc" => "Default: #FFFFFF", - "id" => "faq_content_bg", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Content Text Color", - "desc" => "Default: #333333", - "id" => "faq_content_text_color", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - -$of_options[] = array( "name" => "Content Link Color", - "desc" => "Default: determined by color scheme.", - "id" => "faq_content_link_color", - "std" => "", - "fold" => "faq_colors_check_option", - "type" => "color"); - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - CONTACT FORM -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Contact Form", - "type" => "heading"); - -$of_options[] = array( "name" => "Email address", - "desc" => "Enter the email address where you want to receive messages.", - "id" => "cf_email_address", - "std" => "example@themeforest.com", - "type" => "text"); - -$of_options[] = array( "name" => "Show google map?", - "desc" => "If is checked, on contact page will be shown a google map. NOTE: You must add your parameters, bellow.", - "id" => "cf_enable_gmap", - "std" => 1, - "folds" => "0", - "type" => "checkbox"); - -$of_options[] = array( "name" => "Map height", - "desc" => "Custom google map height(in pixels). Default: 224", - "id" => "cf_height_gmap", - "std" => "224", - "min" => "100", - "max" => "500", - "type" => "sliderui", - "fold" => "cf_enable_gmap",); - -$of_options[] = array( "name" => "", - "desc" => "", - "id" => "cf_gmap_info", - "std" => "

Latitude & longitude info

You can get the latitude & longitude here: http://universimmedia.pagesperso-orange.fr/geo/loc.htm", - "icon" => false, - "fold" => "cf_enable_gmap", - "type" => "info"); - -$of_options[] = array( "name" => "Contact google map latitude", - "desc" => "", - "id" => "cf_google_map_lat", - "std" =>"48.85810", - "fold" => "cf_enable_gmap", - "type" => "text"); - -$of_options[] = array( "name" => "Contact google map longitude", - "desc" => "", - "id" => "cf_google_map_long", - "std" =>"2.29457", - "fold" => "cf_enable_gmap", - "type" => "text"); - - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - OTHER SETTINGS -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Other Settings", - "type" => "heading"); - -$of_options[] = array( "name" => "404 page sidebar position", - "desc" => "Select sidebar alignment for 404 page.", - "id" => "p404_sidebar_position", - "std" => "right", + ); + +$of_options[] = array( "name" => "Input Radio (one)", + "desc" => "Radio select with default of 'one'.", + "id" => "example_radio", + "std" => "one", + "type" => "radio", + "options" => $of_options_radio + ); + +$url = ADMIN_DIR . 'assets/images/'; +$of_options[] = array( "name" => "Image Select", + "desc" => "Use radio buttons as images.", + "id" => "images", + "std" => "warning.css", "type" => "images", "options" => array( - 'right' => $admin_imgs_url .'2cr.png', - 'left' => $admin_imgs_url .'2cl.png', - 'nosidebar' => $admin_imgs_url .'1col.png') - ); - -$of_options[] = array( "name" => "404 page text", - "desc" => "Custom 404 page \"not found text\". HTML allowed.", - "id" => "p404_custom_text", - "std" => "It seem the page you were looking for has moved or is no longer there.
Or maybe you just mistyped something.
It happens.
Why not start over with the main navigation at the top of the page or on sidebar? Or maybe you want to use again the search box at the top of page?", + 'warning.css' => $url . 'warning.png', + 'accept.css' => $url . 'accept.png', + 'wrench.css' => $url . 'wrench.png' + ) + ); + +$of_options[] = array( "name" => "Textarea", + "desc" => "Textarea description.", + "id" => "example_textarea", + "std" => "Default Text", "type" => "textarea" - ); - - -$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", - "std" => "", - "type" => "textarea"); - - -/*----------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------- - BACKUP -------------------------------------------------------------------------------------------------------------*/ -$of_options[] = array( "name" => "Backup", - "type" => "heading"); - - -$of_options[] = array( "name" => "Backup and Restore Options", + ); + +$of_options[] = array( "name" => "Multicheck", + "desc" => "Multicheck description.", + "id" => "example_multicheck", + "std" => array("three","two"), + "type" => "multicheck", + "options" => $of_options_radio + ); + +$of_options[] = array( "name" => "Select a Category", + "desc" => "A list of all the categories being used on the site.", + "id" => "example_category", + "std" => "Select a category:", + "type" => "select", + "options" => $of_categories + ); + +//Advanced Settings +$of_options[] = array( "name" => "Advanced Settings", + "type" => "heading" + ); + +$of_options[] = array( "name" => "Folding Checkbox", + "desc" => "This checkbox will hide/show a couple of options group. Try it out!", + "id" => "offline", + "std" => 0, + "folds" => 1, + "type" => "checkbox" + ); + +$of_options[] = array( "name" => "Hidden option 1", + "desc" => "This is a sample hidden option 1", + "id" => "hidden_option_1", + "std" => "Hi, I\'m just a text input", + "fold" => "offline", /* the checkbox hook */ + "type" => "text" + ); + +$of_options[] = array( "name" => "Hidden option 2", + "desc" => "This is a sample hidden option 2", + "id" => "hidden_option_2", + "std" => "Hi, I\'m just a text input", + "fold" => "offline", /* the checkbox hook */ + "type" => "text" + ); + +$of_options[] = array( "name" => "Hello there!", "desc" => "", + "id" => "introduction_2", + "std" => "

Grouped Options.

+ You can group a bunch of options under a single heading by removing the 'name' value from the options array except for the first option in the group.", + "icon" => true, + "type" => "info" + ); + + $of_options[] = array( "name" => "Some pretty colors for you", + "desc" => "Color 1.", + "id" => "example_colorpicker_3", + "std" => "#2098a8", + "type" => "color" + ); + + $of_options[] = array( "name" => "", + "desc" => "Color 2.", + "id" => "example_colorpicker_4", + "std" => "#2098a8", + "type" => "color" + ); + + $of_options[] = array( "name" => "", + "desc" => "Color 3.", + "id" => "example_colorpicker_5", + "std" => "#2098a8", + "type" => "color" + ); + + $of_options[] = array( "name" => "", + "desc" => "Color 4.", + "id" => "example_colorpicker_6", + "std" => "#2098a8", + "type" => "color" + ); + +// Backup Options +$of_options[] = array( "name" => "Backup Options", + "type" => "heading", + "icon" => ADMIN_IMAGES . "icon-slider.png" + ); + +$of_options[] = array( "name" => "Backup and Restore Options", "id" => "of_backup", "std" => "", "type" => "backup", - "options" => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.', - ); - - } -} -?> \ No newline at end of file + "desc" => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.', + ); + +$of_options[] = array( "name" => "Transfer Theme Options Data", + "id" => "of_transfer", + "std" => "", + "type" => "transfer", + "desc" => 'You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options".', + ); + + }//End function: of_options() +}//End chack if function exists: of_options() +?>