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" => "