Пример #1
0
function of_option_setup()
{
    //Update EMPTY options
    $of_array = array();
    add_option('of_options', $of_array);
    $template = inkthemes_get_option('of_template');
    $saved_options = inkthemes_get_option('of_options');
    $std = '';
    foreach ($template as $option) {
        if ($option['type'] != 'heading') {
            $id = $option['id'];
            if (isset($option['std'])) {
                $std = $option['std'];
            }
            $db_option = inkthemes_get_option($id);
            if (empty($db_option)) {
                if (is_array($option['type'])) {
                    foreach ($option['type'] as $child) {
                        $c_id = $child['id'];
                        $c_std = $child['std'];
                        inkthemes_update_option($c_id, $c_std);
                        $of_array[$c_id] = $c_std;
                    }
                } else {
                    inkthemes_update_option($id, $std);
                    $of_array[$id] = $std;
                }
            } else {
                //So just store the old values over again.
                $of_array[$id] = $db_option;
            }
        }
    }
    inkthemes_update_option('of_options', $of_array);
}
Пример #2
0
 function inkthemes_options()
 {
     // VARIABLES
     $themename = function_exists('wp_get_theme') ? wp_get_theme() : wp_get_theme();
     $themename = $themename['Name'];
     $shortname = "of";
     //Stylesheet Reader
     $alt_stylesheets = array("black" => "black", "brown" => "brown", "blue" => "blue", "green" => "green", "pink" => "pink", "purple" => "purple", "red" => "red", "yellow" => "yellow");
     // Test data
     $test_array = array("one" => "One", "two" => "Two", "three" => "Three", "four" => "Four", "five" => "Five");
     // Multicheck Array
     $multicheck_array = array("one" => "French Toast", "two" => "Pancake", "three" => "Omelette", "four" => "Crepe", "five" => "Waffle");
     // Multicheck Defaults
     $multicheck_defaults = array("one" => "1", "five" => "1");
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     // Pull all the categories into an array
     $options_categories = array();
     $options_categories_obj = get_categories();
     foreach ($options_categories_obj as $category) {
         $options_categories[$category->cat_ID] = $category->cat_name;
     }
     // Pull all the pages into an array
     $options_pages = array();
     $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
     $options_pages[''] = 'Select a page:';
     foreach ($options_pages_obj as $page) {
         $options_pages[$page->ID] = $page->post_title;
     }
     // If using image radio buttons, define a directory path
     $imagepath = get_stylesheet_directory_uri() . '/images/';
     $options = array(array("name" => "General Settings", "type" => "heading"), array("name" => "Custom Logo", "desc" => "Choose your own logo. Optimal Size: 215px Wide by 55px Height", "id" => "colorway_logo", "type" => "upload"), array("name" => "Custom Favicon", "desc" => "Specify a 16px x 16px image that will represent your website's favicon.", "id" => "colorway_favicon", "type" => "upload"), array("name" => "Tracking Code", "desc" => "Paste your Google Analytics (or other) tracking code here.", "id" => "colorway_analytics", "std" => "", "type" => "textarea"), array("name" => "Home Top Feature", "type" => "heading"), array("name" => "Home Top Feature Image", "desc" => "Choose Image for your Home Top Feature. Optimal Size: 900px x 350px", "id" => "colorway_slideimage1", "type" => "upload"), array("name" => "Home Top Feature Heading", "desc" => "Enter the Heading for Home Top Feature", "id" => "colorway_slideheading1", "std" => "", "type" => "text"), array("name" => "Home Top Feature Heading Link", "desc" => "Enter the Link URL in Heading for Home Top Feature", "id" => "colorway_slidelink1", "std" => "", "type" => "text"), array("name" => "Home Top Feature Description", "desc" => "Description for Home Top Feature", "id" => "colorway_slidedescription1", "std" => "", "type" => "textarea"), array("name" => "Home Page Settings", "type" => "heading"), array("name" => "Home Page Intro", "desc" => "Enter your heading text for home page", "id" => "inkthemes_mainheading", "std" => "", "type" => "text"), array("name" => "First Feature Image", "desc" => "Choose image for your feature column first. Optimal size 198px x 115px", "id" => "inkthemes_fimg1", "std" => "", "type" => "upload"), array("name" => "First Feature Heading", "desc" => "Enter your heading line for first column", "id" => "inkthemes_headline1", "std" => "", "type" => "text"), array("name" => "First Feature Link", "desc" => "Enter your link for feature column first", "id" => "inkthemes_link1", "std" => "", "type" => "text"), array("name" => "First Feature Content", "desc" => "Enter your feature content for column first", "id" => "inkthemes_feature1", "std" => "", "type" => "textarea"), array("name" => "Second Feature Image", "desc" => "Choose image for your feature column second. Optimal size 198px x 115px", "id" => "inkthemes_fimg2", "std" => "", "type" => "upload"), array("name" => "Second Feature Heading", "desc" => "Enter your heading line for second column", "id" => "inkthemes_headline2", "std" => "", "type" => "text"), array("name" => "Second Feature Link", "desc" => "Enter your link for feature column second", "id" => "inkthemes_link2", "std" => "", "type" => "text"), array("name" => "Second Feature Content", "desc" => "Enter your feature content for column second", "id" => "inkthemes_feature2", "std" => "", "type" => "textarea"), array("name" => "Third Feature Image", "desc" => "Choose image for your feature column thrid. Optimal size 198px x 115px", "id" => "inkthemes_fimg3", "std" => "", "type" => "upload"), array("name" => "Third Feature Heading", "desc" => "Enter your heading line for third column", "id" => "inkthemes_headline3", "std" => "", "type" => "text"), array("name" => "Third Feature Link", "desc" => "Enter your link for feature column third", "id" => "inkthemes_link3", "std" => "", "type" => "text"), array("name" => "Third Feature Content", "desc" => "Enter your feature content for third column", "id" => "inkthemes_feature3", "std" => "", "type" => "textarea"), array("name" => "Fourth Feature Image", "desc" => "Choose image for your feature column fourth. Optimal size 198px x 115px", "id" => "inkthemes_fimg4", "std" => "", "type" => "upload"), array("name" => "Fourth Feature Heading", "desc" => "Enter your heading line for fourth column", "id" => "inkthemes_headline4", "std" => "", "type" => "text"), array("name" => "Fourth Feature link", "desc" => "Enter your link for feature column fourth", "id" => "inkthemes_link4", "std" => "", "type" => "text"), array("name" => "Fourth Feature Content", "desc" => "Enter your feature content for fourth column", "id" => "inkthemes_feature4", "std" => "", "type" => "textarea"), array("name" => "Home Page Testimonial", "desc" => "Enter your text for homepage testimonial in short paragraph.", "id" => "inkthemes_testimonial", "std" => "", "type" => "textarea"), array("name" => "Home Page Blog Heading", "desc" => "Enter your text for homepage blog heading.", "id" => "inkthemes_blog_head", "std" => "", "type" => "textarea"), $options[] = array("name" => "Styling Options", "type" => "heading"), array("name" => "Custom CSS", "desc" => "Quickly add some CSS to your theme by adding it to this block.", "id" => "inkthemes_customcss", "std" => "", "type" => "textarea"), array("name" => "Footer Settings", "type" => "heading"), array("name" => "Facebook URL", "desc" => "Enter your Facebook URL if you have one", "id" => "colorway_facebook", "std" => "", "type" => "text"), array("name" => "Twitter URL", "desc" => "Enter your Twitter URL if you have one", "id" => "colorway_twitter", "std" => "", "type" => "text"), array("name" => "RSS Feed URL", "desc" => "Enter your RSS Feed URL if you have one", "id" => "colorway_rss", "std" => "", "type" => "text"), array("name" => "Linked In URL", "desc" => "Enter your Linkedin URL if you have one", "id" => "colorway_linkedin", "std" => "", "type" => "text"), array("name" => "Stumble Upon URL", "desc" => "Enter your Stumble Upon URL if you have one", "id" => "colorway_stumble", "std" => "", "type" => "text"), array("name" => "Digg URL", "desc" => "Enter your Stumble Upon URL if you have one", "id" => "colorway_digg", "std" => "", "type" => "text"));
     inkthemes_update_option('of_template', $options);
     inkthemes_update_option('of_themename', $themename);
     inkthemes_update_option('of_shortname', $shortname);
 }
Пример #3
0
    return update_option('inkthemes_options', $options);
}
$inkthemes_backup_data = get_option('inkthemes_backup_data');
if (!$inkthemes_backup_data) {
    $colorway_options = get_option('colorway');
    $inkthemes_options = get_option('inkthemes_options');
    if (!empty($colorway_options) && empty($inkthemes_options)) {
        foreach ($colorway_options as $key => $val) {
            inkthemes_update_option($key, $val);
        }
        update_option('inkthemes_backup_data', '1');
    } elseif (!empty($inkthemes_options)) {
        foreach ($colorway_options as $key => $val) {
            $previous_value = inkthemes_get_option($key);
            if ($previous_value == '') {
                inkthemes_update_option($key, $val);
            }
        }
        update_option('inkthemes_backup_data', '1');
    } elseif (empty($colorway_options) && empty($inkthemes_options)) {
        update_option('inkthemes_backup_data', '1');
    }
}
/* ----------------------------------------------------------------------------------- */
/* Styles Enqueue */
/* ----------------------------------------------------------------------------------- */
function inkthemes_add_stylesheet()
{
    if (!is_admin()) {
        wp_enqueue_style('inkthemes_reset_stylesheet', get_template_directory_uri() . "/css/reset.css", '', '', 'all');
        wp_enqueue_style('inkthemes_responsive_stylesheet', get_template_directory_uri() . "/css/960_24_col_responsive.css", '', '', 'all');
Пример #4
0
function inkthemes_ajax_callback()
{
    global $wpdb;
    // this is how you get access to the database
    $save_type = $_POST['type'];
    //Uploads
    if ($save_type == 'upload') {
        $clickedID = $_POST['data'];
        // Acts as the name
        $filename = $_FILES[$clickedID];
        $filename['name'] = preg_replace('/[^a-zA-Z0-9._\\-]/', '', $filename['name']);
        $override['test_form'] = false;
        $override['action'] = 'wp_handle_upload';
        $uploaded_file = wp_handle_upload($filename, $override);
        $upload_tracking[] = $clickedID;
        inkthemes_update_option($clickedID, $uploaded_file['url']);
        if (!empty($uploaded_file['error'])) {
            echo 'Upload Error: ' . $uploaded_file['error'];
        } else {
            echo $uploaded_file['url'];
        }
        // Is the Response
    } elseif ($save_type == 'image_reset') {
        $id = $_POST['data'];
        // Acts as the name
        inkthemes_delete_option($id);
    } elseif ($save_type == 'options' or $save_type == 'framework') {
        $data = $_POST['data'];
        parse_str($data, $output);
        //print_r($output);
        //Pull options
        $options = inkthemes_get_option('of_template');
        foreach ($options as $option_array) {
            $id = $option_array['id'];
            $old_value = inkthemes_get_option($id);
            $new_value = '';
            if (isset($output[$id])) {
                $new_value = $output[$option_array['id']];
            }
            if (isset($option_array['id'])) {
                // Non - Headings...
                $type = $option_array['type'];
                if (is_array($type)) {
                    foreach ($type as $array) {
                        if ($array['type'] == 'text') {
                            $id = $array['id'];
                            $std = $array['std'];
                            $new_value = $output[$id];
                            if ($new_value == '') {
                                $new_value = $std;
                            }
                            inkthemes_update_option($id, stripslashes($new_value));
                        }
                    }
                } elseif ($new_value == '' && $type == 'checkbox') {
                    // Checkbox Save
                    inkthemes_update_option($id, 'false');
                } elseif ($new_value == 'true' && $type == 'checkbox') {
                    // Checkbox Save
                    inkthemes_update_option($id, 'true');
                } elseif ($type == 'multicheck') {
                    // Multi Check Save
                    $option_options = $option_array['options'];
                    foreach ($option_options as $options_id => $options_value) {
                        $multicheck_id = $id . "_" . $options_id;
                        if (!isset($output[$multicheck_id])) {
                            inkthemes_update_option($multicheck_id, 'false');
                        } else {
                            inkthemes_update_option($multicheck_id, 'true');
                        }
                    }
                } elseif ($type == 'typography') {
                    $typography_array = array();
                    $typography_array['size'] = $output[$option_array['id'] . '_size'];
                    $typography_array['face'] = stripslashes($output[$option_array['id'] . '_face']);
                    $typography_array['style'] = $output[$option_array['id'] . '_style'];
                    $typography_array['color'] = $output[$option_array['id'] . '_color'];
                    inkthemes_update_option($id, $typography_array);
                } elseif ($type == 'border') {
                    $border_array = array();
                    $border_array['width'] = $output[$option_array['id'] . '_width'];
                    $border_array['style'] = $output[$option_array['id'] . '_style'];
                    $border_array['color'] = $output[$option_array['id'] . '_color'];
                    inkthemes_update_option($id, $border_array);
                } elseif ($type != 'upload_min') {
                    inkthemes_update_option($id, stripslashes($new_value));
                }
            }
        }
    }
    die;
}
Пример #5
0
 function of_options()
 {
     // VARIABLES
     $themename = get_theme_data(STYLESHEETPATH . '/style.css');
     $themename = $themename['Name'];
     $shortname = "of";
     // Populate OptionsFramework option in array for use in theme
     global $of_options;
     $of_options = inkthemes_get_option('of_options');
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     //Stylesheet Reader
     $alt_stylesheets = array("default" => "default", "black" => "black", "blue" => "blue", "green" => "green", "brown" => "brown", "deeppink" => "deeppink", "orange" => "orange", "purple" => "purple", "red" => "red", "forrestgreen" => "forrestgreen", "yellow" => "yellow");
     // Pull all the categories into an array
     $options_categories = array();
     $options_categories_obj = get_categories();
     foreach ($options_categories_obj as $category) {
         $options_categories[$category->cat_ID] = $category->cat_name;
     }
     // Pull all the pages into an array
     $options_pages = array();
     $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
     $options_pages[''] = 'Select a page:';
     foreach ($options_pages_obj as $page) {
         $options_pages[$page->ID] = $page->post_title;
     }
     // If using image radio buttons, define a directory path
     $imagepath = get_stylesheet_directory_uri() . '/images/';
     $options = array();
     $options[] = array("name" => "General Settings", "type" => "heading");
     $options[] = array("name" => "Custom Logo", "desc" => "Choose your own logo. Optimal Size: 300px Wide by 90px Height.", "id" => "inkthemes_logo", "type" => "upload");
     $options[] = array("name" => "Custom Favicon", "desc" => "Specify a 16px x 16px image that will represent your website's favicon.", "id" => "inkthemes_favicon", "type" => "upload");
     $options[] = array("name" => "Body Background Image", "desc" => "Select image to change your website background", "id" => "inkthemes_bodybg", "std" => "", "type" => "upload");
     $options[] = array("name" => "Tracking Code", "desc" => "Paste your Google Analytics (or other) tracking code here.", "id" => "inkthemes_analytics", "std" => "", "type" => "textarea");
     //Home Page Slider Setting
     $options[] = array("name" => "Slider Settings", "type" => "heading");
     //First Slider
     $options[] = array("name" => "Slider Image1", "desc" => "Choose your image for first slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage1", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 1 Link", "desc" => "Enter yout link url for slide1", "id" => "inkthemes_slidelink1", "std" => "", "type" => "text");
     //Second Slider
     $options[] = array("name" => "Slider Image2", "desc" => "Choose your image for second slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage2", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 2 Link", "desc" => "Enter yout link url for slide2", "id" => "inkthemes_slidelink2", "std" => "", "type" => "text");
     $options[] = array("name" => "Slider Image3", "desc" => "Choose your image for third slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage3", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 3 Link", "desc" => "Enter yout link for url slide3", "id" => "inkthemes_slidelink3", "std" => "", "type" => "text");
     //Fourth Slider
     $options[] = array("name" => "Slider Image4", "desc" => "Choose your image for fourth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage4", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 4 Link", "desc" => "Enter yout link url for slide4", "id" => "inkthemes_slidelink4", "std" => "", "type" => "text");
     //Fifth Slider
     $options[] = array("name" => "Slider Image5", "desc" => "Choose your image for sixth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage5", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 5 Link", "desc" => "Enter yout link url for slide5", "id" => "inkthemes_slidelink5", "std" => "", "type" => "text");
     //Sixth Slider
     $options[] = array("name" => "Slider Image6", "desc" => "Choose your image for sixth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage6", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 6 Link", "desc" => "Enter yout link url for slide6", "id" => "inkthemes_slidelink6", "std" => "", "type" => "text");
     //Homepage Feature Area
     $options[] = array("name" => "Homepage Feature Area", "type" => "heading");
     //Page Heading
     $options[] = array("name" => "Main Feature Heading", "desc" => "Enter your text for Page Heading.", "id" => "inkthemes_page_heading", "std" => "", "type" => "textarea");
     //Right Feature Separetor
     $options[] = array("name" => "Feature Section Starts From Here.", "type" => "saperate", "class" => "saperator");
     //Right Feature Area
     $options[] = array("name" => "Homepage Feature Area First Image", "desc" => "Choose your image for homepage feature area first image.", "id" => "inkthemes_featureimg1", "std" => "", "type" => "upload");
     $options[] = array("name" => "First Feature Heading", "desc" => "Enter your text for first col heading.", "id" => "inkthemes_firsthead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "First Feature Description", "desc" => "Enter your text for first col description.", "id" => "inkthemes_firstdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "First Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link1", "std" => "", "type" => "text");
     //Second Feature Separetor
     $options[] = array("name" => "Second Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Feature Area Second Image", "desc" => "Choose your image for homepage Feature area second image.", "id" => "inkthemes_featureimg2", "std" => "", "type" => "upload");
     $options[] = array("name" => "Second Feature Heading", "desc" => "Enter your text for second col heading.", "id" => "inkthemes_secondhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Second Col Description", "desc" => "Enter your text for second col description.", "id" => "inkthemes_seconddesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Second Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link2", "std" => "", "type" => "text");
     //Third Feature Separetor
     $options[] = array("name" => "Third Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Third Feature  Image", "desc" => "Choose your image for homepage Feature area third image.", "id" => "inkthemes_featureimg3", "std" => "", "type" => "upload");
     $options[] = array("name" => "Third Feature Heading", "desc" => "Enter your text for second col heading.", "id" => "inkthemes_thirdhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Third Feature Description", "desc" => "Enter your text for Third Feature description.", "id" => "inkthemes_thirddesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Third Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link3", "std" => "", "type" => "text");
     //Fourth Feature Separetor
     $options[] = array("name" => "Fourth Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Fourth Feature Area", "desc" => "Choose your image for homepage Feature Area fourth image. ", "id" => "inkthemes_featureimg4", "std" => "", "type" => "upload");
     $options[] = array("name" => "Fourth Feature  Heading", "desc" => "Enter your text for Fourh Feature Area heading.", "id" => "inkthemes_fourthhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Fourh Feature Area Description", "desc" => "Enter your text for first col description.", "id" => "inkthemes_fourthdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Fourth Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link4", "std" => "", "type" => "text");
     //Home Page Bottom Setting
     $options[] = array("name" => "Home Page Bottom Settings", "type" => "heading");
     $options[] = array("name" => "Tagline Text", "desc" => "Enter your text Tagline Section.", "id" => "inkthemes_tagline_text", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Feature Button Text", "desc" => "Enter your link url for feature button section.", "id" => "inkthemes_tagline_button", "std" => "", "type" => "text");
     $options[] = array("name" => "Feature Button Link URL", "desc" => "Enter your link url for feature button section.", "id" => "inkthemes_tagline_button_link", "std" => "", "type" => "text");
     //Bottom Feature Separetor
     $options[] = array("name" => "Bottom Feature Start From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Bottom Left Heading", "desc" => "Enter your text bottom left Section.", "id" => "inkthemes_bottomleft_heading", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Bottom Left Text", "desc" => "Enter your text bottom left Section.", "id" => "inkthemes_bottomleft_description", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Enter Your Blog Heading", "desc" => "Enter your text for blog heading.", "id" => "inkthemes_bottom_blog", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Testimonial Heading", "desc" => "Enter your text Testimonial Heading.", "id" => "inkthemes_testimonial", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Testimonial Text", "desc" => "Enter your text or code", "id" => "inkthemes_testimonial_text", "std" => "", "type" => "textarea");
     //****=============================================================================****//
     //****-----------This code is used for creating color styleshteet options----------****//
     //****=============================================================================****//
     $options[] = array("name" => "Styling Options", "type" => "heading");
     $options[] = array("name" => "Theme Stylesheet", "desc" => "Select your themes alternative color scheme.", "id" => "inkthemes_altstylesheet", "std" => "black", "type" => "select", "options" => $alt_stylesheets);
     $options[] = array("name" => "Custom CSS", "desc" => "Quickly add some CSS to your theme by adding it to this block.", "id" => "inkthemes_customcss", "std" => "", "type" => "textarea");
     //****=============================================================================****//
     //****-------------This code is used for creating social logos options-------------****//
     //****=============================================================================****//
     $options[] = array("name" => "Social Logos", "type" => "heading");
     $options[] = array("name" => "Facebook URL", "desc" => "Enter your Facebook URL if you have one", "id" => "inkthemes_facebook", "std" => "", "type" => "text");
     $options[] = array("name" => "Twitter URL", "desc" => "Enter your Twitter URL if you have one", "id" => "inkthemes_twitter", "std" => "", "type" => "text");
     $options[] = array("name" => "RSS Feed URL", "desc" => "Enter your RSS Feed URL if you have one", "id" => "inkthemes_rss", "std" => "", "type" => "text");
     $options[] = array("name" => "Google+ URL", "desc" => "Enter your Google+ URL if you have one", "id" => "inkthemes_google", "std" => "", "type" => "text");
     //****=============================================================================****//
     //****-------------This code is used for creating Bottom Footer Setting options-------------****//
     //****=============================================================================****//
     $options[] = array("name" => "Footer Settings", "type" => "heading");
     $options[] = array("name" => "Footer Text", "desc" => "Enter text you want to be displayed on Footer", "id" => "inkthemes_footertext", "std" => "", "type" => "textarea");
     //------------------------------------------------------------------//
     //-------------This code is used for creating SEO description-------//
     //------------------------------------------------------------------//
     $options[] = array("name" => "SEO Options", "type" => "heading");
     $options[] = array("name" => "Meta Keywords (comma separated)", "desc" => "Meta keywords provide search engines with additional information about topics that appear on your site. This only applies to your home page. Keyword Limit Maximum 8", "id" => "inkthemes_keyword", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Meta Description", "desc" => "You should use meta descriptions to provide search engines with additional information about topics that appear on your site. This only applies to your home page.Optimal Length for Search Engines, Roughly 155 Characters", "id" => "inkthemes_description", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Meta Author Name", "desc" => "You should write the full name of the author here. This only applies to your home page.", "id" => "inkthemes_author", "std" => "", "type" => "textarea");
     inkthemes_update_option('of_template', $options);
     inkthemes_update_option('of_themename', $themename);
     inkthemes_update_option('of_shortname', $shortname);
 }