Example #1
0
 function optionsframework_options()
 {
     // Fonts
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     return array();
 }
Example #2
0
/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the "id" fields, make sure to use all lowercase and no spaces.
 *  
 */
function optionsframework_options()
{
    // Graphic logo or dynamic text
    $logo_type = array("text" => __('Text', 'simple'), "image" => __('Image', 'simple'));
    // Yes or No
    $yes = array("yes" => __('Yes', 'simple'), "no" => __('No', 'simple'));
    // True or False
    $tf = array("true" => __('Yes', 'simple'), "false" => __('No', 'simple'));
    // excerpt or full content
    $content_type = array("excerpt" => __('Excerpt', 'simple'), "content" => __('Full Content', 'simple'));
    $options = array();
    $options[] = array("name" => __('Header', 'simple'), "type" => "heading");
    $options['logo'] = array("name" => __('Upload Logo', 'simple'), "desc" => __('Upload a graphic logo here.', 'simple'), "id" => "logo", "type" => "upload");
    $options['site_title_font'] = array('name' => __('Text Logo Font', 'simple'), 'desc' => __('Choose the type for your text logo.', 'simple'), 'id' => 'site_title_font', 'std' => array('size' => '50px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['logo_color'] = array("name" => __('Text Logo Color', 'simple'), "desc" => __('The color of a text based logo.', 'simple'), "id" => "logo_color", "std" => "", "type" => "color");
    $options['logo_color_hover'] = array("name" => __('Text Logo Hover Color', 'simple'), "desc" => __('The color of a text based logo while hovering.', 'simple'), "id" => "logo_color_hover", "std" => "", "type" => "color");
    $options['navigation_font'] = array('name' => __('Navigation Item Font', 'simple'), 'desc' => __('Sets the type for your navigation menu.', 'simple'), 'id' => 'navigation_font', 'std' => array('size' => '20px', 'face' => 'Raleway, cursive', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['navigation_background_color'] = array("name" => __('Navigation Bar Background Color', 'simple'), "desc" => __('Sets the background color for navigation bar.', 'simple'), "id" => "navigation_background_color", "std" => "", "type" => "color");
    $options['navigation_link_color'] = array("name" => __('Navigation Link Color', 'simple'), "desc" => __('Sets the link color for navigation bar.', 'simple'), "id" => "navigation_link_color", "std" => "", "type" => "color");
    $options['navigation_link_color_hover'] = array("name" => __('Navigation Link Hover', 'simple'), "desc" => __('Sets the link color for navigation bar while hovering.', 'simple'), "id" => "navigation_link_color_hover", "std" => "", "type" => "color");
    $options['navigation_link_color_hover_background'] = array("name" => __('Navigation Link Hover Background', 'simple'), "desc" => __('Sets the background link color for navigation bar while hovering.', 'simple'), "id" => "navigation_link_color_hover_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Favicon', 'simple'), "desc" => __('Upload a favicon (small icon that sits beside your websites address in a browser navigation bar here.', 'simple'), "id" => "favicon", "std" => "", "type" => "upload");
    $options[] = array("name" => __('Mobile Navigation Label', 'simple'), "desc" => __('Sets the text for the mobile navigation menu', 'simple'), "id" => "mobile_navigation_name", "std" => "Navigation", "type" => "text");
    $options[] = array("name" => __('Content', 'simple'), "type" => "heading");
    $options['content_excerpt'] = array("name" => __('Excerpt Or Full Content', 'simple'), "desc" => __('You can choose to display your full post content or only an excerpt on archive pages.', 'simple'), "id" => "content_excerpt", "std" => "yes", "type" => "select", "class" => "mini", "options" => $content_type);
    $options['body_font'] = array('name' => __('Body Font', 'simple'), 'desc' => __('This is used for the main conent and widgets.', 'simple'), 'id' => 'body_font', 'std' => array('size' => '15px', 'face' => 'Open Sans, sans-serif', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['link_color'] = array("name" => __('Link Color', 'simple'), "desc" => __('Sets the default color for links.', 'simple'), "id" => "link_color", "std" => "", "type" => "color");
    $options['link_color_hover'] = array("name" => __('Link Hover Color', 'simple'), "desc" => __('Sets the hover state color for links.', 'simple'), "id" => "link_color_hover", "std" => "", "type" => "color");
    $options['content_text'] = array("name" => __('Text Color', 'simple'), "desc" => __('The color of your main text', 'simple'), "id" => "content_text", "std" => "", "type" => "color");
    $options['content_background'] = array("name" => __('Content Background Color', 'simple'), "desc" => __('The background color of the main content area.', 'simple'), "id" => "content_background", "std" => "", "type" => "color");
    $options['heading_font'] = array('name' => __('Heading Font', 'simple'), 'desc' => __('Choose a font for your page titles and other headings (h1, h2, h3, h4, h5, h6)', 'simple'), 'id' => 'heading_font', 'std' => array('size' => '24px', 'face' => 'Raleway, cursive', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'sizes' => false, 'color' => false));
    $options['heading_color'] = array("name" => __('Heading Color', 'simple'), "desc" => __('The color of your headings', 'simple'), "id" => "heading_color", "std" => "", "type" => "color");
    $options[] = array("name" => __('Footer', 'simple'), "type" => "heading");
    $options['footer_text'] = array("name" => __('Custom Footer Text', 'simple'), "desc" => __('The text you enter here will be displayed in the footer.', 'simple'), "id" => "footer_text", "std" => "", "type" => "text");
    $options['footer_color'] = array("name" => __('Footer Text Color', 'simple'), "desc" => __('The color the text in your footer.', 'simple'), "id" => "footer_color", "std" => "", "type" => "color");
    $options['footer_background'] = array("name" => __('Footer background Color', 'simple'), "desc" => __('The background color the text in your footer.', 'simple'), "id" => "footer_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Widgets', 'simple'), "type" => "heading");
    $options['widget_title_font'] = array('name' => __('Widget Title Font', 'simple'), 'desc' => __('Choose a font for your widget titles.', 'simple'), 'id' => 'widget_title_font', 'std' => array('size' => '24px', 'face' => 'Raleway, cursive', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['widget_title'] = array("name" => __('Widget Title Color', 'simple'), "desc" => __('Text color for widget titles', 'simple'), "id" => "widget_title", "std" => "", "type" => "color");
    $options['widget_title_background'] = array("name" => __('Widget Title Background', 'simple'), "desc" => __('Background color for widget titles.', 'simple'), "id" => "widget_title_background", "std" => "", "type" => "color");
    $options['widget_text'] = array("name" => __('Widget Text Color', 'simple'), "desc" => __('Sets the color of text in widgets.', 'simple'), "id" => "widget_text", "std" => "", "type" => "color");
    $options['widget_background'] = array("name" => __('Widget Background Color', 'simple'), "desc" => __('Sets the background color in widgets.', 'simple'), "id" => "widget_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Buttons', 'simple'), "type" => "heading");
    $options['button'] = array("name" => __('Button Text', 'simple'), "desc" => __('Text color for buttons', 'simple'), "id" => "button", "std" => "", "type" => "color");
    $options['button_background'] = array("name" => __('Button Background', 'simple'), "desc" => __('Background color for buttons', 'simple'), "id" => "button_background", "std" => "", "type" => "color");
    $options['button_hover'] = array("name" => __('Button Text (hover)', 'simple'), "desc" => __('Text color for buttons while hovering', 'simple'), "id" => "button_hover", "std" => "", "type" => "color");
    $options['button_background_hover'] = array("name" => __('Button Background (hover)', 'simple'), "desc" => __('Background color for buttons while hovering', 'simple'), "id" => "button_background_hover", "std" => "", "type" => "color");
    $options[] = array("name" => __('Advanced', 'simple'), "type" => "heading");
    $options[] = array('name' => __('Enable Google Fonts', 'simple'), 'desc' => __('Turns on the output of Google fonts.', 'simple'), 'id' => 'disable_fonts', 'std' => true, 'type' => 'checkbox');
    $options[] = array("name" => __('Custom CSS', 'simple'), "desc" => __('Add any custom CSS you would like to use here.', 'simple'), "id" => "custom_css", "std" => "", "type" => "textarea");
    return $options;
}
 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     // Define all the options that possibly have a unique Google font
     $google_font = of_get_option('google_font', 'Rokkitt, serif');
     $google_mixed = of_get_option('google_mixed', false);
     $google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
     // Get the font face for each option and put it in an array
     $selected_fonts = array($google_font['face'], $google_mixed['face'], $google_mixed_2['face']);
     // Remove any duplicates in the list
     $selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font);
         }
     }
 }
Example #4
0
File: fonts.php Project: sytzec/wp
 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     // Define all the options that possibly have a unique Google font
     $site_title_font = of_get_option('site_title_font', 'Open Sans, sans-serif');
     $headings = of_get_option('heading_font', false);
     $navigation = of_get_option('navigation', false);
     $body_font = of_get_option('body_font', false);
     $widget_title_font = of_get_option('widget_title_font', false);
     // Get the font face for each option and put it in an array
     $selected_fonts = array($site_title_font['face'], $headings['face'], $navigation['face'], $body_font['face'], $widget_title_font['face']);
     // Remove any duplicates in the list
     $selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font);
         }
     }
 }
/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
 */
function optionsframework_options()
{
    $options = array();
    $options[] = array('name' => 'Typography Settings', 'type' => 'heading');
    // Available Options for Header Font
    $typography_options_headers = array('sizes' => array('18', '23', '27', '31'), 'faces' => array('"Helvetica Neue", Helvetica, sans-serif' => 'Helvetica Neue', '"Arial Black", arial, sans-serif' => 'Arial Black', '"Avant Garde", sans-serif' => 'Avant Garde'), 'styles' => array('normal' => 'Normal', 'bold' => 'Bold'));
    $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
    asort($typography_mixed_fonts);
    $options[] = array('name' => 'Site Title Font', 'desc' => 'Select the site title font', 'id' => 'site_title_font', 'std' => array('size' => '27px', 'color' => '#000000'), 'type' => 'typography', 'options' => $typography_options_headers);
    $options[] = array('name' => 'Header Font', 'desc' => 'Select the headline font (h1,h2,h3 etc)', 'id' => 'header_font', 'std' => array('size' => '18px', 'color' => '#000000'), 'type' => 'typography', 'options' => $typography_options_headers);
    // Available Options for Body Font
    $typography_options_body = array('sizes' => array('12', '13', '14', '15', '16', '17'), 'faces' => array('georgia, serif' => 'Georgia', 'palatino, serif' => 'Palatino', 'garamond, serif' => 'Garamond'), 'styles' => false);
    $options[] = array('name' => 'Body Font', 'desc' => 'This font is used for all body text.', 'id' => 'body_font', 'std' => array('size' => '13px', 'face' => 'georgia, serif', 'color' => '#333333'), 'type' => 'typography', 'options' => $typography_options_body);
    $options[] = array('name' => 'Link color', "desc" => "Select the color for links.", "id" => "link_color", "std" => "#bada55", "type" => "color");
    $options[] = array('name' => 'Link hover color', "desc" => 'Select the hover color for links.', "id" => "link_hover_color", "std" => "#ff00a6", "type" => "color");
    $options[] = array('name' => 'Disable Styles', 'desc' => 'Disable option styles and use theme defaults.', 'id' => 'disable_styles', 'std' => false, 'type' => 'checkbox');
    $options[] = array('name' => 'Google Fonts', 'type' => 'heading');
    $options[] = array("name" => "About Google Fonts", "desc" => '<p>Google fonts can be included in the fonts array just like other fonts.  However, you\'ll still need to check which ones are selected and load those on the front end so that they can be used. Google has <a href="https://developers.google.com/webfonts/docs/getting_started#Quick_Start">more information about this</a>.</p><p>I also have a <a href="http://wptheming.com/?p=2545">post on my site</a> that explains how this code work in more detail.</p>', "type" => "info");
    $options[] = array('name' => 'Selected Google Fonts', 'desc' => 'Fifteen of the top google fonts.', 'id' => 'google_font', 'std' => array('size' => '36px', 'face' => 'Rokkitt, serif', 'color' => '#00bc96'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false));
    $options[] = array('name' => 'System Fonts and Google Fonts Mixed', 'desc' => 'Google fonts mixed with system fonts.', 'id' => 'google_mixed', 'std' => array('size' => '32px', 'face' => 'Georgia, serif', 'color' => '#f15081'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts, 'styles' => false));
    $options[] = array('name' => 'System Fonts and Google Fonts Mixed (2)', 'desc' => 'Google fonts mixed with system fonts.', 'id' => 'google_mixed_2', 'std' => array('size' => '28px', 'face' => 'Arvo, serif', 'color' => '#ee9f23'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts, 'styles' => false));
    return $options;
}
Example #6
0
 function optionsframework_options()
 {
     // Fonts
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options['general'] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '#686766', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("id" => "body_background", "std" => $background_defaults);
     $options['main_layout'] = array("id" => "main_layout", "std" => "fullwidth");
     $options['main_background'] = array("id" => "main_background", "std" => "#fafafa");
     $header_bg_defaults = array('color' => '#292625', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['header_background'] = array("id" => "header_background", "std" => $header_bg_defaults);
     $options['links_color'] = array("id" => "links_color", "std" => "#fe8301");
     $options['links_color_hover'] = array("id" => "links_color_hover", "std" => "#292625");
     $options['google_mixed_3'] = array('id' => 'google_mixed_3', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#746a62'));
     $options['h1_heading'] = array('id' => 'h1_heading', 'std' => array('size' => '54px', 'lineheight' => '54px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#fe8301'));
     $options['h2_heading'] = array('id' => 'h2_heading', 'std' => array('size' => '54px', 'lineheight' => '54px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#fe8301'));
     $options['h3_heading'] = array('id' => 'h3_heading', 'std' => array('size' => '54px', 'lineheight' => '54px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#fe8301'));
     $options['h4_heading'] = array('id' => 'h4_heading', 'std' => array('size' => '21px', 'lineheight' => '24px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#545454'));
     $options['h5_heading'] = array('id' => 'h5_heading', 'std' => array('size' => '20px', 'lineheight' => '20px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#545454'));
     $options['h6_heading'] = array('id' => 'h6_heading', 'std' => array('size' => '21px', 'lineheight' => '24px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#545454'));
     $options['g_search_box_id'] = array("id" => "g_search_box_id", "std" => "yes");
     $options['g_breadcrumbs_id'] = array("id" => "g_breadcrumbs_id", "std" => "yes");
     $options['custom_css'] = array("id" => "custom_css", "std" => "");
     //Social Links
     $options[] = array("name" => "Social", "type" => "heading");
     $options['google'] = array("name" => "Google+ URL", "desc" => "Google+ URL", "id" => "google", "std" => "#", "type" => "text");
     $options['google_icon'] = array("name" => "Google+ Icon", "desc" => "Google+ Icon", "id" => "google_icon", "std" => get_stylesheet_directory_uri() . "/images/social/google.png", "type" => "upload");
     $options['twitter'] = array("name" => "Twitter URL", "desc" => "Twitter URL", "id" => "twitter", "std" => "#", "type" => "text");
     $options['twitter_icon'] = array("name" => "Twitter Icon", "desc" => "Twitter Icon", "id" => "twitter_icon", "std" => get_stylesheet_directory_uri() . "/images/social/twitter.png", "type" => "upload");
     $options['facebook'] = array("name" => "Facebook URL", "desc" => "Facebook URL", "id" => "facebook", "std" => "#", "type" => "text");
     $options['facebook_icon'] = array("name" => "Facebook Icon", "desc" => "Facebook Icon", "id" => "facebook_icon", "std" => get_stylesheet_directory_uri() . "/images/social/facebook.png", "type" => "upload");
     $options['pinterest'] = array("name" => "Pinterest URL", "desc" => "Pinterest URL", "id" => "pinterest", "std" => "#", "type" => "text");
     $options['pinterest_icon'] = array("name" => "Pinterest Icon", "desc" => "Pinterest Icon", "id" => "pinterest_icon", "std" => get_stylesheet_directory_uri() . "/images/social/pinterest.png", "type" => "upload");
     $options['linkedin'] = array("name" => "Linkedin URL", "desc" => "Linkedin URL", "id" => "linkedin", "std" => "#", "type" => "text");
     $options['linkedin_icon'] = array("name" => "Linkedin Icon", "desc" => "Linkedin Icon", "id" => "linkedin_icon", "std" => get_stylesheet_directory_uri() . "/images/social/linkedin.png", "type" => "upload");
     //End Social Links
     // ---------------------------------------------------------
     // Parallax Slider
     // ---------------------------------------------------------
     $options['px_slider'] = array("name" => __('Parallax Slider', CURRENT_THEME), "type" => "heading");
     $options['px_slider_visibility'] = array("name" => __('Display Parallax Slider?', CURRENT_THEME), "desc" => __('Display Parallax Slider?', CURRENT_THEME), "id" => "px_slider_visibility", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_effect'] = array("name" => __('Sliding effect', CURRENT_THEME), "desc" => __('Select your animation type.', CURRENT_THEME), "id" => "px_slider_effect", "type" => "select", "std" => "simple-fade-eff", "options" => array("simple-fade-eff" => __('Simple Fade', CURRENT_THEME), "zoom-fade-eff" => __('Zoom Fade', CURRENT_THEME), "slide-top-eff" => __('Slide Top', CURRENT_THEME)));
     $options['px_slider_auto'] = array("name" => __('Slideshow', CURRENT_THEME), "desc" => __('Animate slider automatically?', CURRENT_THEME), "id" => "px_slider_auto", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_pause'] = array("name" => __('Pause time', CURRENT_THEME), "desc" => __('Pause time (ms).', CURRENT_THEME), "id" => "px_slider_pause", "type" => "text", "std" => "7000");
     $options['px_slider_speed'] = array("name" => __('Animation speed', CURRENT_THEME), "desc" => __('Animation speed (ms).', CURRENT_THEME), "id" => "px_slider_speed", "type" => "text", "std" => "1500");
     $options['px_slider_pags'] = array("name" => __('Pagination', CURRENT_THEME), "desc" => __('Display pagination?', CURRENT_THEME), "id" => "px_slider_pags", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_navs'] = array("name" => __('Next & Prev navigation', CURRENT_THEME), "desc" => __('Display next & prev navigation?', CURRENT_THEME), "id" => "px_slider_navs", "type" => "radio", "std" => "false", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options["logo_favicon"] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     $options['logo_type'] = array("id" => "logo_type", "std" => "image_logo");
     $options['logo_typography'] = array('id' => 'logo_typography', 'std' => array('size' => '53px', 'lineheight' => '60px', 'face' => 'Lato', 'style' => 'bold', 'character' => 'latin', 'color' => '#fe8301'));
     $options['logo_url'] = array("id" => "logo_url", "std" => CHILD_URL . "/images/logo.png");
     $options['favicon'] = array("id" => "favicon", "std" => CHILD_URL . "/favicon.ico");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('id' => 'menu_typography', 'std' => array('size' => '24px', 'lineheight' => '31px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#888888'));
     $options['sf_delay'] = array("id" => "sf_delay", "std" => "1000");
     $options['sf_f_animation'] = array("id" => "sf_f_animation", "std" => "show");
     $options['sf_sl_animation'] = array("id" => "sf_sl_animation", "std" => "show");
     $options['sf_speed'] = array("id" => "sf_speed", "std" => "normal");
     $options['sf_arrows'] = array("id" => "sf_arrows", "std" => "false");
     $options['mobile_menu_label'] = array("id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'));
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['sl_type'] = array("id" => "slider_type", "std" => "none_slider");
     // ---------------------------------------------------------
     // Camera Slider
     // ---------------------------------------------------------
     $options['sl_effect'] = array("id" => "sl_effect", "std" => "simpleFade");
     $options['sl_columns'] = array("id" => "sl_columns", "std" => "12");
     $options['sl_rows'] = array("id" => "sl_rows", "std" => "8");
     $options['sl_banner'] = array("id" => "sl_banner", "std" => "fadeIn");
     $options['sl_pausetime'] = array("id" => "sl_pausetime", "std" => "7000");
     $options['sl_animation_speed'] = array("id" => "sl_animation_speed", "std" => "1500");
     $options['sl_slideshow'] = array("id" => "sl_slideshow", "std" => "true");
     $options['sl_thumbnails'] = array("id" => "sl_thumbnails", "std" => "true");
     // set "disabled" => "true" when only text in Slider posts
     $options['sl_control_nav'] = array("id" => "sl_control_nav", "std" => "true");
     $options['sl_dir_nav'] = array("id" => "sl_dir_nav", "std" => "false");
     $options['sl_dir_nav_hide'] = array("id" => "sl_dir_nav_hide", "std" => "false");
     $options['sl_play_pause_button'] = array("id" => "sl_play_pause_button", "std" => "false");
     $options['sl_pause_on_hover'] = array("id" => "sl_pause_on_hover", "std" => "true");
     $options['sl_loader'] = array("id" => "sl_loader", "std" => "no");
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $multicheck_defaults = array('43' => 0, '49' => 0, '50' => 0, '51' => 0, '52' => 0);
     $options['acc_show_post'] = array("id" => "acc_show_post", "std" => $multicheck_defaults);
     $options['acc_slideshow'] = array("id" => "acc_slideshow", "std" => "false");
     $options['acc_hover_pause'] = array("id" => "acc_hover_pause", "std" => "true");
     $options['acc_pausetime'] = array("id" => "acc_pausetime", "std" => "6000");
     $options['acc_animation_speed'] = array("id" => "acc_animation_speed", "std" => "600");
     $options['acc_easing'] = array("id" => "acc_easing", "std" => "easeOutCubic");
     $options['acc_trigger'] = array("id" => "acc_trigger", "std" => "mouseover");
     $options['acc_starting_slide'] = array("id" => "acc_starting_slide", "std" => "0");
     // ---------------------------------------------------------
     // Blog
     // --------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("id" => "blog_text", "std" => theme_locals('blog'));
     $options['blog_related'] = array("id" => "blog_related", "std" => theme_locals('posts_std'));
     $options['blog_sidebar_pos'] = array("id" => "blog_sidebar_pos", "std" => "right");
     $options['post_image_size'] = array("id" => "post_image_size", "std" => "large");
     $options['single_image_size'] = array("id" => "single_image_size", "std" => "large");
     $options['post_meta'] = array("id" => "post_meta", "std" => "true");
     $options['post_meta_display'] = array("id" => "post_meta_display", "std" => "only_post");
     $options['post_excerpt'] = array("id" => "post_excerpt", "std" => "true");
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("id" => "folio_filter", "std" => "cat");
     $options['folio_title'] = array("id" => "folio_title", "std" => "yes");
     $options['folio_excerpt'] = array("id" => "folio_excerpt", "std" => "yes");
     $options['folio_excerpt_count'] = array("id" => "folio_excerpt_count", "std" => "20");
     $options['folio_btn'] = array("id" => "folio_btn", "std" => "no");
     $options['folio_meta'] = array("id" => "folio_meta", "std" => "yes");
     $options['layout_mode'] = array("id" => "layout_mode", "std" => "fitRows");
     $options['items_count2'] = array("id" => "items_count2", "std" => "8");
     $options['items_count3'] = array("id" => "items_count3", "std" => "9");
     $options['items_count4'] = array("id" => "items_count4", "std" => "12");
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("id" => "footer_text", "std" => "");
     $options['ga_code'] = array("id" => "ga_code", "std" => "");
     $options['feed_url'] = array("id" => "feed_url", "std" => "");
     $options['footer_menu'] = array("id" => "footer_menu", "std" => "true");
     $options['footer_menu_typography'] = array('id' => 'footer_menu_typography', 'std' => array('size' => '18px', 'lineheight' => '20px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#ffffff'));
     // ---------------------------------------------------------
     // Map
     // ---------------------------------------------------------
     $options[] = array("name" => "Map", "type" => "heading");
     $options['latitude'] = array("name" => __("Latitude", CURRENT_THEME), "desc" => __("Latitude", CURRENT_THEME), "id" => "latitude", "std" => "34.4208333", "type" => "text");
     $options['longitude'] = array("name" => __("Longitude", CURRENT_THEME), "desc" => __("Longitude", CURRENT_THEME), "id" => "longitude", "std" => "-119.6972222", "type" => "text");
     $options['description'] = array("name" => __("Marker Description", CURRENT_THEME), "desc" => __("Marker Description. HTML tags are allowed.", CURRENT_THEME), "id" => "description", "std" => "<h6>Ut telloribus eget eleme</h6>\n<p>Aean auctoetnaliir pis nteerutrulla fn nec ero ane ipsummis fau.</p>", "type" => "textarea");
     $options['zoom'] = array("name" => __("Zoom", CURRENT_THEME), "desc" => __("Zoom", CURRENT_THEME), "id" => "zoom", "std" => "10", "type" => "text");
     return $options;
 }
Example #7
0
 function optionsframework_options()
 {
     // Fonts
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     $typography_mixed_fonts["Roboto, sans-serif"] = "Roboto *";
     asort($typography_mixed_fonts);
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options['general'] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '#4e4a47', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("id" => "body_background", "std" => $background_defaults);
     $options['main_layout'] = array("id" => "main_layout", "std" => "fullwidth");
     $options['main_background'] = array("id" => "main_background", "std" => "#fafafa");
     $header_bg_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['header_background'] = array("id" => "header_background", "std" => $header_bg_defaults);
     $options['links_color'] = array("id" => "links_color", "std" => "#f47700");
     $options['links_color_hover'] = array("id" => "links_color_hover", "std" => "#4f4a47");
     $options['google_mixed_3'] = array('id' => 'google_mixed_3', 'std' => array('size' => '14px', 'lineheight' => '24px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#85837f'));
     $options['h1_heading'] = array('id' => 'h1_heading', 'std' => array('size' => '30px', 'lineheight' => '35px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#4f4a47'));
     $options['h2_heading'] = array('id' => 'h2_heading', 'std' => array('size' => '48px', 'lineheight' => '57px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#4f4a47'));
     $options['h3_heading'] = array('id' => 'h3_heading', 'std' => array('size' => '24px', 'lineheight' => '24px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#292828'));
     $options['h4_heading'] = array('id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#4f4a47'));
     $options['h5_heading'] = array('id' => 'h5_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#4f4a47'));
     $options['h6_heading'] = array('id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#4f4a47'));
     $options['g_search_box_id'] = array("id" => "g_search_box_id", "std" => "yes");
     $options['g_breadcrumbs_id'] = array("id" => "g_breadcrumbs_id", "std" => "yes");
     $options['custom_css'] = array("id" => "custom_css", "std" => "");
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options["logo_favicon"] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     $options['logo_type'] = array("id" => "logo_type", "std" => "image_logo");
     $options['logo_typography'] = array('id' => 'logo_typography', 'std' => array('size' => '34px', 'lineheight' => '40px', 'face' => 'Cutive', 'style' => 'normal', 'character' => 'latin', 'color' => '#4e4a47'));
     $options['logo_url'] = array("id" => "logo_url", "std" => CHILD_URL . "/images/logo.png");
     $options['favicon'] = array("id" => "favicon", "std" => CHILD_URL . "/favicon.ico");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('id' => 'menu_typography', 'std' => array('size' => '24px', 'lineheight' => '24px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#aba9a4'));
     $options['sf_delay'] = array("id" => "sf_delay", "std" => "1000");
     $options['sf_f_animation'] = array("id" => "sf_f_animation", "std" => "show");
     $options['sf_sl_animation'] = array("id" => "sf_sl_animation", "std" => "show");
     $options['sf_speed'] = array("id" => "sf_speed", "std" => "normal");
     $options['sf_arrows'] = array("id" => "sf_arrows", "std" => "false", "disable" => "true");
     $options['mobile_menu_label'] = array("id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'));
     $options['stickup_menu'] = array("id" => "stickup_menu", "std" => "true");
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['sl_type'] = array("id" => "slider_type", "std" => "camera_slider");
     // ---------------------------------------------------------
     // Camera Slider
     // ---------------------------------------------------------
     $options['sl_effect'] = array("id" => "sl_effect", "std" => "simpleFade");
     $options['sl_columns'] = array("id" => "sl_columns", "std" => "12");
     $options['sl_rows'] = array("id" => "sl_rows", "std" => "8");
     $options['sl_banner'] = array("id" => "sl_banner", "std" => "fadeIn");
     $options['sl_pausetime'] = array("id" => "sl_pausetime", "std" => "7000");
     $options['sl_animation_speed'] = array("id" => "sl_animation_speed", "std" => "1500");
     $options['sl_slideshow'] = array("id" => "sl_slideshow", "std" => "true");
     $options['sl_thumbnails'] = array("id" => "sl_thumbnails", "std" => "true");
     // set "disabled" => "true" when only text in Slider posts
     $options['sl_control_nav'] = array("id" => "sl_control_nav", "std" => "true");
     $options['sl_dir_nav'] = array("id" => "sl_dir_nav", "std" => "true");
     $options['sl_dir_nav_hide'] = array("id" => "sl_dir_nav_hide", "std" => "false");
     $options['sl_play_pause_button'] = array("id" => "sl_play_pause_button", "std" => "true");
     $options['sl_pause_on_hover'] = array("id" => "sl_pause_on_hover", "std" => "true");
     $options['sl_loader'] = array("id" => "sl_loader", "std" => "no");
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $multicheck_defaults = array('43' => 0, '49' => 0, '50' => 0, '51' => 0, '52' => 0);
     $options['acc_show_post'] = array("id" => "acc_show_post", "std" => $multicheck_defaults);
     $options['acc_slideshow'] = array("id" => "acc_slideshow", "std" => "false");
     $options['acc_hover_pause'] = array("id" => "acc_hover_pause", "std" => "true");
     $options['acc_pausetime'] = array("id" => "acc_pausetime", "std" => "6000");
     $options['acc_animation_speed'] = array("id" => "acc_animation_speed", "std" => "600");
     $options['acc_easing'] = array("id" => "acc_easing", "std" => "easeOutCubic");
     $options['acc_trigger'] = array("id" => "acc_trigger", "std" => "mouseover");
     $options['acc_starting_slide'] = array("id" => "acc_starting_slide", "std" => "0");
     // ---------------------------------------------------------
     // Blog
     // --------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("id" => "blog_text", "std" => theme_locals('blog'));
     $options['blog_related'] = array("id" => "blog_related", "std" => theme_locals('posts_std'));
     $options['blog_sidebar_pos'] = array("id" => "blog_sidebar_pos", "std" => "right");
     $options['post_image_size'] = array("id" => "post_image_size", "std" => "large");
     $options['single_image_size'] = array("id" => "single_image_size", "std" => "large");
     $options['post_meta'] = array("id" => "post_meta", "std" => "true");
     $options['post_meta_display'] = array("id" => "post_meta_display", "std" => "only_post");
     $options['post_excerpt'] = array("id" => "post_excerpt", "std" => "true");
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("id" => "folio_filter", "std" => "cat");
     $options['folio_title'] = array("id" => "folio_title", "std" => "yes");
     $options['folio_excerpt'] = array("id" => "folio_excerpt", "std" => "yes");
     $options['folio_excerpt_count'] = array("id" => "folio_excerpt_count", "std" => "20");
     $options['folio_btn'] = array("id" => "folio_btn", "std" => "no");
     $options['folio_meta'] = array("id" => "folio_meta", "std" => "yes");
     $options['layout_mode'] = array("id" => "layout_mode", "std" => "fitRows");
     $options['items_count2'] = array("id" => "items_count2", "std" => "8");
     $options['items_count3'] = array("id" => "items_count3", "std" => "9");
     $options['items_count4'] = array("id" => "items_count4", "std" => "12");
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("id" => "footer_text", "std" => "");
     $options['ga_code'] = array("id" => "ga_code", "std" => "");
     $options['feed_url'] = array("id" => "feed_url", "std" => "");
     $options['footer_menu'] = array("id" => "footer_menu", "std" => "false");
     $options['footer_menu_typography'] = array('id' => 'footer_menu_typography', 'std' => array('size' => '14px', 'lineheight' => '24px', 'face' => 'Roboto, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#d8d7d2'));
     // ---------------------------------------------------------
     // Contacts
     // ---------------------------------------------------------
     $options[] = array("name" => __("Contacts", CURRENT_THEME), "type" => "heading");
     $options['phone'] = array("name" => __("Phone", CURRENT_THEME), "desc" => __("Phone. HTML tags are allowed.", CURRENT_THEME), "id" => "phone", "std" => "Phone: <br>\n+1 959 603 6035 (585-adoption)", "type" => "textarea");
     $options['location'] = array("name" => __("Location", CURRENT_THEME), "desc" => __("Location. HTML tags are allowed.", CURRENT_THEME), "id" => "location", "std" => "Location: <br>\n8901 Marmora Road <br>\nGlasgow, DO4 89GR.", "type" => "textarea");
     // ---------------------------------------------------------
     // Social
     // ---------------------------------------------------------
     $options[] = array("name" => __("Social", CURRENT_THEME), "type" => "heading");
     $options['twitter'] = array("name" => "Twitter URL", "desc" => "Twitter URL", "id" => "twitter", "std" => "#", "type" => "text");
     $options['facebook'] = array("name" => "Facebook URL", "desc" => "Facebook URL", "id" => "facebook", "std" => "#", "type" => "text");
     $options['google-plus'] = array("name" => "Google+ URL", "desc" => "Google+ URL", "id" => "google-plus", "std" => "#", "type" => "text");
     // ---------------------------------------------------------
     // Map
     // ---------------------------------------------------------
     $options[] = array("name" => __("Map", CURRENT_THEME), "type" => "heading");
     $options['latitude'] = array("name" => __("Map Latitude", CURRENT_THEME), "desc" => __("Map Latitude", CURRENT_THEME), "id" => "latitude", "std" => "31.990687", "type" => "text");
     $options['longitude'] = array("name" => __("Map Longitude", CURRENT_THEME), "desc" => __("Map Longitude", CURRENT_THEME), "id" => "longitude", "std" => "-81.047177", "type" => "text");
     $options['zoom'] = array("name" => __("Map Zoom", CURRENT_THEME), "desc" => __("Map Zoom", CURRENT_THEME), "id" => "zoom", "std" => "12", "type" => "text");
     // ---------------------------------------------------------
     // Parallax Slider
     // ---------------------------------------------------------
     $options['px_slider'] = array("name" => __('Parallax Slider', CURRENT_THEME), "type" => "heading");
     $options['px_slider_visibility'] = array("name" => __('Display Parallax Slider?', CURRENT_THEME), "desc" => __('Display Parallax Slider?', CURRENT_THEME), "id" => "px_slider_visibility", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_effect'] = array("name" => __('Sliding effect', CURRENT_THEME), "desc" => __('Select your animation type.', CURRENT_THEME), "id" => "px_slider_effect", "type" => "select", "std" => "simple-fade-eff", "options" => array("simple-fade-eff" => __('Simple Fade', CURRENT_THEME), "zoom-fade-eff" => __('Zoom Fade', CURRENT_THEME), "slide-top-eff" => __('Slide Top', CURRENT_THEME)));
     $options['px_slider_auto'] = array("name" => __('Slideshow', CURRENT_THEME), "desc" => __('Animate slider automatically?', CURRENT_THEME), "id" => "px_slider_auto", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_pause'] = array("name" => __('Pause time', CURRENT_THEME), "desc" => __('Pause time (ms).', CURRENT_THEME), "id" => "px_slider_pause", "type" => "text", "std" => "7000");
     $options['px_slider_speed'] = array("name" => __('Animation speed', CURRENT_THEME), "desc" => __('Animation speed (ms).', CURRENT_THEME), "id" => "px_slider_speed", "type" => "text", "std" => "1500");
     $options['px_slider_pags'] = array("name" => __('Pagination', CURRENT_THEME), "desc" => __('Display pagination?', CURRENT_THEME), "id" => "px_slider_pags", "type" => "radio", "std" => "false", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_navs'] = array("name" => __('Next & Prev navigation', CURRENT_THEME), "desc" => __('Display next & prev navigation?', CURRENT_THEME), "id" => "px_slider_navs", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     return $options;
 }
Example #8
0
 function optionsframework_options()
 {
     // Fonts
     // Get menus
     $menus = wp_get_nav_menus(array('orderby' => 'name'));
     $options_menus = array('0' => __('Select menu', CURRENT_THEME));
     foreach ($menus as $menu) {
         $options_menus[$menu->term_id] = $menu->name;
     }
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     $per_page_options = array('4' => 4, '5' => 5, '6' => 6, '7' => 7, '8' => 8, '9' => 9, '10' => 10, '11' => 11, '12' => 12, '13' => 13, '14' => 14, '15' => 15, '16' => 16, '17' => 17, '18' => 18, '19' => 19, '20' => 20);
     $yes_no_options = array('yes' => __('Yes', CURRENT_THEME), 'no' => __('No', CURRENT_THEME));
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options['general'] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '#ffffff', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("id" => "body_background", "std" => $background_defaults);
     $options['main_layout'] = array("id" => "main_layout", "std" => "fullwidth");
     $options['main_background'] = array("id" => "main_background", "std" => "#ffffff");
     $header_bg_defaults = array('color' => '#181818', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['header_background'] = array("id" => "header_background", "std" => $header_bg_defaults);
     $options['links_color'] = array("id" => "links_color", "std" => "#2c2c2c");
     $options['links_color_hover'] = array("id" => "links_color_hover", "std" => "#fd7716");
     $options['google_mixed_3'] = array('id' => 'google_mixed_3', 'std' => array('size' => '17px', 'lineheight' => '27px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['h1_heading'] = array('id' => 'h1_heading', 'std' => array('size' => '58px', 'lineheight' => '53px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['h2_heading'] = array('id' => 'h2_heading', 'std' => array('size' => '45px', 'lineheight' => '53px', 'face' => 'Lato', 'style' => 'bold', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['h3_heading'] = array('id' => 'h3_heading', 'std' => array('size' => '35px', 'lineheight' => '39px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['h4_heading'] = array('id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '18px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['h5_heading'] = array('id' => 'h5_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['h6_heading'] = array('id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#2c2c2c'));
     $options['g_search_box_id'] = array("id" => "g_search_box_id", "std" => "yes");
     $options['g_breadcrumbs_id'] = array("id" => "g_breadcrumbs_id", "std" => "yes");
     $options['custom_css'] = array("id" => "custom_css", "std" => "");
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options["logo_favicon"] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     $options['logo_type'] = array("id" => "logo_type", "std" => "image_logo");
     $options['logo_typography'] = array('id' => 'logo_typography', 'std' => array('size' => '72px', 'lineheight' => '72px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#ffffff'));
     $options['logo_url'] = array("id" => "logo_url", "std" => CHILD_URL . "/images/logo.png");
     $options['favicon'] = array("id" => "favicon", "std" => CHILD_URL . "/favicon.ico");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('id' => 'menu_typography', 'std' => array('size' => '24px', 'lineheight' => '24px', 'face' => 'Lato', 'style' => 'bold', 'character' => 'latin', 'color' => '#ffffff'));
     $options['sf_delay'] = array("id" => "sf_delay", "std" => "1000");
     $options['sf_f_animation'] = array("id" => "sf_f_animation", "std" => "show");
     $options['sf_sl_animation'] = array("id" => "sf_sl_animation", "std" => "show");
     $options['sf_speed'] = array("id" => "sf_speed", "std" => "normal");
     $options['sf_arrows'] = array("id" => "sf_arrows", "std" => "false");
     $options['mobile_menu_label'] = array("id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'));
     $options['stickup_menu'] = array("id" => "stickup_menu", "std" => "true");
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['sl_type'] = array("id" => "slider_type", "std" => "none_slider");
     // ---------------------------------------------------------
     // Camera Slider
     // ---------------------------------------------------------
     $options['sl_effect'] = array("id" => "sl_effect", "std" => "simpleFade");
     $options['sl_columns'] = array("id" => "sl_columns", "std" => "12");
     $options['sl_rows'] = array("id" => "sl_rows", "std" => "8");
     $options['sl_banner'] = array("id" => "sl_banner", "std" => "fadeIn");
     $options['sl_pausetime'] = array("id" => "sl_pausetime", "std" => "7000");
     $options['sl_animation_speed'] = array("id" => "sl_animation_speed", "std" => "1500");
     $options['sl_slideshow'] = array("id" => "sl_slideshow", "std" => "true");
     $options['sl_thumbnails'] = array("id" => "sl_thumbnails", "std" => "true");
     // set "disabled" => "true" when only text in Slider posts
     $options['sl_control_nav'] = array("id" => "sl_control_nav", "std" => "true");
     $options['sl_dir_nav'] = array("id" => "sl_dir_nav", "std" => "true");
     $options['sl_dir_nav_hide'] = array("id" => "sl_dir_nav_hide", "std" => "false");
     $options['sl_play_pause_button'] = array("id" => "sl_play_pause_button", "std" => "true");
     $options['sl_loader'] = array("id" => "sl_loader", "std" => "no");
     // ---------------------------------------------------------------
     // Parallax slider
     // ---------------------------------------------------------------
     $options['px_slider'] = array("name" => __('Parallax Slider', CURRENT_THEME), "type" => "heading");
     $options['px_slider_visibility'] = array("name" => __('Display Parallax Slider?', CURRENT_THEME), "desc" => __('Display Parallax Slider?', CURRENT_THEME), "id" => "px_slider_visibility", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_parallax_effect'] = array("name" => __('Parallax effect', CURRENT_THEME), "desc" => __('Select parallax effect.', CURRENT_THEME), "id" => "px_slider_parallax_effect", "type" => "select", "std" => "parallax_effect_normal", "options" => array("parallax_effect_none" => __('None', CURRENT_THEME), "parallax_effect_low" => __('Low', CURRENT_THEME), "parallax_effect_normal" => __('Normal', CURRENT_THEME), "parallax_effect_high" => __('High', CURRENT_THEME), "parallax_effect_fixed" => __('Fixed', CURRENT_THEME)));
     $options['px_slider_invert'] = array("name" => __('Invert Parallax Slider', CURRENT_THEME), "desc" => __('Invert Parallax Slider', CURRENT_THEME), "id" => "px_slider_invert", "type" => "radio", "std" => "false", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_effect'] = array("name" => __('Sliding effect', CURRENT_THEME), "desc" => __('Select your animation type.', CURRENT_THEME), "id" => "px_slider_effect", "type" => "select", "std" => "simple-fade-eff", "options" => array("simple-fade-eff" => __('Simple Fade', CURRENT_THEME), "zoom-fade-eff" => __('Zoom Fade', CURRENT_THEME), "slide-top-eff" => __('Slide Top', CURRENT_THEME)));
     $options['px_slider_auto'] = array("name" => __('Slideshow', CURRENT_THEME), "desc" => __('Animate slider automatically?', CURRENT_THEME), "id" => "px_slider_auto", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_pause'] = array("name" => __('Pause time', CURRENT_THEME), "desc" => __('Pause time (ms).', CURRENT_THEME), "id" => "px_slider_pause", "type" => "text", "std" => "10000");
     $options['px_slider_speed'] = array("name" => __('Animation speed', CURRENT_THEME), "desc" => __('Animation speed (ms).', CURRENT_THEME), "id" => "px_slider_speed", "type" => "text", "std" => "1500");
     $options['px_slider_scrolling_description'] = array("name" => __('Scrolling description', CURRENT_THEME), "desc" => __('Scrolling description', CURRENT_THEME), "id" => "px_slider_scrolling_description", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_pags'] = array("name" => __('Pagination', CURRENT_THEME), "desc" => __('Display pagination?', CURRENT_THEME), "id" => "px_slider_pags", "type" => "radio", "std" => "buttons_pagination", "options" => array("buttons_pagination" => __('Buttons Pagination', CURRENT_THEME), "images_pagination" => __('Images Pagination', CURRENT_THEME), "none_pagination" => theme_locals("no")));
     $options['px_slider_navs'] = array("name" => __('Next & Prev navigation', CURRENT_THEME), "desc" => __('Display next & prev navigation?', CURRENT_THEME), "id" => "px_slider_navs", "type" => "radio", "std" => "false", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $multicheck_defaults = array('43' => 0, '49' => 0, '50' => 0, '51' => 0, '52' => 0);
     $options['acc_show_post'] = array("id" => "acc_show_post", "std" => $multicheck_defaults);
     $options['acc_slideshow'] = array("id" => "acc_slideshow", "std" => "false");
     $options['acc_hover_pause'] = array("id" => "acc_hover_pause", "std" => "true");
     $options['acc_pausetime'] = array("id" => "acc_pausetime", "std" => "6000");
     $options['acc_animation_speed'] = array("id" => "acc_animation_speed", "std" => "600");
     $options['acc_easing'] = array("id" => "acc_easing", "std" => "easeOutCubic");
     $options['acc_trigger'] = array("id" => "acc_trigger", "std" => "mouseover");
     $options['acc_starting_slide'] = array("id" => "acc_starting_slide", "std" => "0");
     // ---------------------------------------------------------
     // Blog
     // --------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("id" => "blog_text", "std" => theme_locals('blog'));
     $options['blog_related'] = array("id" => "blog_related", "std" => theme_locals('posts_std'));
     $options['blog_sidebar_pos'] = array("id" => "blog_sidebar_pos", "std" => "right");
     $options['post_image_size'] = array("id" => "post_image_size", "std" => "large");
     $options['single_image_size'] = array("id" => "single_image_size", "std" => "large");
     $options['post_meta'] = array("id" => "post_meta", "std" => "true");
     $options['post_excerpt'] = array("id" => "post_excerpt", "std" => "true");
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("id" => "folio_filter", "std" => "cat");
     $options['folio_title'] = array("id" => "folio_title", "std" => "yes");
     $options['folio_excerpt'] = array("id" => "folio_excerpt", "std" => "yes");
     $options['folio_excerpt_count'] = array("id" => "folio_excerpt_count", "std" => "20");
     $options['folio_btn'] = array("id" => "folio_btn", "std" => "yes");
     $options['folio_meta'] = array("id" => "folio_meta", "std" => "yes");
     $options['layout_mode'] = array("id" => "layout_mode", "std" => "fitRows");
     $options['items_count2'] = array("id" => "items_count2", "std" => "8");
     $options['items_count3'] = array("id" => "items_count3", "std" => "9");
     $options['items_count4'] = array("id" => "items_count4", "std" => "12");
     // ---------------------------------------------------------
     // Shop
     // ---------------------------------------------------------
     $options['shop'] = array("name" => __("Shop settings", CURRENT_THEME), "id" => "shop", "type" => "heading");
     $options[] = array("name" => __("Empty cart message", CURRENT_THEME), "desc" => __("Empty cart message (for drop-down cart in header)", CURRENT_THEME), "id" => "empty_cart_mess", "std" => "No products in the cart.", "class" => "tiny", "type" => "text");
     $options['catalog_info'] = array("desc" => __("Options for catalog page:", CURRENT_THEME), "id" => "catalog_info", "type" => "info");
     $options['prod_per_page'] = array("name" => __("Products per page", CURRENT_THEME), "desc" => __("Number of producrs per catalog page", CURRENT_THEME), "id" => "prod_per_page", "std" => "6", "type" => "select", "options" => $per_page_options);
     $options['cat_title_length_limit'] = array("name" => __("Product title length limit", CURRENT_THEME), "desc" => __("Enter max number of words, which will shown in product title on catalog page (leave empty for displaying full title)", CURRENT_THEME), "id" => "cat_title_length_limit", "std" => "6", "class" => "tiny", "type" => "text");
     $options['cat_show_desc'] = array("name" => __("Product description", CURRENT_THEME), "desc" => __("Show/hide product description on catalog page", CURRENT_THEME), "id" => "cat_show_desc", "std" => "no", "type" => "radio", "options" => $yes_no_options);
     $options['cat_show_details'] = array("name" => __("Show details button on catalog page", CURRENT_THEME), "desc" => __("Show/hide product details button on catalog page", CURRENT_THEME), "id" => "cat_show_details", "std" => "no", "type" => "radio", "options" => $yes_no_options);
     $options['acc_dropdown'] = array("desc" => __("Options for account dropdown in header:", CURRENT_THEME), "id" => "authentication_info", "type" => "info");
     $options['show_account'] = array("name" => __("Show account dropdown in header", CURRENT_THEME), "desc" => __("Show/hide product details button on catalog page", CURRENT_THEME), "id" => "show_account", "std" => "show", "type" => "radio", "options" => array("show" => "Show", "hide" => "Hide"));
     $options['logged_in_label'] = array("name" => __("Account dropdown label (for logged in users)", CURRENT_THEME), "desc" => __("Enter account dropdown label for logged in users", CURRENT_THEME), "id" => "logged_in_label", "std" => "My Account", "class" => "tiny", "type" => "text");
     $options['not_logged_in_label'] = array("name" => __("Account dropdown label (for guests)", CURRENT_THEME), "desc" => __("Enter account dropdown label for guests", CURRENT_THEME), "id" => "not_logged_in_label", "std" => "My Account", "class" => "tiny", "type" => "text");
     $options['account_list_menu'] = array("name" => __("Account dropdown menu", CURRENT_THEME), "desc" => __("Select menu to show in account dropdown", CURRENT_THEME), "id" => "account_list_menu", "std" => "", "type" => "select", "options" => $options_menus);
     $options['show_login_register'] = array("name" => __("Show login/logout link in account dropdown", CURRENT_THEME), "desc" => __("Show or hide login/logout links in account dropdown", CURRENT_THEME), "id" => "show_login_register", "std" => "show", "type" => "radio", "options" => array("show" => "Show", "hide" => "Hide"));
     $options['login_label'] = array("name" => __("Login label", CURRENT_THEME), "desc" => __("Please input label for login link in account dropdown", CURRENT_THEME), "id" => "login_label", "std" => "Log In/Register", "class" => "tiny", "type" => "text");
     $options['logout_label'] = array("name" => __("Logout label.", CURRENT_THEME), "desc" => __("Please input label for logout link in account dropdown.", CURRENT_THEME), "id" => "logout_label", "std" => "Logout", "class" => "tiny", "type" => "text");
     $options[] = array("name" => __("Live Chat account ID.", CURRENT_THEME), "desc" => __("To enable Olark live chat enter your live chat account ID here. <a href='http://www.olark.com/?r=ad8fbsj2'>Get own account ID</a>", CURRENT_THEME), "id" => "live_chat_id", "std" => "", "class" => "tiny", "type" => "text");
     //End shop
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("id" => "footer_text", "std" => "");
     $options['ga_code'] = array("id" => "ga_code", "std" => "");
     $options['feed_url'] = array("id" => "feed_url", "std" => "");
     $options['footer_menu'] = array("id" => "footer_menu", "std" => "false");
     $options['footer_menu_typography'] = array('id' => 'footer_menu_typography', 'std' => array('size' => '15px', 'lineheight' => '23px', 'face' => 'Lato', 'style' => 'normal', 'character' => 'latin', 'color' => '#888888'));
     $options['foo'] = array("name" => "foo", "type" => "heading");
     $options[] = array("name" => "Social", "type" => "heading");
     $options['twitter'] = array("name" => "Twitter URL", "desc" => "Twitter URL", "id" => "twitter", "std" => "#", "type" => "text");
     $options['facebook'] = array("name" => "Facebook URL", "desc" => "Facebook URL", "id" => "facebook", "std" => "#", "type" => "text");
     $options['rss'] = array("name" => "Feed URL", "desc" => "Feed URL", "id" => "rss", "std" => "#", "type" => "text");
     return $options;
 }
Example #9
0
 function optionsframework_options()
 {
     // Fonts
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options['general'] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("id" => "body_background", "std" => $background_defaults);
     $options['header_color'] = array("id" => "header_color", "std" => "");
     $options['links_color'] = array("id" => "links_color", "std" => "#72aad0");
     $options['links_color_hover'] = array("id" => "links_color_hover", "std" => "#474747");
     $options['google_mixed_3'] = array('id' => 'google_mixed_3', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Ubuntu', 'style' => 'normal', 'character' => 'latin', 'color' => '#7d7d7d'));
     $options['h1_heading'] = array('id' => 'h1_heading', 'std' => array('size' => '20px', 'lineheight' => '24px', 'face' => 'Ubuntu', 'style' => 'normal', 'character' => 'latin', 'color' => '#474747'));
     $options['h2_heading'] = array('id' => 'h2_heading', 'std' => array('size' => '24px', 'lineheight' => '24px', 'face' => 'Ubuntu', 'style' => 'normal', 'character' => 'latin', 'color' => '#474747'));
     $options['h3_heading'] = array('id' => 'h3_heading', 'std' => array('size' => '24px', 'lineheight' => '24px', 'face' => 'Ubuntu', 'style' => 'normal', 'character' => 'latin', 'color' => '#474747'));
     $options['h4_heading'] = array('id' => 'h4_heading', 'std' => array('size' => '18px', 'lineheight' => '18px', 'face' => 'Ubuntu', 'style' => 'bold', 'character' => 'latin', 'color' => '#ffffff'));
     $options['h5_heading'] = array('id' => 'h5_heading', 'std' => array('size' => '22px', 'lineheight' => '22px', 'face' => 'Ubuntu', 'style' => 'normal', 'character' => 'latin', 'color' => '#474747'));
     $options['h6_heading'] = array('id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Ubuntu', 'style' => 'normal', 'character' => 'latin', 'color' => '#63a9cd'));
     $options['g_search_box_id'] = array("id" => "g_search_box_id", "std" => "no");
     $options['g_breadcrumbs_id'] = array("id" => "g_breadcrumbs_id", "std" => "yes");
     $options['custom_css'] = array("id" => "custom_css", "std" => "");
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options["logo_favicon"] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     $options['logo_type'] = array("id" => "logo_type", "std" => "image_logo");
     $options['logo_typography'] = array('id' => 'logo_typography', 'std' => array('size' => '48px', 'lineheight' => '48px', 'face' => 'Ubuntu', 'style' => 'bold', 'character' => 'latin', 'color' => '#2f2f2f'));
     $options['logo_url'] = array("id" => "logo_url", "std" => get_stylesheet_directory_uri() . "/images/logo.png");
     $options['favicon'] = array("id" => "favicon", "std" => get_stylesheet_directory_uri() . "/favicon.ico");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('id' => 'menu_typography', 'std' => array('size' => '14px', 'lineheight' => '18px', 'face' => 'Archivo Narrow', 'style' => 'bold', 'character' => 'latin', 'color' => '#303336'));
     $options['sf_delay'] = array("id" => "sf_delay", "std" => "1000");
     $options['sf_f_animation'] = array("id" => "sf_f_animation", "std" => "show");
     $options['sf_sl_animation'] = array("id" => "sf_sl_animation", "std" => "show");
     $options['sf_speed'] = array("id" => "sf_speed", "std" => "normal");
     $options['sf_arrows'] = array("id" => "sf_arrows", "std" => "true");
     $options['mobile_menu_label'] = array("id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'));
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['sl_type'] = array("id" => "slider_type", "std" => "camera_slider");
     // ---------------------------------------------------------
     // Camera Slider
     // ---------------------------------------------------------
     $options['sl_effect'] = array("id" => "sl_effect", "std" => "simpleFade");
     $options['sl_columns'] = array("id" => "sl_columns", "std" => "12");
     $options['sl_rows'] = array("id" => "sl_rows", "std" => "8");
     $options['sl_banner'] = array("id" => "sl_banner", "std" => "fadeIn");
     $options['sl_pausetime'] = array("id" => "sl_pausetime", "std" => "7000");
     $options['sl_animation_speed'] = array("id" => "sl_animation_speed", "std" => "1500");
     $options['sl_slideshow'] = array("id" => "sl_slideshow", "std" => "true");
     $options['sl_thumbnails'] = array("id" => "sl_thumbnails", "std" => "true");
     $options['sl_control_nav'] = array("id" => "sl_control_nav", "std" => "true");
     $options['sl_dir_nav'] = array("id" => "sl_dir_nav", "std" => "false");
     $options['sl_dir_nav_hide'] = array("id" => "sl_dir_nav_hide", "std" => "false");
     $options['sl_play_pause_button'] = array("id" => "sl_play_pause_button", "std" => "false");
     $options['sl_loader'] = array("id" => "sl_loader", "std" => "no");
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $multicheck_defaults = array('43' => 0, '49' => 0, '50' => 0, '51' => 0, '52' => 0);
     $options['acc_show_post'] = array("id" => "acc_show_post", "std" => $multicheck_defaults);
     $options['acc_slideshow'] = array("id" => "acc_slideshow", "std" => "false");
     $options['acc_hover_pause'] = array("id" => "acc_hover_pause", "std" => "true");
     $options['acc_pausetime'] = array("id" => "acc_pausetime", "std" => "6000");
     $options['acc_animation_speed'] = array("id" => "acc_animation_speed", "std" => "600");
     $options['acc_easing'] = array("id" => "acc_easing", "std" => "easeOutCubic");
     $options['acc_trigger'] = array("id" => "acc_trigger", "std" => "mouseover");
     $options['acc_starting_slide'] = array("id" => "acc_starting_slide", "std" => "0");
     // ---------------------------------------------------------
     // Blog
     // --------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("id" => "blog_text", "std" => theme_locals('blog'));
     $options['blog_related'] = array("id" => "blog_related", "std" => theme_locals('posts_std'));
     $options['blog_sidebar_pos'] = array("id" => "blog_sidebar_pos", "std" => "right");
     $options['post_image_size'] = array("id" => "post_image_size", "std" => "large");
     $options['single_image_size'] = array("id" => "single_image_size", "std" => "large");
     $options['post_meta'] = array("id" => "post_meta", "std" => "true");
     $options['post_excerpt'] = array("id" => "post_excerpt", "std" => "true");
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("id" => "folio_filter", "std" => "cat");
     $options['folio_title'] = array("id" => "folio_title", "std" => "yes");
     $options['folio_excerpt'] = array("id" => "folio_excerpt", "std" => "yes");
     $options['folio_excerpt_count'] = array("id" => "folio_excerpt_count", "std" => "20");
     $options['folio_btn'] = array("id" => "folio_btn", "std" => "yes");
     $options['folio_meta'] = array("id" => "folio_meta", "std" => "yes");
     $options['layout_mode'] = array("id" => "layout_mode", "std" => "fitRows");
     $options['items_count2'] = array("id" => "items_count2", "std" => "8");
     $options['items_count3'] = array("id" => "items_count3", "std" => "9");
     $options['items_count4'] = array("id" => "items_count4", "std" => "12");
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("id" => "footer_text", "std" => "");
     $options['ga_code'] = array("id" => "ga_code", "std" => "");
     $options['feed_url'] = array("id" => "feed_url", "std" => "");
     $options['footer_menu'] = array("id" => "footer_menu", "std" => "false");
     $options['footer_menu_typography'] = array('id' => 'footer_menu_typography', 'std' => array('size' => '10px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'bold', 'character' => 'latin', 'color' => '#828890'));
     $options['foo'] = array("name" => "foo", "type" => "heading");
     // ---------------------------------------------------------
     // Footer logo
     // ---------------------------------------------------------
     $options["f_logo"] = array("name" => __('Footer Logo', CURRENT_THEME), "type" => "heading");
     $f_logo_type = array("f_image_logo" => __('Image Logo', CURRENT_THEME), "f_text_logo" => __('Text Logo', CURRENT_THEME));
     $options['f_logo_type'] = array("name" => __('What kind of footer logo?', CURRENT_THEME), "desc" => __('Select whether you want your footer logo to be an image or text. If you select "image" you can put in the image url in the next option, and if you select "text" your Site Title will be shown instead.', CURRENT_THEME), "id" => "f_logo_type", "std" => "f_image_logo", "type" => "radio", "options" => $f_logo_type);
     $options['f_logo_typography'] = array('name' => __('Footer Logo Typography', CURRENT_THEME), 'desc' => __("Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href='http://www.google.com/webfonts'>Google Web Fonts</a> library.</em>", CURRENT_THEME), 'id' => 'f_logo_typography', 'std' => array('size' => '18px', 'lineheight' => '18px', 'face' => 'Ubuntu', 'style' => 'bold', 'character' => 'latin', 'color' => '#272727'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['f_logo_url'] = array("name" => __('Logo Image Path', CURRENT_THEME), "desc" => __('Click Upload or Enter the direct path to your <strong>footer logo image</strong>. For example <em>http://your_website_url_here/wp-content/themes/themeXXXX/images/footer-logo.png</em>', CURRENT_THEME), "id" => "f_logo_url", "std" => get_stylesheet_directory_uri() . "/images/footer-logo.png", "type" => "upload");
     return $options;
 }
 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     // Define all the options that possibly have a unique Google font
     $typography_body = of_get_option('typography_body', array('size' => '12px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'color' => '#919090'));
     $typography_menu = of_get_option('typography_menu', array('size' => '14px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_heading = of_get_option('typography_heading', array('face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h1 = of_get_option('typography_h1', array('size' => '32px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h2 = of_get_option('typography_h2', array('size' => '24px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h3 = of_get_option('typography_h3', array('size' => '18px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h4 = of_get_option('typography_h4', array('size' => '16px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h5 = of_get_option('typography_h5', array('size' => '14px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h6 = of_get_option('typography_h6', array('size' => '12px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     // Get the font face for each option and put it in an array
     $selected_fonts = array($typography_body['face'], $typography_menu['face'], $typography_heading['face'], $typography_h1['face'], $typography_h2['face'], $typography_h3['face'], $typography_h4['face'], $typography_h5['face'], $typography_h6['face']);
     // Remove any duplicates in the list
     $selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font);
         }
     }
 }
Example #11
0
 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     global $options;
     $body = $options['body_font'];
     $navigation = $options['navigation_font'];
     $navigation_dropdown = $options['navigation_dropdown_font'];
     $nectar_slider_heading = $options['nectar_slider_heading_font'];
     $home_slider_caption = $options['home_slider_caption_font'];
     $standard_header = $options['standard_h_font'];
     $sidebar_carousel_footer_header = $options['sidebar_footer_h_font'];
     $team_member_names = $options['team_member_h_font'];
     //$google_mixed = of_get_option('google_mixed', false);
     //$google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
     // Get the font face for each option and put it in an array
     $selected_fonts = array($body, $navigation, $navigation_dropdown, $nectar_slider_heading, $home_slider_caption, $standard_header, $sidebar_carousel_footer_header, $team_member_names);
     $locations = array('body_font', 'navigation_font', 'navigation_dropdown_font', 'nectar_slider_heading_font', 'home_slider_caption_font', 'standard_h_font', 'sidebar_footer_h_font', 'team_member_h_font');
     // Remove any duplicates in the list
     //$selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     $count = 0;
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font, $locations[$count]);
         }
         $count++;
     }
 }
Example #12
0
 function optionsframework_options()
 {
     //Styles
     $hs_styles_set = array("defined_style" => "Choose from defined styles", "new_style" => "Create new style");
     // Logo type
     $hs_logo_type = array("image_logo" => __("Image Logo", HS_CURRENT_THEME), "text_logo" => __("Text Logo", HS_CURRENT_THEME));
     // Header position
     $sf_header_array = array("stickyheader" => "Sticky header", "normalheader" => "Normal header");
     // Search box in the header
     $g_search_box = array("no" => "No", "yes" => "Yes");
     // Breadcrumbs in the page
     $g_breadcrumbs = array("no" => "No", "yes" => "Yes");
     //true/false array
     $true_false_array = array("true" => theme_locals("yes"), "false" => theme_locals("no"));
     //yes/no array
     $yes_no_array = array("yes" => theme_locals("yes"), "no" => theme_locals("no"));
     //yes/no array
     $pagination_type_array = array("pagnum" => "Links with page numbers", "paglink" => "Links only", "pagnone" => "None");
     // Background Defaults
     $hs_background_defaults = array('color' => '#ffffff', 'image' => get_stylesheet_directory_uri() . '/images/patterns/pattern1.png', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     // Background Defaults
     $hs_header_defaults = array('color' => '#ffffff', 'image' => '', 'repeat' => 'no-repeat', 'position' => 'center center', 'attachment' => 'fixed');
     // Fonts
     $hs_typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($hs_typography_mixed_fonts);
     // Footer menu
     $hs_footer_menu_array = array("true" => "Yes", "false" => "No");
     // Featured image size on the blog.
     $hs_post_image_size_array = array("normal" => "Normal size", "large" => "Large size");
     // Featured image size on the single page.
     $hs_single_image_size_array = array("normal" => "Normal size", "large" => "Large size");
     // Meta for blog
     $hs_post_meta_array = array("true" => "Yes", "false" => "No");
     // Meta for blog
     $hs_post_excerpt_array = array("true" => "Yes", "false" => "No");
     // If using image radio buttons, define a directory path
     $hs_imagepath = get_template_directory_uri() . '/includes/images/';
     $options = array();
     $options[] = array("name" => "General", "icon" => "icon-cog-alt", "type" => "heading");
     $options['body_background'] = array("name" => "Body styling", "desc" => "Change the background style.", "id" => "body_background", "std" => $hs_background_defaults, "type" => "background");
     $options['google_mixed_3'] = array('name' => 'Body Text', 'desc' => 'Choose your prefered font for body text. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'google_mixed_3', 'std' => array('size' => '20px', 'lineheight' => '31px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#525252'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['h1_heading'] = array('name' => 'H1 Heading', 'desc' => 'Choose your prefered font for H1 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h1_heading', 'std' => array('size' => '60px', 'lineheight' => '60px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['h2_heading'] = array('name' => 'H2 Heading', 'desc' => 'Choose your prefered font for H2 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h2_heading', 'std' => array('size' => '40px', 'lineheight' => '40px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['h3_heading'] = array('name' => 'H3 Heading', 'desc' => 'Choose your prefered font for H3 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h3_heading', 'std' => array('size' => '34px', 'lineheight' => '34px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['h4_heading'] = array('name' => 'H4 Heading', 'desc' => 'Choose your prefered font for H4 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h4_heading', 'std' => array('size' => '24px', 'lineheight' => '28px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['h5_heading'] = array('name' => 'H5 Heading', 'desc' => 'Choose your prefered font for H5 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h5_heading', 'std' => array('size' => '21px', 'lineheight' => '32px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['h6_heading'] = array('name' => 'H6 Heading', 'desc' => 'Choose your prefered font for H6 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h6_heading', 'std' => array('size' => '18px', 'lineheight' => '24px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['g_search_box_id'] = array("name" => "Display search box?", "desc" => "Display search box in the header?", "id" => "g_search_box_id", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
     $options['g_breadcrumbs_id'] = array("name" => "Display breadcrumbs?", "desc" => "Display breadcrumbs in the page?", "id" => "g_breadcrumbs_id", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
     $options['g_nicescroll'] = array("name" => "NiceScroll", "desc" => "Enable or Disable NiceScroll", "id" => "g_nicescroll", "type" => "radio", "std" => "no", "options" => $yes_no_array);
     $options['hs_import'] = array("name" => "Import/export", "desc" => "Enable or Disable Import/export functions", "id" => "hs_import", "type" => "radio", "std" => "no", "options" => $yes_no_array);
     $options[] = array("name" => "Header styling", "icon" => "icon-params", "type" => "heading");
     $options['header_color'] = array("name" => "Header background image / background color", "desc" => "Change the header background image or background color.", "id" => "header_color", "std" => $hs_header_defaults, "type" => "background");
     $options['overlay_color'] = array("name" => "Header overlay", "desc" => "Change the header overlay color.", "id" => "overlay_color", "std" => "#ffffff", "type" => "color");
     $options['overlay_transparency'] = array("name" => "Header overlay transparency", "desc" => "Change the header overlay color transparency. Enter value from 0.0 to 1", "id" => "overlay_transparency", "std" => "0.85", "type" => "text");
     $options['header_position'] = array("name" => "Header type", "desc" => "Change the header type (normal or sticky)", "id" => "header_position", "std" => "normalheader", "type" => "select", "class" => "tiny", "options" => $sf_header_array);
     $options['topsearchbtborder_color'] = array("name" => "Top search button border color", "desc" => "Change the border color of the top search button.", "id" => "topsearchbtborder_color", "std" => "#eeeeee", "type" => "color");
     $options['topsearchbticon_color'] = array("name" => "Top search button icon color", "desc" => "Change the icon color of the top search button.", "id" => "topsearchbticon_color", "std" => "#e1e1e1", "type" => "color");
     $options[] = array("name" => "Theme styles", "icon" => "icon-monitor", "type" => "heading");
     $options['hs_choose_style'] = array("name" => "Choose theme style", "desc" => "Choose whether you want to select a defined css style or create your own one.", 'id' => 'hs_choose_style', 'class' => 'hidden_control', "std" => "defined_style", "type" => "select", "options" => $hs_styles_set);
     //Styling the theme START
     $options['links_color'] = array("name" => "Buttons and links color", "desc" => "Change the color of buttons and links.", "id" => "links_color", "std" => "#00e7b4", 'class' => 'hiddenitems', "type" => "color");
     $options['subtitle_color'] = array("name" => "Subtitle color", "desc" => "Change the color of subtitle.", "id" => "subtitle_color", "std" => "#00e7b4", 'class' => 'hiddenitems', "type" => "color");
     $options['global_color'] = array("name" => "Global color", "desc" => "Change the global color for the elements like progress bars etc.", "id" => "global_color", "std" => "#00e7b4", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_current_button_color'] = array("name" => "Current/active main menu link color", "desc" => "Change the color of the current/active main menu link.", "id" => "mainmenu_current_button_color", "std" => "#00e7b4", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_hover_button_color'] = array("name" => "Hover main menu link color", "desc" => "Change the color of the main menu link hover.", "id" => "mainmenu_hover_button_color", "std" => "#cccccc", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_line_button_color'] = array("name" => "Color of the line above the main button", "desc" => "Change the color of the line above the main button.", "id" => "mainmenu_line_button_color", "std" => "#dddddd", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_submenu_link_color'] = array("name" => "Submenu link color", "desc" => "Change the color of the submenu link.", "id" => "mainmenu_submenu_link_color", "std" => "#ffffff", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_submenu_hover_link_color'] = array("name" => "Submenu hover/active link color", "desc" => "Change the color of the hover/active submenu link.", "id" => "mainmenu_submenu_hover_link_color", "std" => "#222222", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_submenu_button_color'] = array("name" => "Submenu button color", "desc" => "Change the color of the submenu button.", "id" => "mainmenu_submenu_button_color", "std" => "#00e7b4", 'class' => 'hiddenitems', "type" => "color");
     $options['mainmenu_submenu_hover_button_color'] = array("name" => "Submenu hover/active button color", "desc" => "Change the color of the hover/active submenu button.", "id" => "mainmenu_submenu_hover_button_color", "std" => "#ffffff", 'class' => 'hiddenitems', "type" => "color");
     //Styling the theme END
     $options[] = array("name" => "Select a Stylesheet to be Loaded", "desc" => "This is a manually defined list of stylesheets.", 'id' => 'stylesheet', "std" => get_stylesheet_directory_uri() . '/css/style10.css', 'class' => 'showitems', "type" => "images", "options" => array(get_stylesheet_directory_uri() . '/css/style1.css' => $hs_imagepath . 'green.png', get_stylesheet_directory_uri() . '/css/style2.css' => $hs_imagepath . 'red.png', get_stylesheet_directory_uri() . '/css/style3.css' => $hs_imagepath . 'gold.png', get_stylesheet_directory_uri() . '/css/style4.css' => $hs_imagepath . 'blue.png', get_stylesheet_directory_uri() . '/css/style5.css' => $hs_imagepath . 'vanilla.png', get_stylesheet_directory_uri() . '/css/style6.css' => $hs_imagepath . 'orange.png', get_stylesheet_directory_uri() . '/css/style7.css' => $hs_imagepath . 'black.png', get_stylesheet_directory_uri() . '/css/style8.css' => $hs_imagepath . 'mint.png', get_stylesheet_directory_uri() . '/css/style9.css' => $hs_imagepath . 'violet.png', get_stylesheet_directory_uri() . '/css/style10.css' => $hs_imagepath . 'salmon.png', get_stylesheet_directory_uri() . '/css/style11.css' => $hs_imagepath . 'pink.png'));
     $options[] = array("name" => "Custom CSS", "desc" => "Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}", "id" => "custom_css", "std" => "", 'class' => '', "type" => "textarea");
     $options[] = array("name" => "Logo & Favicon", "icon" => "icon-tags", "type" => "heading");
     $options['logo_margin'] = array("name" => "Logo margin", "desc" => "Enter the top and bottom margin value (Do not enter the px unit.)", "id" => "logo_margin", "std" => "50", "class" => "small", "type" => "text");
     $options['hs_logo_type'] = array("name" => "What kind of logo?", "desc" => "Select whether you want your main logo to be an image or text. If you select 'image' you can put in the image url in the next option, and if you select 'text' your Site Title will be shown instead.", "id" => "logo_type", "std" => "text_logo", "type" => "radio", "options" => $hs_logo_type);
     $options[] = array('name' => 'Logo Typography', 'desc' => 'Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'logo_typography', 'std' => array('size' => '73px', 'lineheight' => '45px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['logo_url'] = array("name" => "Logo Image Path", "desc" => "Click Upload or Enter the direct path to your <strong>logo image</strong>. For example <em>http://your_website_url_here/wp-content/themes/themeXXXX/images/logo.png</em>", "id" => "logo_url", "std" => "", "type" => "upload");
     $options['favicon'] = array("name" => "Favicon", "desc" => "Click Upload or Enter the direct path to your <strong>favicon</strong>. For example <em>http://your_website_url_here/wp-content/themes/themeXXXX/favicon.ico</em>", "id" => "favicon", "std" => get_stylesheet_directory_uri() . "/favicon.ico", "type" => "upload");
     $options['logo_tagline'] = array("name" => "Display logo tagline?", "desc" => "Do you want to display tagline under the logo?", "id" => "logo_tagline", "std" => "yes", "type" => "radio", "options" => $yes_no_array);
     $options['tagline_color'] = array("name" => "Tagline color", "desc" => "Change the tagline color.", "id" => "tagline_color", "std" => "#444444", "type" => "color");
     $options[] = array("name" => "Navigation", "icon" => "icon-menu", "type" => "heading");
     $options[] = array('name' => 'Menu Typography', 'desc' => 'Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'menu_typography', 'std' => array('size' => '18px', 'lineheight' => '21px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#222222'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options['bgmenu_color'] = array("name" => "Background Color of the main menu", "desc" => "Change the background color of the main menu.", "id" => "bgmenu_color", "std" => "#ffffff", "type" => "color");
     $options['lineabove_color'] = array("name" => "Color of the line above the main menu", "desc" => "Change the color of the line above the main menu.", "id" => "lineabove_color", "std" => "#eeeeee", "type" => "color");
     $options['itemsbetween_color'] = array("name" => "Color of the line between menu items", "desc" => "Change the color of the line between menu items.", "id" => "itemsbetween_color", "std" => "#d6d6d6", "type" => "color");
     $options[] = array("name" => "Blog", "icon" => "icon-doc-text", "type" => "heading");
     $options[] = array("name" => "Blog Single Page Title", "desc" => "Enter Your Blog Title used on Blog page.", "id" => "blog_text", "std" => "Blog", "type" => "text");
     $options[] = array("name" => "Blog Single Page Subtitle", "desc" => "Enter Your Blog Subtitle used on Blog page.", "id" => "blog_sub", "std" => "The place where we write some words", "type" => "text");
     $options[] = array("name" => "Related Posts Title", "desc" => "Enter Your Title used on Single Post page for related posts.", "id" => "blog_related", "std" => "Related Posts", "type" => "text");
     $options[] = array("name" => "The text before the author's name.", "desc" => "Enter Your text before the author's name that appears in the list of articles.", "id" => "blog_author_name", "std" => "By", "type" => "text");
     $options['post_author'] = array("name" => "Enable post author for blog posts?", "desc" => "Enable or Disable post author name for blog posts.", "id" => "post_author", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['full_content'] = array("name" => "Enable full text content posts?", "desc" => "Enable or Disable full text content posts.", "id" => "full_content", "std" => "false", "type" => "radio", "options" => $hs_post_meta_array);
     $options['post_sidebar'] = array("name" => "Enable sidebar on single blog post page?", "desc" => "Enable or Disable sidebar on single blog post page.", "id" => "post_sidebar", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['blog_sidebar_pos'] = array("name" => "Sidebar position", "desc" => "Choose sidebar position.", "id" => "blog_sidebar_pos", "std" => "right", "type" => "images", "options" => array('left' => $hs_imagepath . '2cl.png', 'right' => $hs_imagepath . '2cr.png'));
     $options['masonry_category'] = array("name" => "Enable masonry style on category archive page?", "desc" => "Enable or Disable masonry style on category archive page.", "id" => "masonry_category", "std" => "false", "type" => "radio", "options" => $hs_post_meta_array);
     $options['category_name'] = array("name" => "Category name", "desc" => "Do you want to display only the name of the category?", "id" => "category_name", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['category_word'] = array("name" => "Category word", "desc" => "Should the Category word be displayed?", "id" => "category_word", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['blog_excerpt_count'] = array("name" => "Excerpt words", "desc" => "Excerpt length (words).", "id" => "blog_excerpt_count", "std" => "55", "class" => "small", "type" => "text");
     $options['post_image_size'] = array("name" => "Blog standard post type image size", "desc" => "Featured image size on the blog.", "id" => "post_image_size", "type" => "select", "std" => "large", "class" => "small", "options" => $hs_post_image_size_array);
     $options['single_image_size'] = array("name" => "Single, standard post type image size", "desc" => "Featured image size on the single page.", "id" => "single_image_size", "type" => "select", "std" => "large", "class" => "small", "options" => $hs_single_image_size_array);
     $options['post_meta'] = array("name" => "Enable Meta for blog posts?", "desc" => "Enable or Disable meta information for blog posts.", "id" => "post_meta", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['post_excerpt'] = array("name" => "Enable excerpt for blog posts?", "desc" => "Enable or Disable excerpt for blog posts.", "id" => "post_excerpt", "std" => "true", "type" => "radio", "options" => $hs_post_excerpt_array);
     $options['post_date'] = array("name" => theme_locals('post_date_name'), "desc" => theme_locals('post_date_desc'), "id" => "post_date", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options[] = array("name" => "Posts date format.", "desc" => "Enter posts date format. For more information go to http://codex.wordpress.org/Formatting_Date_and_Time - Formatting Date and Time website. For example, the format string: l, F j, Y creates a date that look like this: Friday, September 24, 2004", "id" => "date_format", "std" => "l, F j, Y", "type" => "text");
     $options['pagination_type'] = array("name" => "Page numbering", "desc" => "Choose pagination type", "id" => "pagination_type", "type" => "radio", "std" => "paglink", "options" => $pagination_type_array);
     $options['post_author'] = array("name" => theme_locals('post_author_name'), "desc" => theme_locals('post_author_desc'), "id" => "post_author", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_permalink'] = array("name" => theme_locals('post_permalink_name'), "desc" => theme_locals('post_permalink_desc'), "id" => "post_permalink", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_category'] = array("name" => theme_locals('post_category_name'), "desc" => theme_locals('post_category_desc'), "id" => "post_category", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_tag'] = array("name" => theme_locals('post_tag_name'), "desc" => theme_locals('post_tag_desc'), "id" => "post_tag", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_comment'] = array("name" => theme_locals('post_comment_name'), "desc" => theme_locals('post_comment_desc'), "id" => "post_comment", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['related_post'] = array("name" => "Enable related posts?", "desc" => "Enable or Disable related posts.", "id" => "related_post", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['readmore_button'] = array("name" => "Enable readmore button?", "desc" => "Enable or Disable readmore button", "id" => "readmore_button", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options[] = array("name" => "Social Networks", "icon" => "icon-share", "type" => "heading");
     $options['social_share'] = array("name" => "Enable Social sharing for blog posts?", "desc" => "Enable or Disable Social sharing for blog posts.", "id" => "social_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['shareon'] = array("name" => "Display Share on text", "desc" => "Should Share on text be displayed?", "id" => "shareon", "std" => "false", "type" => "radio", "options" => $hs_post_meta_array);
     $options['facebook_share'] = array("name" => "Enable Facebook sharing for blog posts?", "desc" => "Enable or Disable Facebook sharing for blog posts.", "id" => "facebook_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['twitter_share'] = array("name" => "Enable Twitter sharing for blog posts?", "desc" => "Enable or Disable Twitter sharing for blog posts.", "id" => "twitter_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['gplus_share'] = array("name" => "Enable Google Plus sharing for blog posts?", "desc" => "Enable or Disable Google Plus sharing for blog posts.", "id" => "gplus_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['digg_share'] = array("name" => "Enable Digg sharing for blog posts?", "desc" => "Enable or Disable Digg sharing for blog posts.", "id" => "digg_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['reddit_share'] = array("name" => "Enable Reddit sharing for blog posts?", "desc" => "Enable or Disable Reddit sharing for blog posts.", "id" => "reddit_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['linkedin_share'] = array("name" => "Enable Linkedin sharing for blog posts?", "desc" => "Enable or Disable Linkedin sharing for blog posts.", "id" => "linkedin_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['pinterest_share'] = array("name" => "Enable Pinterest sharing for blog posts?", "desc" => "Enable or Disable Pinterest sharing for blog posts.", "id" => "pinterest_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['stumbleupon_share'] = array("name" => "Enable Stumbleupon sharing for blog posts?", "desc" => "Enable or Disable Stumbleupon sharing for blog posts.", "id" => "stumbleupon_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['tumblr_share'] = array("name" => "Enable Tumblr sharing for blog posts?", "desc" => "Enable or Disable Tumblr sharing for blog posts.", "id" => "tumblr_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options['email_share'] = array("name" => "Enable Email sharing for blog posts?", "desc" => "Enable or Disable Email sharing for blog posts.", "id" => "email_share", "std" => "true", "type" => "radio", "options" => $hs_post_meta_array);
     $options[] = array("name" => "Blog grid", "icon" => "icon-windows", "type" => "heading");
     $options['folio_filter'] = array("name" => "Filter", "desc" => "Blog filter.", "id" => "folio_filter", "std" => "cat", "type" => "select", "options" => array("cat" => "by Category", "none" => "None"));
     $options['items_count2'] = array("name" => "Blog masonry 2 columns items amount", "desc" => "Post items amount per page for Blog masonry 2 columns template.", "id" => "items_count2", "std" => "12", "class" => "small", "type" => "text");
     $options['items_count3'] = array("name" => "Blog masonry 3 columns items amount", "desc" => "Post items amount per page for Blog masonry 3 columns template.", "id" => "items_count3", "std" => "12", "class" => "small", "type" => "text");
     $options['items_count4'] = array("name" => "Blog masonry 4 columns items amount", "desc" => "Post items amount per page for Blog masonry 4 columns template.", "id" => "items_count4", "std" => "12", "class" => "small", "type" => "text");
     $options[] = array("name" => "Gallery", "icon" => "icon-picture-1", "type" => "heading");
     $options['gallery_columns'] = array("name" => "Number of columns", "desc" => "Choose the number of columns (2, 3, 4 or 5)", "id" => "gallery_columns", "std" => "3", "type" => "select", "options" => array("2" => "2 columns", "3" => "3 columns", "4" => "4 columns", "5" => "5 columns"));
     $options['images_per_page'] = array("name" => "Images per page", "desc" => "Set number of thumbnail images per gallery page.", "id" => "images_per_page", "std" => "6", "class" => "small", "type" => "text");
     $options['gallery_title'] = array("name" => "Image titles", "desc" => "Display image titles", "id" => "gallery_title", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['gallery_category'] = array("name" => "Image category", "desc" => "Display image category", "id" => "gallery_category", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['gallery_description'] = array("name" => "Image description", "desc" => "Display image description", "id" => "gallery_description", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options[] = array("name" => "Footer", "icon" => "icon-doc-landscape", "type" => "heading");
     $options['footer_text'] = array("name" => "Footer copyright text", "desc" => "Enter text used in the right side of the footer. HTML tags are allowed.", "id" => "footer_text", "std" => "Copyrights &copy; 2014 BUZZBLOG. All Rights Reserved.", "type" => "textarea");
     $options[] = array("name" => "Google Analytics Code", "desc" => "You can paste your Google Analytics or other tracking code in this box. This will be automatically added to the footer.", "id" => "ga_code", "std" => "", "type" => "textarea");
     $options['feed_url'] = array("name" => "Feedburner URL", "desc" => "Feedburner is a Google service that takes care of your RSS feed. Paste your Feedburner URL here to let readers see it in your website.", "id" => "feed_url", "std" => "", "type" => "text");
     $options['footer_menu'] = array("name" => "Display Footer Menu?", "desc" => "Do you want to display footer menu?", "id" => "footer_menu", "std" => "true", "type" => "radio", "options" => $hs_footer_menu_array);
     $options['footer_logo'] = array("name" => "Display Footer Logo?", "desc" => "Do you want to display logo in the footer?", "id" => "footer_logo", "std" => "true", "type" => "radio", "options" => $hs_footer_menu_array);
     $options['footer_lowest'] = array("name" => "Display the lowest Footer Section?", "desc" => "Do you want to display the lowest footer section?", "id" => "footer_lowest", "std" => "true", "type" => "radio", "options" => $hs_footer_menu_array);
     $options[] = array('name' => 'Footer Menu Typography', 'desc' => 'Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'footer_menu_typography', 'std' => array('size' => '13px', 'lineheight' => '22px', 'face' => 'playfair_displayregular', 'style' => 'normal', 'weight' => '400', 'character' => 'latin', 'color' => '#667078'), 'type' => 'typography', 'options' => array('faces' => $hs_typography_mixed_fonts));
     $options[] = array("name" => "Updates", "icon" => "icon-arrows-ccw", "type" => "heading");
     $options['hs_envato_username'] = array("name" => "Envato Username", "desc" => "Enter your Envato username", "id" => "hs_envato_username", "std" => "", "type" => "text");
     $options['hs_envato_apikey'] = array("name" => "Envato ApiKey", "desc" => "Enter your Envato apikey. To generate an API key, Go to http://themeforest.net, Sign In, select Settings from the account dropdown, then navigate to the API Keys tab. Multiple API keys can be generated so it is recommended to use one per application.", "id" => "hs_envato_apikey", "std" => "", "type" => "text");
     return $options;
 }
Example #13
0
    $optionsframework_settings = get_option('optionsframework');
    $optionsframework_settings['id'] = $themename;
    update_option('optionsframework', $optionsframework_settings);
}
function optionsframework_options()
{
    // Slider Options
    $slider_choice_array = array("none" => "No Showcase", "accordion" => "Accordion", "wpheader" => "WordPress Header", "image" => "Your Image", "easing" => "Easing Slider", "custom" => "Custom Slider");
    // 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
    $radioimagepath = get_stylesheet_directory_uri() . '/themeOptions/images/';
    // define sample image directory path
    $imagepath = get_template_directory_uri() . '/images/demo/';
    $options = array();
    $options[] = array("name" => __("General  Settings", 'oblivion'), "type" => "heading");
    $options[] = array("name" => __("Upload Your Logo", 'oblivion'), "desc" => __("We recommend keeping it within reasonable size.", 'oblivion'), "id" => "logo", "std" => get_template_directory_uri() . "/img/logo.png", "type" => "upload");
    $options[] = array("name" => __("Upload Your Favicon", 'oblivion'), "desc" => __("Site tab icon", 'oblivion'), "id" => "favicon", "std" => get_template_directory_uri() . "/img/favicon.png", "type" => "upload");
    $options[] = array("name" => __("Jquery Scrollbar", 'oblivion'), "desc" => __("Enable the option of a smooth jquery scrollbar.", 'oblivion'), "id" => "scrollbar", "std" => "1", "type" => "jqueryselect");
    $options[] = array("name" => __("Login button in the menu", 'oblivion'), "desc" => __("Enable the login avatar in the menu", 'oblivion'), "id" => "login_menu", "std" => "1", "type" => "jqueryselect");
    $options[] = array("name" => __("Fullwidth", 'oblivion'), "desc" => __("Change the body of the site fullwidth.", 'oblivion'), "id" => "fullwidth", "std" => "0", "type" => "jqueryselect");
    $options[] = array("name" => __("Blog settings", 'oblivion'), "type" => "info");
    $options[] = array("name" => __("Blog category", 'oblivion'), "desc" => __("Insert ID of blog categories, comma separated.", 'oblivion'), "id" => "blogcat", "std" => "", "type" => "text");
    $options[] = array("name" => __("Blog number of posts", 'oblivion'), "desc" => __("Insert number of posts that you want to show on blog, category and author pages.", 'oblivion'), "id" => "blognum", "std" => "", "type" => "text");
    //SEO
    $options[] = array("name" => __("SEO", 'oblivion'), "type" => "heading");
    $options[] = array("name" => __("Home title", 'oblivion'), "desc" => __("Enter home title.", 'oblivion'), "id" => "hometitle", "std" => "", "type" => "text");
    $options[] = array("name" => __("Home description", 'oblivion'), "desc" => __("Enter home description.", 'oblivion'), "id" => "metadesc", "std" => "", "type" => "textarea");
    $options[] = array("name" => __("Keywords", 'oblivion'), "desc" => __("Enter keywords comma separated.", 'oblivion'), "id" => "keywords", "std" => "", "type" => "text");
    $options[] = array("name" => __("Google analytics", 'oblivion'), "desc" => __("Enter google analytics code.", 'oblivion'), "id" => "googlean", "std" => "", "type" => "textarea");
    // Colour Settings
    $options[] = array("name" => __("Customize", 'oblivion'), "type" => "heading");
    // Backgrounds
    $options[] = array("name" => __("Backgrounds", 'oblivion'), "type" => "info");
    $options[] = array("name" => __("Top background", 'oblivion'), "desc" => __("Background for the header of the site.", 'oblivion'), "id" => "header_bg", "std" => get_template_directory_uri() . "/img/header.jpg", "type" => "upload");
    $options[] = array("name" => __("Footer background", 'oblivion'), "desc" => __("Background for the footer of the site.", 'oblivion'), "id" => "footer_bg", "std" => get_template_directory_uri() . "/img/footer.jpg", "type" => "upload");
    $imagepath = get_template_directory_uri() . '/themeOptions/images/repeat/';
    $options[] = array("name" => __("Footer background repeat", 'oblivion'), "desc" => __("You could choose to repeat the background image if you want to use a pattern.", 'oblivion'), "id" => "repeat", "std" => "b1", "type" => "images", "options" => array('b1' => $imagepath . 'b1.jpg', 'b2' => $imagepath . 'b2.jpg', 'b3' => $imagepath . 'b3.jpg', 'b4' => $imagepath . 'b4.jpg'));
    $options[] = array("name" => __("Background colour", 'oblivion'), "desc" => __("Colour for the background.", 'oblivion'), "id" => "bg_color", "std" => "#1d2031", "type" => "color");
    // Colours
    $options[] = array("name" => __("Colours", 'oblivion'), "type" => "info");
    $options[] = array("name" => __("Primary Colour", 'oblivion'), "desc" => __("The primary colour for the site.", 'oblivion'), "id" => "primary_color", "std" => "#40434e", "type" => "color");
    $options[] = array("name" => __("Secondary Colour", 'oblivion'), "desc" => __("The secondary colour for the site.", 'oblivion'), "id" => "secondary_color", "std" => "#32333b", "type" => "color");
    $options[] = array("name" => __("Main body colour", 'oblivion'), "desc" => __("The colour for body wrapper.", 'oblivion'), "id" => "body_color", "std" => "#f1f1f1", "type" => "color");
    $options[] = array("name" => __("Header Colour", 'oblivion'), "desc" => __("The colour for the headers of the site.", 'oblivion'), "id" => "header_color", "std" => "#ff5b5b", "type" => "color");
    $options[] = array("name" => __("Link Colour", 'oblivion'), "desc" => __("The colour for the links of the site.", 'oblivion'), "id" => "link_color", "std" => "#ff5b5b", "type" => "color");
    $options[] = array("name" => __("Button colours", 'oblivion'), "type" => "info");
    $options[] = array("name" => __("Button colour", 'oblivion'), "desc" => __("Button colour.", 'oblivion'), "id" => "button", "std" => "#37a8d2", "type" => "color");
    $options[] = array("name" => __("Button hover colour", 'oblivion'), "desc" => __("Button hover colour", 'oblivion'), "id" => "button_hover", "std" => "#1b7ea3", "type" => "color");
    /* Patterns
  $options[] = array( "name" => __("Patterns"),
                        "type" => "info");
    $imagepath =  get_template_directory_uri() . '/img/patterns/';

  $options[] = array(
        'name' => __("Pattern Selector"),
        'desc' => __("Choose your pattern."),
        'id' => "pattern_images",
        'std' => "1.png",
        'type' => "images",
        'options' => array(
            '1.png' => $imagepath . '/theme-barracks/1.png',
            '2.png' => $imagepath . '/theme-barracks/2.png',
            '3.png' => $imagepath . '/theme-barracks/3.png',
            '4.png' => $imagepath . '/theme-barracks/4.png',
            '5.png' => $imagepath . '/theme-barracks/5.png',
            '6.png' => $imagepath . '/theme-barracks/6.png',
            '7.png' => $imagepath . '/theme-barracks/7.png',
            '8.png' => $imagepath . '/theme-barracks/8.png',
            '9.png' => $imagepath . '/theme-barracks/9.png',
            '10.png' => $imagepath . '/theme-barracks/10.png',
            '11.png' => $imagepath . '/theme-barracks/11.png',
            '12.png' => $imagepath . '/theme-barracks/12.png',
            '13.png' => $imagepath . '/theme-barracks/13.png',
            '14.png' => $imagepath . '/theme-barracks/14.png',
            '15.png' => $imagepath . '/theme-barracks/15.png',
            '16.png' => $imagepath . '/theme-barracks/16.png',
            '17.png' => $imagepath . '/theme-barracks/17.png',
            '18.png' => $imagepath . '/theme-barracks/18.png',
            '19.png' => $imagepath . '/theme-barracks/19.png',
            '20.png' => $imagepath . '/theme-barracks/20.png'
           )
    );
 *
 * */
    //Fonts
    $options[] = array("name" => __("Fonts", 'oblivion'), "type" => "info");
    $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
    asort($typography_mixed_fonts);
    $options[] = array('name' => __('Selected Google Fonts for Headers', 'oblivion'), 'desc' => __('Fifteen of the top google fonts for headers.', 'oblivion'), 'id' => 'google_font', 'std' => array('size' => '', 'face' => 'Open Sans', 'style' => '', 'color' => ''), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts, 'styles' => false));
    $options[] = array('name' => __('Selected Google Fonts for Body', 'oblivion'), 'desc' => __('Fifteen of the top google fonts for body.', 'oblivion'), 'id' => 'google_mixed_2', 'std' => array('size' => '', 'face' => 'Arial', 'style' => '', 'color' => ''), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts, 'styles' => false));
Example #14
0
/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the "id" fields, make sure to use all lowercase and no spaces.
 *  
 */
function optionsframework_options()
{
    // Graphic logo or dynamic text
    $logo_type = array("text" => __('Text', 'organizedthemes'), "image" => __('Image', 'organizedthemes'));
    // Yes or No
    $yes = array("yes" => __('Yes', 'organizedthemes'), "no" => __('No', 'organizedthemes'));
    // Yes or No
    $true = array("1" => __('Yes', 'organizedthemes'), "0" => __('No', 'organizedthemes'));
    // Yes or No
    $false = array("0" => __('No', 'organizedthemes'), "1" => __('Yes', 'organizedthemes'));
    // excerpt or full content
    $content_type = array("excerpt" => __('Excerpt', 'organizedthemes'), "content" => __('Full Content', 'organizedthemes'));
    // Background Options
    $background_repeat = array("" => __('', 'organizedthemes'), "repeat" => __('Repeat All', 'organizedthemes'), "repeat-y" => __('Repeat Vertically', 'organizedthemes'), "repeat-x" => __('Repeat Horizontally', 'organizedthemes'), "no-repeat" => __('No Repeat', 'organizedthemes'));
    $background_attachment = array("" => __('', 'organizedthemes'), "scroll" => __('Scroll', 'organizedthemes'), "fixed" => __('Fixed', 'organizedthemes'));
    $background_position_x = array("" => __('', 'organizedthemes'), "left" => __('Left', 'organizedthemes'), "center" => __('Center', 'organizedthemes'), "right" => __('Right', 'organizedthemes'));
    $background_position_y = array("" => __('', 'organizedthemes'), "top" => __('Top', 'organizedthemes'), "center" => __('Center', 'organizedthemes'), "bottom" => __('Bottom', 'organizedthemes'));
    $background_size = array("" => __('None', 'organizedthemes'), "cover" => __('Cover', 'organizedthemes'), "contain" => __('Contain', 'organizedthemes'));
    // lightbox styling
    $light_style = array("default" => __('Default', 'organizedthemes'), "carbono" => __('Carbono', 'organizedthemes'), "classic" => __('Classic', 'organizedthemes'), "classic_dark" => __('Classic Dark', 'organizedthemes'), "evolution" => __('Evolution', 'organizedthemes'), "evolution_dark" => __('Evolution Dark', 'organizedthemes'), "facebook" => __('Facebook', 'organizedthemes'), "minimal" => __('Minimalist', 'organizedthemes'), "minimal_dark" => __('Minimalist Dark', 'organizedthemes'), "white" => __('White and Green', 'organizedthemes'));
    // If using image radio buttons, define a directory path
    $imagepath = get_template_directory_uri() . '/inc/images/';
    $options = array();
    $options[] = array("name" => __('Header', 'organizedthemes'), "desc" => __('', 'organizedthemes'), "type" => "heading");
    $options[] = array('name' => __('Logo', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options['header_blog_title'] = array("name" => __('Text or Graphic Logo', 'organizedthemes'), "desc" => __('Choose between a graphic logo or the site title.', 'organizedthemes'), "id" => "header_blog_title", "std" => "Text", "type" => "select", "class" => "mini", "options" => $logo_type);
    $options['logo'] = array("name" => __('Logo', 'organizedthemes'), "desc" => __('Upload a graphic logo here.', 'organizedthemes'), "id" => "logo", "type" => "upload");
    $options['site_title_font'] = array('name' => __('Text Logo Font', 'organizedthemes'), 'desc' => __('Choose the type for your text logo.', 'organizedthemes'), 'id' => 'site_title_font', 'std' => array('size' => '50px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['logo_color'] = array("name" => __('Text Logo Color', 'organizedthemes'), "desc" => __('The color of your text logo.', 'organizedthemes'), "id" => "logo_color", "std" => "", "type" => "color");
    $options['logo_color_hover'] = array("name" => __('Text Logo Color (hover)', 'organizedthemes'), "desc" => __('The color of your text logo while hovering.', 'organizedthemes'), "id" => "logo_color_hover", "std" => "", "type" => "color");
    $options[] = array('name' => __('Shortcut Icons', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options[] = array("name" => __('Favicon', 'organizedthemes'), "desc" => __('Upload a favicon (small icon that sits beside your websites address in a browser navigation bar here.', 'organizedthemes'), "id" => "favicon", "std" => get_template_directory_uri() . "/images/favicon.png", "type" => "upload");
    $options[] = array("name" => __('Apple Shortcut Icon', 'organizedthemes'), "desc" => __('Upload an icon for an iOS shortcut icon here.  Should be 114 pixels square.', 'organizedthemes'), "id" => "apple", "std" => "", "type" => "upload");
    $options[] = array('name' => __('Navigation', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options['navigation_bar'] = array("name" => __('Navigation Bar Color', 'organizedthemes'), "desc" => __('Choose a navigation bar background color', 'organizedthemes'), "id" => "navigation_bar", "std" => "", "type" => "color");
    $options['navigation_font'] = array('name' => __('Navigation Item Font', 'organizedthemes'), 'desc' => __('Sets the type for your navigation menu.', 'organizedthemes'), 'id' => 'navigation_font', 'std' => array('size' => '20px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['navigation_item'] = array("name" => __('Navigation Item', 'organizedthemes'), "desc" => __('Color of your navigation menu items', 'organizedthemes'), "id" => "navigation_item", "std" => "", "type" => "color");
    $options['navigation_item_hover'] = array("name" => __('Navigation Item (hover)', 'organizedthemes'), "desc" => __('Color of your navigation menu items while hovering', 'organizedthemes'), "id" => "navigation_item_hover", "std" => "", "type" => "color");
    $options['navigation_drop_down_background'] = array("name" => __('Navigation Drop Down Background Color', 'organizedthemes'), "desc" => __('Background color of your drop-down menus.', 'organizedthemes'), "id" => "navigation_drop_down_background", "std" => "", "type" => "color");
    $options['navigation_drop_down_color'] = array("name" => __('Navigation Drop Down Link Color', 'organizedthemes'), "desc" => __('Link color of your drop-down menus.', 'organizedthemes'), "id" => "navigation_drop_down_color", "std" => "", "type" => "color");
    $options['navigation_drop_down_color_hover'] = array("name" => __('Navigation Drop Down Link Color (Hover)', 'organizedthemes'), "desc" => __('Link color of your drop-down menus while hovering.', 'organizedthemes'), "id" => "navigation_drop_down_color_hover", "std" => "", "type" => "color");
    $options['navigation_top_margin'] = array("name" => __('Drop Down Top Margin', 'organizedthemes'), "desc" => __('This sets the top margin of the drop-down menus in pixels.  If you\'re having difficulty clicking on a drop-down, using a negative number like -27 can be helpful to keep the drop-down from disappearing before you can click on it.  You may need to experiment to find the right value to go with the font and font size that has been selected.  The default is -21.', 'organizedthemes'), "id" => "navigation_top_margin", "std" => "", "type" => "text");
    $options['mobile_navigation_name'] = array("name" => __('Mobile Navigation Label', 'organizedthemes'), "desc" => __('Sets the text for the mobile navigation menu', 'organizedthemes'), "id" => "mobile_navigation_name", "std" => "Menu", "type" => "text");
    $options[] = array("name" => __('Hero Section', 'organizedthemes'), "desc" => __('', 'organizedthemes'), "type" => "heading");
    $options['auto'] = array("name" => __('Automatically Play Slideshow', 'organizedthemes'), "desc" => __('Choose yes to have the slideshow begin sliding once the page loads.  If you are using videos, we recommend setting this to NO.', 'organizedthemes'), "id" => "auto", "std" => "true", "type" => "select", "class" => "mini", "options" => $true);
    $options['prev_next'] = array("name" => __('Previous/Next Buttons', 'organizedthemes'), "desc" => __('Choose yes to display previous/next buttons.  They appear while hovering over the slideshow.', 'organizedthemes'), "id" => "prev_next", "std" => "true", "type" => "select", "class" => "mini", "options" => $true);
    $options['duration'] = array("name" => __('Slide Duration', 'organizedthemes'), "desc" => __('The amount of time in milliseconds that each slide will be visible.', 'organizedthemes'), "id" => "duration", "std" => "5000", "type" => "text");
    $options['transition'] = array("name" => __('Animation Duration', 'organizedthemes'), "desc" => __('The amount of time in milliseconds that it takes to change a slide', 'organizedthemes'), "id" => "transition", "std" => "750", "type" => "text");
    $options['hero_title_font'] = array('name' => __('Hero Title Font', 'organizedthemes'), 'desc' => __('Select a font for your hero section.', 'organizedthemes'), 'id' => 'hero_title_font', 'std' => array('size' => '70px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['hero_text_font'] = array('name' => __('Hero Text Font', 'organizedthemes'), 'desc' => __('Select a font for your hero section.', 'organizedthemes'), 'id' => 'hero_text_font', 'std' => array('size' => '24px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options[] = array("name" => __('Background', 'organizedthemes'), "desc" => __('', 'organizedthemes'), "type" => "heading");
    $options['background_image'] = array("name" => __('Background Image', 'organizedthemes'), "desc" => __('Upload a background image here.', 'organizedthemes'), "id" => "background_image", "type" => "upload");
    $options['background_repeat'] = array("name" => __('Background Repeat', 'organizedthemes'), "desc" => __('Set how your background iamge repeats.', 'organizedthemes'), "id" => "background_repeat", "std" => "", "type" => "select", "options" => $background_repeat);
    $options['background_attachment'] = array("name" => __('Background Attachment', 'organizedthemes'), "desc" => __('Set how your background iamge is attached.', 'organizedthemes'), "id" => "background_attachment", "std" => "", "type" => "select", "options" => $background_attachment);
    $options['background_position_horizontal'] = array("name" => __('Background Position (horizontal)', 'organizedthemes'), "desc" => __('Chose where the background image begins horizontally.', 'organizedthemes'), "id" => "background_position_horizontal", "std" => "", "type" => "select", "options" => $background_position_x);
    $options['background_position_vertical'] = array("name" => __('Background Position (vertical)', 'organizedthemes'), "desc" => __('Chose where the background image begins vertically.', 'organizedthemes'), "id" => "background_position_vertical", "std" => "", "type" => "select", "options" => $background_position_y);
    $options['background_size'] = array("name" => __('Background Scaling', 'organizedthemes'), "desc" => __('Cover will force the background image to fill the background area.  Contain will scale the image so that both its height and width fit.', 'organizedthemes'), "id" => "background_size", "std" => "", "type" => "select", "options" => $background_size);
    $options['background_color'] = array("name" => __('Background Color', 'organizedthemes'), "desc" => __('Choose a background color.', 'organizedthemes'), "id" => "background_color", "std" => "#EDEDED", "type" => "color");
    $options[] = array("name" => __('Home Sections', 'organizedthemes'), "desc" => __('', 'organizedthemes'), "type" => "heading");
    $options['home_1'] = array("name" => __('Home 1 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the first home page section', 'organizedthemes'), "id" => "home_1", "std" => "", "type" => "color");
    $options['home_1_text'] = array("name" => __('Home 1 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the first home page section', 'organizedthemes'), "id" => "home_1_text", "std" => "", "type" => "color");
    $options['home_2'] = array("name" => __('Home 2 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the second home page section', 'organizedthemes'), "id" => "home_2", "std" => "", "type" => "color");
    $options['home_2_text'] = array("name" => __('Home 2 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the second home page section', 'organizedthemes'), "id" => "home_2_text", "std" => "", "type" => "color");
    $options['home_3'] = array("name" => __('Home 3 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the third home page section', 'organizedthemes'), "id" => "home_3", "std" => "", "type" => "color");
    $options['home_3_text'] = array("name" => __('Home 3 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the third home page section', 'organizedthemes'), "id" => "home_3_text", "std" => "", "type" => "color");
    $options['home_4'] = array("name" => __('Home 4 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the fourth home page section', 'organizedthemes'), "id" => "home_4", "std" => "", "type" => "color");
    $options['home_4_text'] = array("name" => __('Home 4 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the fourth home page section', 'organizedthemes'), "id" => "home_4_text", "std" => "", "type" => "color");
    $options['home_5'] = array("name" => __('Home 5 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the fifth home page section', 'organizedthemes'), "id" => "home_5", "std" => "", "type" => "color");
    $options['home_5_text'] = array("name" => __('Home 5 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the fifth home page section', 'organizedthemes'), "id" => "home_5_text", "std" => "", "type" => "color");
    $options['home_6'] = array("name" => __('Home 6 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the sixth home page section', 'organizedthemes'), "id" => "home_6", "std" => "", "type" => "color");
    $options['home_6_text'] = array("name" => __('Home 6 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the sixth home page section', 'organizedthemes'), "id" => "home_6_text", "std" => "", "type" => "color");
    $options['home_7'] = array("name" => __('Home 7 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the seventh home page section', 'organizedthemes'), "id" => "home_7", "std" => "", "type" => "color");
    $options['home_7_text'] = array("name" => __('Home 7 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the seventh home page section', 'organizedthemes'), "id" => "home_7_text", "std" => "", "type" => "color");
    $options['home_8'] = array("name" => __('Home 8 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the eighth home page section', 'organizedthemes'), "id" => "home_8", "std" => "", "type" => "color");
    $options['home_8_text'] = array("name" => __('Home 8 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the eighth home page section', 'organizedthemes'), "id" => "home_8_text", "std" => "", "type" => "color");
    $options['home_9'] = array("name" => __('Home 9 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the ninth home page section', 'organizedthemes'), "id" => "home_9", "std" => "", "type" => "color");
    $options['home_9_text'] = array("name" => __('Home 9 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the ninth home page section', 'organizedthemes'), "id" => "home_9_text", "std" => "", "type" => "color");
    $options['home_10'] = array("name" => __('Home 10 Background Color', 'organizedthemes'), "desc" => __('Sets the background color of the tenth home page section', 'organizedthemes'), "id" => "home_10", "std" => "", "type" => "color");
    $options['home_10_text'] = array("name" => __('Home 10 Text Color', 'organizedthemes'), "desc" => __('Sets the text color of the tenth home page section', 'organizedthemes'), "id" => "home_10_text", "std" => "", "type" => "color");
    $options[] = array("name" => __('Content', 'organizedthemes'), "desc" => __('', 'organizedthemes'), "type" => "heading");
    $options['default_layout'] = array('name' => __('Default Layout', 'organizedthemes'), 'desc' => __('Choose a default layout for your pages and posts.', 'organizedthemes'), 'id' => "default_layout", 'std' => "content-left", 'type' => "images", 'options' => array('content-left' => $imagepath . '2cr.png', 'content-full' => $imagepath . '1col.png', 'content-right' => $imagepath . '2cl.png'));
    $options['content_excerpt'] = array("name" => __('Excerpt Or Full Content', 'organizedthemes'), "desc" => __('You can choose to display your full post content or only an excerpt on archive pages.', 'organizedthemes'), "id" => "content_excerpt", "std" => "yes", "type" => "select", "class" => "mini", "options" => $content_type);
    $options['gallery'] = array("name" => __('Include Lightbox Gallery', 'organizedthemes'), "desc" => __('If you would like to disable the lightbox gallery, select no here.', 'organizedthemes'), "id" => "gallery", "std" => "yes", "type" => "select", "class" => "mini", "options" => $yes);
    $options['lightbox_style'] = array("name" => __('Lightbox Style', 'organizedthemes'), "desc" => __('Choose a style for the pop-up lightbox.', 'organizedthemes'), "id" => "lightbox_style", "std" => "classic", "type" => "select", "class" => "tiny", "options" => $light_style);
    $options[] = array('name' => __('Main Content Styles', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options['body_font'] = array('name' => __('Body Font', 'organizedthemes'), 'desc' => __('This is used for the main conent and widgets.', 'organizedthemes'), 'id' => 'body_font', 'std' => array('size' => '15px', 'face' => 'Open Sans, sans-serif', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['content_text'] = array("name" => __('Text Color', 'organizedthemes'), "desc" => __('The color of your main text', 'organizedthemes'), "id" => "content_text", "std" => "", "type" => "color");
    $options['content_background'] = array("name" => __('Content Background Color', 'organizedthemes'), "desc" => __('The background color of the main content area of the site.', 'organizedthemes'), "id" => "content_background", "std" => "", "type" => "color");
    $options['heading_font'] = array('name' => __('Heading Font', 'organizedthemes'), 'desc' => __('Choose a font for your page titles and other headings (h1, h2, h3, h4, h5, h6)', 'organizedthemes'), 'id' => 'heading_font', 'std' => array('size' => '24px', 'face' => 'Open Sans, sans-serif', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'sizes' => false, 'color' => false));
    $options['heading_color'] = array("name" => __('Heading Color', 'organizedthemes'), "desc" => __('The color of your headings', 'organizedthemes'), "id" => "heading_color", "std" => "", "type" => "color");
    $options[] = array('name' => __('Links', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options['link_color'] = array("name" => __('Link Color', 'organizedthemes'), "desc" => __('Choose a link color', 'organizedthemes'), "id" => "link_color", "std" => "", "type" => "color");
    $options['link_color_hover'] = array("name" => __('Link Color (hover)', 'organizedthemes'), "desc" => __('Choose a link color while hovering', 'organizedthemes'), "id" => "link_color_hover", "std" => "", "type" => "color");
    $options[] = array('name' => __('Products', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options['product_text'] = array("name" => __('Product Text', 'organizedthemes'), "desc" => __('This sets the text color of products in your store catalog.', 'organizedthemes'), "id" => "product_text", "std" => "", "type" => "color");
    $options['product_background'] = array("name" => __('Product Background', 'organizedthemes'), "desc" => __('This sets the background color of products in your store catalog.', 'organizedthemes'), "id" => "product_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Footer', 'organizedthemes'), "desc" => __('', 'organizedthemes'), "type" => "heading");
    $options['footer_text'] = array("name" => __('Custom Footer Text (Left)', 'organizedthemes'), "desc" => __('The text you enter here will be displayed in the left hand side of the footer.', 'organizedthemes'), "id" => "footer_text", "std" => "", "type" => "text");
    $options['footer_text_right'] = array("name" => __('Custom Footer Text (Right)', 'organizedthemes'), "desc" => __('The text you enter here will be displayed in the right hand side of the footer.  If you\'d like to use a navigation menu, leave this blank.', 'organizedthemes'), "id" => "footer_text_right", "std" => "", "type" => "text");
    $options['footer_color'] = array("name" => __('Footer Text Color', 'organizedthemes'), "desc" => __('Your footer text color', 'organizedthemes'), "id" => "footer_color", "std" => "", "type" => "color");
    $options['footer_background_color'] = array("name" => __('Footer Background Color', 'organizedthemes'), "desc" => __('The background color of your footer', 'organizedthemes'), "id" => "footer_background_color", "std" => "", "type" => "color");
    $options['footer_link_color'] = array("name" => __('Footer Link Color', 'organizedthemes'), "desc" => __('The color of links in your footer.', 'organizedthemes'), "id" => "footer_link_color", "std" => "", "type" => "color");
    $options['footer_link_color_hover'] = array("name" => __('Footer Link Color (Hover)', 'organizedthemes'), "desc" => __('The color of links in your footer while hovering.', 'organizedthemes'), "id" => "footer_link_color_hover", "std" => "", "type" => "color");
    $options['footer_line'] = array("name" => __('Footer Line Color', 'organizedthemes'), "desc" => __('This is the color of the dividers between the footer navigation items and also the border between the footer widgets and the rest of the footer.', 'organizedthemes'), "id" => "footer_line", "std" => "", "type" => "color");
    // Widget Options
    $options[] = array("name" => __('Widgets', 'organizedthemes'), "type" => "heading");
    $options['widget_title_font'] = array('name' => __('Widget Title Font', 'organizedthemes'), 'desc' => __('The heading at the top of a widget.', 'organizedthemes'), 'id' => 'widget_title_font', 'std' => array('size' => '24px', 'face' => 'Open Sans, sans-serif', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['widget_title'] = array("name" => __('Widget Title', 'organizedthemes'), "desc" => __('The color of your widget titles.', 'organizedthemes'), "id" => "widget_title", "std" => "", "type" => "color");
    $options['widget_text'] = array("name" => __('Widget Text', 'organizedthemes'), "desc" => __('Color for the text in your widgets.', 'organizedthemes'), "id" => "widget_text", "std" => "", "type" => "color");
    $options['widget_background'] = array("name" => __('Widget Backgound', 'organizedthemes'), "desc" => __('Background color for your widgets.', 'organizedthemes'), "id" => "widget_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Buttons', 'organizedthemes'), "type" => "heading");
    $options['button'] = array("name" => __('Button Text', 'organizedthemes'), "desc" => __('Text color for buttons.', 'organizedthemes'), "id" => "button", "std" => "", "type" => "color");
    $options['button_background'] = array("name" => __('Button Background', 'organizedthemes'), "desc" => __('Background color for buttons.', 'organizedthemes'), "id" => "button_background", "std" => "", "type" => "color");
    $options['button_hover'] = array("name" => __('Button Text (hover)', 'organizedthemes'), "desc" => __('Text color for buttons while hovering.', 'organizedthemes'), "id" => "button_hover", "std" => "", "type" => "color");
    $options['button_background_hover'] = array("name" => __('Button Background (hover)', 'organizedthemes'), "desc" => __('Background color for buttons while hovering.', 'organizedthemes'), "id" => "button_background_hover", "std" => "", "type" => "color");
    $options[] = array('name' => __('Social Media Icons', 'organizedthemes'), 'desc' => __('', 'organizedthemes'), 'type' => 'info');
    $options['social_color'] = array("name" => __('Social Icon Color', 'organizedthemes'), "desc" => __('The forground color of the icon.', 'organizedthemes'), "id" => "social_color", "std" => "", "type" => "color");
    $options['social_color_background'] = array("name" => __('Socail Icon Background Color', 'organizedthemes'), "desc" => __('The background color of the icon.', 'organizedthemes'), "id" => "social_color_background", "std" => "", "type" => "color");
    $options['social_color_hover'] = array("name" => __('Social Icon Color Hover', 'organizedthemes'), "desc" => __('The forground color of the icon while hovering.', 'organizedthemes'), "id" => "social_color_hover", "std" => "", "type" => "color");
    $options['social_color_background_hover'] = array("name" => __('Socail Icon Background Color Hover', 'organizedthemes'), "desc" => __('The background color of the icon while hovering.', 'organizedthemes'), "id" => "social_color_background_hover", "std" => "", "type" => "color");
    $options[] = array("name" => __('Advanced', 'organizedthemes'), "type" => "heading");
    $options[] = array("name" => __('URL Slug For Staff Members', 'organizedthemes'), "desc" => __('You can enter a new slug for your staff member\'s individual URL\'s here.  Must be all lowercase with no special characters or spaces.  After changing this you will need to resave your permalinks to prevent not found errors.', 'organizedthemes'), "id" => "staff_slug", "std" => "staff", "type" => "text");
    $options[] = array("name" => __('URL Slug For Staff Groups', 'organizedthemes'), "desc" => __('You can enter a new slug for your staff group\'s URL here.  Must be all lowercase with no special characters or spaces.  After changing this you will need to resave your permalinks to prevent not found errors.', 'organizedthemes'), "id" => "staff_group_slug", "std" => "staff-group", "type" => "text");
    $options[] = array('name' => __('Disable Theme Updates', 'organizedthemes'), 'desc' => __('Disables the theme updater feature.', 'organizedthemes'), 'id' => 'disable_theme_updater', 'std' => false, 'type' => 'checkbox');
    $options[] = array('name' => __('Disable Google Fonts', 'organizedthemes'), 'desc' => __('Turns off the output of Google fonts.', 'organizedthemes'), 'id' => 'disable_fonts', 'std' => false, 'type' => 'checkbox');
    $options['custom_css'] = array("name" => __('Custom CSS', 'organizedthemes'), "desc" => __('Add any custom CSS you would like to use here.', 'organizedthemes'), "id" => "custom_css", "std" => "", "type" => "textarea");
    return $options;
}
Example #15
0
 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:");
     //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", "block_one" => "Block One", "block_two" => "Block Two", "block_three" => "Block Three"), "enabled" => array("placebo" => "placebo", "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;
                 }
             }
         }
     }
     /*-----------------------------------------------------------------------------------*/
     /* 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 */
     /*-----------------------------------------------------------------------------------*/
     // Set the Options Array
     global $of_options;
     $of_options = array();
     $of_options[] = array("name" => __("Agents", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Enable direct agents contact", THEME_NAME), "desc" => __("Enable direct contact form with your agents on a global level. You can enable/disable this option per agent bases if you edit the specific agent profile.", THEME_NAME), "id" => "enable_direct_agents_contact", "std" => "1", "type" => "checkbox");
     $of_options[] = array("name" => __("Message subject", THEME_NAME), "desc" => __("The subject of the email received by the agent.", THEME_NAME), "id" => "agent_message_subject", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Message format", THEME_NAME), "desc" => __("Available short tags: %property_name%, %property_link%, %person_name%, %person_phone%, %person_email%, %agent_name%, %person_message%", THEME_NAME), "id" => "agent_message_format", "std" => __("Hello %agent_name%,\n\nSomebody named %person_name% wants to contact you about property %property_name% (%property_link%).\n\nTheirs contact details are:\nName: %person_name%\nPhone: %person_phone%\nEmail: %person_email%\n\nMessage: %person_message%", THEME_NAME), "type" => "textarea");
     // Properties settings
     $of_options[] = array("name" => __("Properties", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Enable schema.org", THEME_NAME), "desc" => __("Add <a href=\"http://www.schema.org/\" target=\"_blank\">schema.org</a> support to improve properties SEO for major seach engines like Google, Bing and Yahoo.", THEME_NAME), "id" => "schemaorg_enabled", "std" => false, "type" => "checkbox");
     $of_options[] = array("name" => __("WPML properties", THEME_NAME), "desc" => __("How to handle missing properties translation if WPML plugin is installed", THEME_NAME), "id" => "handle_missing_wpml_property_translations", "std" => "always_show_original", "type" => "select", "options" => array('always_show_original' => __('Always show original', THEME_NAME), 'show_local_copy' => __('Show localized copy if exists', THEME_NAME)));
     $of_options[] = array("name" => __("Main properties page", THEME_NAME), "desc" => __("Defines the page where properties will be listed. Select only one.", THEME_NAME), "id" => "main_properties_page", "std" => "", "type" => "nested_pages");
     $of_options[] = array("name" => __("Main agents page", THEME_NAME), "desc" => __("The agencies page will go to this page to filter the agents. It should have a valid Agents template.", THEME_NAME), "id" => "main_agents_page", "std" => "", "type" => "nested_pages");
     $of_options[] = array("name" => __("Property address format", THEME_NAME), "desc" => __("Sets the default address format. Available parameters:<br>\n\t\t\t\t\t\t\t%street_address%, %street_number%, %city%, %state%, %county%, %floor%, %country%, %postal_code%, %apartment_number%<br><br>You can use conditional state \n\t\t\t\t\t\t\tif you want to eliminate gaps in the output format.<br><br>Usage:<br><strong>[if %street_address%], %street_adress%[/if]</strong><br><br>or<br><br><strong>[if %street_address%], %street_number%[/if]</strong>", THEME_NAME), "id" => "address_format", "std" => "%street_number% %street_address%, %county%, %city%, %postal_code%", "type" => "textarea");
     $of_options[] = array("name" => __("Default properties listing type", THEME_NAME), "desc" => __("List or Grid layout", THEME_NAME), "id" => "properties_default_listing_type", "std" => "grid", "type" => "select", "options" => array('grid' => __('Grid'), 'list' => __('List')));
     $of_options[] = array("name" => __("Properties not found text", THEME_NAME), "desc" => __("Text customer will see this if no properties are found according to their criteria.", THEME_NAME), "id" => "no_properties_found_text", "std" => __('There are no properties found.', THEME_NAME), "type" => "text");
     $of_options[] = array("name" => __("Google Maps API key", THEME_NAME), "desc" => __("Enter your Google Maps API key. Google allows FREE usage up to 25 000 loads per day. If your site exceeds it, you need to apply for Business license.\n\t\t\t\t\t\t<br><br>If you don't have one, visit <a target=\"_blank\" href=\"https://developers.google.com/maps/documentation/javascript/tutorial#api_key\">Google Maps API page</a> for more information.", THEME_NAME), "id" => "google_maps_api_key", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Google Maps API server key", THEME_NAME), "desc" => __("Enter your Google Maps API server key. This key will be used to give your customer better Google Maps services like geo location auto suggestion. \n\t\t\t\t\t\t\tGoogle allows up to 2 500 calls per day. If your site is exceeding this quota you need to apply for Business license.\n\t\t\t\t\t\t\t<br><br>If you don't have such, visit <a target=\"_blank\" href=\"https://developers.google.com/maps/documentation/javascript/tutorial#api_key\">Google Maps API page</a> for more information.", THEME_NAME), "id" => "google_maps_api_server_key", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Distances", THEME_NAME), "desc" => __("A list of comma separated numbers that represent distances of properties in that radius, available for search options.", THEME_NAME), "id" => "distances", "std" => "1, 2, 3, 4, 5, 10, 20, 30, 50, 100", "type" => "text");
     $of_options[] = array("name" => __("Default distance", THEME_NAME), "desc" => __("If the customer has chosen a location to search for, but without distance within it, this is the default one.", THEME_NAME), "id" => "default_distance", "std" => "20", "type" => "text");
     $of_options[] = array("name" => __("Properties per page", THEME_NAME), "desc" => "", "id" => "properties_per_page", "std" => 9, "type" => "text");
     $of_options[] = array("name" => __("Measuring units", THEME_NAME), "desc" => __("US or Metric", THEME_NAME), "id" => "measuring_units", "type" => "select", "std" => "metric", "options" => array('metric' => __('Metric'), 'us' => __('US')));
     $of_options[] = array("name" => __("Use property address field", THEME_NAME), "desc" => __("Since theme update to version 1.1, the address field is no longer active. If you have properties before version 1.1, you can leave this option to \"yes\". In that case, you will not be able to take full advantage of the new address fields. ", THEME_NAME), "id" => "use_property_address_field", "type" => "select", "std" => "yes", "options" => array('no' => __('No'), 'yes' => __('Yes')));
     $of_options[] = array("name" => __("Type of pets available", THEME_NAME), "desc" => __("List of the pets allowed in the property. Write each type on new line.", THEME_NAME), "id" => "pets_allowed_list", "type" => "textarea", "std" => "");
     $of_options[] = array("name" => __("Mark featured items", THEME_NAME), "desc" => __("Show a flag on each featured item when items are displayed in a list or grid view mode.", THEME_NAME), "id" => "mark_featured_items", "type" => "radio", "std" => "yes", "options" => array('yes' => __('Yes'), 'no' => __('No')));
     $of_options[] = array("name" => __('Show "Recently viewed" block', THEME_NAME), "desc" => __("Show a block of properties that are recently viewed by the customer.", THEME_NAME), "id" => "show_recently_viewed", "type" => "radio", "std" => "no", "options" => array('yes' => __('Yes'), 'no' => __('No')));
     $of_options[] = array("name" => __('Show "Other people also viewed" block', THEME_NAME), "desc" => __("Show a block of properties that are also viewed by other customers.", THEME_NAME), "id" => "show_other_people_also_viewed", "type" => "radio", "std" => "no", "options" => array('yes' => __('Yes'), 'no' => __('No')));
     $of_options[] = array("name" => __('Property details gallery delay', THEME_NAME), "desc" => __("The seconds to wait before the next image appears. Anything but 0 will start an auto slideshow.", THEME_NAME), "id" => "property_details_gallery_delay", "type" => "text", "std" => "0");
     $of_options[] = array("name" => __("Properties images", THEME_NAME), "desc" => "", "id" => "properties_images", "std" => __("<h3 style=\"margin: 0 0 10px;\">Properties images.</h3>\n\t\t\t\t\t\tThis section is to help you upload images faster - straight from your camera, without burdening vistors with the download of huge photos. You can setup all required photo formats. \n\t\t\t\t\t\t<br><br>Please, have in mind that if you change any of the thumb settings, you have to regenerate all thumbnails. \n\t\t\t\t\t\tYou can install <a href=\"http://wordpress.org/plugins/force-regenerate-thumbnails/\" target=\"_blank\">Force regenerate thumbnails</a> plugin.", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("Gallery thumbnail width", THEME_NAME), "desc" => "", "id" => "image_properties_gallery_thumbnail_width", "std" => 80, "type" => "text");
     $of_options[] = array("name" => __("Gallery thumbnail height", THEME_NAME), "desc" => "", "id" => "image_properties_gallery_thumbnail_height", "std" => 60, "type" => "text");
     $of_options[] = array("name" => __("Featured thumbnail width", THEME_NAME), "desc" => "", "id" => "image_properties_featured_thumbnail_width", "std" => 100, "type" => "text");
     $of_options[] = array("name" => __("Featured thumbnail height", THEME_NAME), "desc" => "", "id" => "image_properties_featured_thumbnail_height", "std" => 73, "type" => "text");
     $of_options[] = array("name" => __("Carousel thumbnail width", THEME_NAME), "desc" => "", "id" => "image_properties_carousel_thumbnail_width", "std" => 218, "type" => "text");
     $of_options[] = array("name" => __("Carousel thumbnail height", THEME_NAME), "desc" => "", "id" => "image_properties_carousel_thumbnail_height", "std" => 148, "type" => "text");
     $of_options[] = array("name" => __("Gallery normal width", THEME_NAME), "desc" => "", "id" => "image_properties_gallery_normal_width", "std" => 650, "type" => "text");
     $of_options[] = array("name" => __("Gallery normal height", THEME_NAME), "desc" => "", "id" => "image_properties_gallery_normal_height", "std" => 340, "type" => "text");
     $of_options[] = array("name" => __("Property listing width", THEME_NAME), "desc" => "", "id" => "image_properties_listing_width", "std" => 230, "type" => "text");
     $of_options[] = array("name" => __("Property listing height", THEME_NAME), "desc" => "", "id" => "image_properties_listing_height", "std" => 167, "type" => "text");
     // Price settings
     $of_options[] = array("name" => __("Price", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Currency", THEME_NAME), "desc" => __("Default currency for properties.<br>Popular currencies: &pound; &euro; \$", THEME_NAME), "id" => "currency", "std" => "\$", "type" => "text");
     $of_options[] = array("name" => __("Currency ISO 4217 code", THEME_NAME), "desc" => __("Not a required field but if you enable schema.org it is good to provide the code here to make your search results more correct.", THEME_NAME), "id" => "currency_iso_code", "std" => "USD", "type" => "text");
     $of_options[] = array("name" => __("Thousands separator", THEME_NAME), "desc" => __("Type \"<strong>s</strong>\" (without commas) if you'd like an empty space.", THEME_NAME), "id" => "thousands_separator", "std" => "s", "type" => "text");
     $of_options[] = array("name" => __("Decimal point", THEME_NAME), "desc" => __("Type \"<strong>s</strong>\" (without commas) if you'd like an empty space.", THEME_NAME), "id" => "decimal_point", "std" => ".", "type" => "text");
     $of_options[] = array("name" => __("Currency position", THEME_NAME), "desc" => __("Where the currency sign should stay. In front of (example: &pound; 12345) or after the end of ( 12345 &pound; ) number", THEME_NAME), "id" => "currency_position", "std" => "front", "type" => "radio", "options" => array('front' => __('Front of number'), 'end' => __('End of number')));
     $of_options[] = array("name" => __("Currency and number separator", THEME_NAME), "desc" => __("The separator between the currency sign and the number.<br>Type \"<strong>s</strong>\" (without commas) if you'd like an empty space.", THEME_NAME), "id" => "currency_number_separator", "std" => "s", "type" => "text");
     $of_options[] = array("name" => __("Show zeros after decimal for natural numbers", THEME_NAME), "desc" => __("If price is just a natural number show or hide .00 after it.<br>Example: 555555 or 555555.00", THEME_NAME), "id" => "show_zeros_natural_numbers", "std" => "no", "type" => "radio", "options" => array('yes' => __('Yes'), 'no' => __('No')));
     // Social media settings
     $of_options[] = array("name" => __("Social media", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => "Facebook", "desc" => __("Please enter your Facebook identificator", THEME_NAME), "id" => "social_media_facebook", "std" => "", "type" => "text");
     $of_options[] = array("name" => "Twitter", "desc" => __("Please enter your Twitter identificator", THEME_NAME), "id" => "social_media_twitter", "std" => "", "type" => "text");
     $of_options[] = array("name" => "YouTube", "desc" => __("Please enter your Youtube identificator", THEME_NAME), "id" => "social_media_youtube", "std" => "", "type" => "text");
     $of_options[] = array("name" => "Google Plus", "desc" => __("Please enter your Google Plus identificator", THEME_NAME), "id" => "social_media_google_plus", "std" => "", "type" => "text");
     $of_options[] = array("name" => "Pinterest", "desc" => __("Please enter your Pinterest identificator", THEME_NAME), "id" => "social_media_pinterest", "std" => "", "type" => "text");
     $of_options[] = array("name" => "LinkedIn", "desc" => __("Please enter your <strong>full</strong> LinkedIn url address", THEME_NAME), "id" => "social_media_linkedin", "std" => "", "type" => "text");
     // Contacts settings
     $of_options[] = array("name" => __("Contacts", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Send form to email", THEME_NAME), "desc" => __("Enter the email address to which you want to recieve the contact form's data. If it is left empty, the administrator's email will be used.", THEME_NAME), "id" => "contacts_recipient", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Office address", THEME_NAME), "desc" => __("Your office address.", THEME_NAME), "id" => "contacts_address", "std" => "", "type" => "textarea");
     $of_options[] = array("name" => __("Phone 1", THEME_NAME), "desc" => __("The phone number to contact.", THEME_NAME), "id" => "contacts_phone_1", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Phone 2", THEME_NAME), "desc" => __("The phone number to contact.", THEME_NAME), "id" => "contacts_phone_2", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Email 1", THEME_NAME), "desc" => __("The email to contact. It will be public (visible).", THEME_NAME), "id" => "contacts_email_1", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Email 2", THEME_NAME), "desc" => __("The email to contact. It will be public (visible).", THEME_NAME), "id" => "contacts_email_2", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Contact form subject", THEME_NAME), "desc" => __("The subject of the email", THEME_NAME), "id" => "contacts_subject", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Contact form e-mail format", THEME_NAME), "desc" => __("You can create your own message by using these placeholders: %first_name%, %last_name%, %phone%, %email%, %ip%, %message%", THEME_NAME), "id" => "contacts_message_format", "std" => "A message from: %first_name%: %message%", "type" => "textarea");
     $of_options[] = array("name" => __("Contact form success message", THEME_NAME), "desc" => __("The customer will see this after sending the form successfully.", THEME_NAME), "id" => "contacts_success", "std" => "", "type" => "textarea");
     $of_options[] = array("name" => __("Enable reCAPTCHA", THEME_NAME), "desc" => __("Enable reCAPTCHA service to protect all your contact forms from spammers.", THEME_NAME), "id" => "recaptcha_enabled", "std" => "no", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     $of_options[] = array("name" => __("reCAPTCHA public key", THEME_NAME), "desc" => __("Enter your public key generated from <a href='http://recaptcha.net/' target='_blank'>http://recaptcha.net/‎</a>‎", THEME_NAME), "id" => "recaptcha_public_key", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("reCAPTCHA private key", THEME_NAME), "desc" => __("Enter your private key generated from <a href='http://recaptcha.net/' target='_blank'>http://recaptcha.net/‎</a>‎", THEME_NAME), "id" => "recaptcha_private_key", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("reCAPTCHA theme name", THEME_NAME), "desc" => __("reCAPTACHA allows you to use a specific theme. You can see the available options at <a href=\"https://developers.google.com/recaptcha/docs/customization\" target=\"_blank\">https://developers.google.com/recaptcha/docs/customization</a>‎", THEME_NAME), "id" => "recaptcha_theme", "std" => "red", "type" => "select", "options" => array("red" => __('Red', THEME_NAME), 'white' => __('White', THEME_NAME), 'blackglass' => __('Blackglass'), 'clean' => __('Clean', THEME_NAME)));
     // General settings
     $of_options[] = array("name" => __("General", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Quick search heading", THEME_NAME), "desc" => __("The heading text for the quick search component", THEME_NAME), "id" => "quick_search_heading", "std" => __("Find your dream home today", THEME_NAME), "type" => "text");
     $of_options[] = array("name" => __("Enable footer middle section", THEME_NAME), "desc" => __("By default the footer has three sections. This checkbox controls the middle section.", THEME_NAME), "id" => "enable_footer_middle_section", "std" => false, "type" => "checkbox");
     $of_options[] = array("name" => __("Middle section title", THEME_NAME), "desc" => __("The title that will appear on top of the description.", THEME_NAME), "id" => "footer_middle_section_title", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Middle section text", THEME_NAME), "desc" => __("The footer's middle column free text", THEME_NAME), "id" => "footer_middle_section_text", "std" => "", "type" => "textarea");
     $of_options[] = array("name" => __("Middle section read more link", THEME_NAME), "desc" => __("A link address the customer can go to.", THEME_NAME), "id" => "footer_middle_section_read_more_link", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Middle section read more text", THEME_NAME), "desc" => __("A custom link name. \"Read more\" is fine.", THEME_NAME), "id" => "footer_middle_section_read_more_text", "std" => "", "type" => "text");
     $of_options[] = array("name" => __("Social links title", THEME_NAME), "desc" => __("The title that will appear on top of the description.", THEME_NAME), "id" => "newsletter_title", "std" => __("You can find us also", THEME_NAME), "type" => "text");
     $of_options[] = array("name" => __("Social links description", THEME_NAME), "desc" => __("Describes what customers will get if they go to the social links.", THEME_NAME), "id" => "newsletter_description", "std" => __("Check our awesome domestic cats in Facebook or Twitter", THEME_NAME), "type" => "textarea");
     $of_options[] = array("name" => __("404 page text", THEME_NAME), "desc" => __("The text the customers will see when Not found page appears.", THEME_NAME), "id" => "page_not_found_text", "std" => __("The think you are looking for cannot be found.", THEME_NAME), "type" => "textarea");
     $of_options[] = array("name" => __("404 page jump to links", THEME_NAME), "desc" => __("List the pages your customers can choose to go to from the 404 page", THEME_NAME), "id" => "page_not_found_jump_to_links", "std" => "", "type" => "nested_pages");
     // Styling options
     $of_options[] = array("name" => __("Styling", THEME_NAME), "type" => "heading");
     $template_uri = get_template_directory_uri();
     $desc = __('Pick one of the predefined colour skins.', THEME_NAME) . '<div style="width:500px;overflow:hidden">';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Yellow', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_yellow.png" alt="' . __('Yellow', THEME_NAME) . '" title="' . __('Yellow', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Green', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_green.png" alt="' . __('Green', THEME_NAME) . '" title="' . __('Green', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Orange', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_orange.png" alt="' . __('Orange', THEME_NAME) . '" title="' . __('Orange', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Ocean', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_ocean.png" alt="' . __('Ocean', THEME_NAME) . '" title="' . __('Ocean', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Forest', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_forest.png" alt="' . __('Forest', THEME_NAME) . '" title="' . __('Forest', THEME_NAME) . '"></div>';
     $desc .= '</div>';
     $of_options[] = array("name" => __("Colour skin", THEME_NAME), "desc" => $desc, "id" => "colour_skin", "std" => "yellow", "type" => "select", "options" => array('yellow' => __('Yellow', THEME_NAME), 'green' => __('Green', THEME_NAME), 'orange' => __('Orange', THEME_NAME), 'ocean' => __('Ocean', THEME_NAME), 'forest' => __('Forest', THEME_NAME)));
     $of_options[] = array("name" => __("Header configuration", THEME_NAME), "desc" => __('Choose header configuration from 4 different configurations. Keep in mind that Revolution slider goes hand in hand with Quick search. See "Flat header image" option below for float image upload.', THEME_NAME), "id" => "header_configuration", "std" => "home_slider_inner_flat", "type" => "radio", "options" => array('home_slider_inner_flat' => __('Homepage: Revolution slider, Inner pages: flat image', THEME_NAME), 'home_flat_inner_flat' => __('Homepage: flat header, Inner page: flat image', THEME_NAME), 'home_slider_inner_slider' => __('Homepage: Revolution slider, Inner pages: Revolution slider', THEME_NAME), 'home_flat_inner_slider' => __('Homepage: flat image, Inner pages: Revolution slider')));
     $of_options[] = array("name" => __("Revolution slider ID", THEME_NAME), "desc" => __('Set the ID of the Revolution slider you want to use.', THEME_NAME), "id" => "revslider_id", "std" => "homeslider", "type" => "text");
     $of_options[] = array("name" => __("Sidebar position", THEME_NAME), "desc" => __('Switch the sidebar and the mainbar positions.', THEME_NAME), "id" => "sidebar_position", "std" => "left", "type" => "radio", "options" => array("left" => __('Left', THEME_NAME), 'right' => __('Right')));
     $of_options[] = array("name" => __("Sidebar position on mobile", THEME_NAME), "desc" => __('The position of the sidebar when the site is visited on a mobile device - before or after the main content.', THEME_NAME), "id" => "sidebar_position_mobile", "std" => "after", "type" => "radio", "options" => array("before" => __('Before', THEME_NAME), 'after' => __('After')));
     /**
      * Returns an array of system fonts
      * Feel free to edit this, update the font fallbacks, etc.
      */
     function options_typography_get_os_fonts()
     {
         // OS Font Defaults
         $os_faces = array('Arial, sans-serif' => 'Arial', '"Avant Garde", sans-serif' => 'Avant Garde', 'Cambria, Georgia, serif' => 'Cambria', 'Copse, sans-serif' => 'Copse', 'Garamond, "Hoefler Text", Times New Roman, Times, serif' => 'Garamond', 'Georgia, serif' => 'Georgia', '"Helvetica Neue", Helvetica, sans-serif' => 'Helvetica Neue', 'Tahoma, Geneva, sans-serif' => 'Tahoma');
         return $os_faces;
     }
     /**
      * Returns a select list of Google fonts
      * Feel free to edit this, update the fallbacks, etc.
      */
     function options_typography_get_google_fonts()
     {
         // Google Font Defaults
         $google_faces = array('Arvo, serif' => 'Arvo', 'Copse, sans-serif' => 'Copse', 'Droid Sans, sans-serif' => 'Droid Sans', 'Droid Serif, serif' => 'Droid Serif', 'Lobster, cursive' => 'Lobster', 'Nobile, sans-serif' => 'Nobile', 'Open Sans, sans-serif' => 'Open Sans', 'Oswald, sans-serif' => 'Oswald', 'Pacifico, cursive' => 'Pacifico', 'Rokkitt, serif' => 'Rokkit', 'PT Sans, sans-serif' => 'PT Sans', 'Quattrocento, serif' => 'Quattrocento', 'Raleway, cursive' => 'Raleway', 'Ubuntu, sans-serif' => 'Ubuntu', 'Yanone Kaffeesatz, sans-serif' => 'Yanone Kaffeesatz');
         return $google_faces;
     }
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     $of_options[] = array('name' => __('System Fonts and Google Fonts Mixed', THEME_NAME), 'desc' => __('Google fonts mixed with system fonts.', THEME_NAME), 'id' => 'google_mixed', 'std' => array('size' => '12px', 'face' => 'Open Sans, sans-serif', 'color' => '#171717'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts, 'styles' => false));
     $of_options[] = array("name" => __("Flat header image", THEME_NAME), "desc" => __("940x220 image for inner pages. Image will be auto cropped.", THEME_NAME), "id" => "inner_pages_header", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Logo", THEME_NAME), "desc" => __("Upload your company's logo", THEME_NAME), "id" => "logo", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Background", THEME_NAME), "desc" => __("Upload a pattern or image for your main background.", THEME_NAME), "id" => "background_image", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Background repeat", THEME_NAME), "desc" => __("Choose the \"repeat\" option if you want your pattern to repeat", THEME_NAME), "id" => "background_image_repeat", "std" => "repeat", "type" => "radio", "options" => array('repeat' => __('Repeat', THEME_NAME), 'no-repeat' => __('No repeat', THEME_NAME)));
     $of_options[] = array("name" => __("Header background", THEME_NAME), "desc" => __("Upload a pattern or image for your header background.", THEME_NAME), "id" => "header_image", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Header background repeat", THEME_NAME), "desc" => __("Choose the \"repeat\" option if you want your pattern to repeat", THEME_NAME), "id" => "header_image_repeat", "std" => "repeat", "type" => "radio", "options" => array('repeat' => __('Repeat', THEME_NAME), 'no-repeat' => __('No repeat', THEME_NAME)));
     $of_options[] = array("name" => __("Show breadcrumbs", THEME_NAME), "desc" => __("Show/hide breadcrumbs on all pages.", THEME_NAME), "id" => "show_breadcrumbs", "std" => "yes", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     // Color scheme
     $of_options[] = array("name" => __("Color scheme", THEME_NAME), "type" => "heading");
     $colour_skin = estetico_get_setting('colour_skin');
     require_once get_template_directory() . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'skins' . DIRECTORY_SEPARATOR . $colour_skin . DIRECTORY_SEPARATOR . 'scheme.php';
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("<strong>Important:</strong> If you have <strong>just</strong> changed the skin option, please refresh the page. After the refresh is done, please click the reset button to restore the original colours of the skin (if you have any previous changes). If you don't do that, the theme will still use the old colours.", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("Enable color overwrite", THEME_NAME), "desc" => __("The colours of the current skin will be overwritten by the ones you specify here", THEME_NAME), "id" => "enable_color_overwrite", "std" => "no", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     $of_options[] = array("name" => "", "type" => 'reset_colors', "desc" => "The colours will be reset to the skin's default ones. All changes will be automatically saved.");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("Headings and top navigation hover style", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("", THEME_NAME), "id" => "color_1", "std" => $scheme['color_1'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("Links", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("", THEME_NAME), "id" => "color_2", "std" => $scheme['color_2'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("General buttons and top navigation buttons states.", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Background colour for old browsers", THEME_NAME), "id" => "color_3", "std" => $scheme['color_3'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient top colour", THEME_NAME), "id" => "color_4", "std" => $scheme['color_4'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient bottom colour", THEME_NAME), "id" => "color_5", "std" => $scheme['color_5'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Top navigation hover colour", THEME_NAME), "id" => "color_6", "std" => $scheme['color_6'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Top navigation sub level hover colour", THEME_NAME), "id" => "color_23", "std" => $scheme['color_23'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Other button styles", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Background colour for old browsers", THEME_NAME), "id" => "color_7", "std" => $scheme['color_7'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient top colour", THEME_NAME), "id" => "color_8", "std" => $scheme['color_8'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient bottom colour", THEME_NAME), "id" => "color_9", "std" => $scheme['color_9'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Other button styles", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient top colour", THEME_NAME), "id" => "color_10", "std" => $scheme['color_10'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient bottom colour", THEME_NAME), "id" => "color_11", "std" => $scheme['color_11'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Other button styles", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient top colour", THEME_NAME), "id" => "color_12", "std" => $scheme['color_12'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient bottom colour", THEME_NAME), "id" => "color_13", "std" => $scheme['color_13'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Header background colour", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("", THEME_NAME), "id" => "color_14", "std" => $scheme['color_14'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Quick search block", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Background colour for old browsers", THEME_NAME), "id" => "color_15", "std" => $scheme['color_15'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient top colour", THEME_NAME), "id" => "color_16", "std" => $scheme['color_16'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient bottom colour", THEME_NAME), "id" => "color_17", "std" => $scheme['color_17'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Border", THEME_NAME), "id" => "color_21", "std" => $scheme['color_21'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Border bottom colour", THEME_NAME), "id" => "color_22", "std" => $scheme['color_22'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Sidebar navigation hover colour", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("", THEME_NAME), "id" => "color_18", "std" => $scheme['color_18'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Footer", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Background", THEME_NAME), "id" => "color_19", "std" => $scheme['color_19'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Columns separator", THEME_NAME), "id" => "color_20", "std" => $scheme['color_20'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_2", "std" => __("Misc", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Icons main colour", THEME_NAME), "id" => "color_24", "std" => $scheme['color_24'], "type" => "color");
     // Search settings
     $of_options[] = array("name" => __("Search", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Quick search", THEME_NAME), "desc" => "", "id" => "quick_seach_settings_info", "std" => __("<h3 style=\"margin: 0 0 10px;\">Quick search settings.</h3><p>You can set up to 10 search criterias.</p>", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("Show quick search", THEME_NAME), "desc" => __("If you don't want a quick search box to stay over your beautiful revolution slider, you can turn it of.", THEME_NAME), "id" => "show_quick_search", "std" => 'yes', 'options' => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)), "type" => "radio");
     $of_options[] = array("name" => __('Which components to use for Quick search', THEME_NAME), "desc" => __("Drag and drop components from the left column to the right one to set the kind of fields that will appear on the quick search form. You can also sort their order.", THEME_NAME), "id" => "quick_search_items", "std" => '', 'options' => array('type' => __('Type', THEME_NAME), 'beds' => __('Beds', THEME_NAME), 'bedrooms' => __('Bedrooms', THEME_NAME), 'bathrooms' => __('Bathrooms', THEME_NAME), 'min_price' => __('Min price', THEME_NAME), 'max_price' => __('Max price', THEME_NAME), 'city' => __('City', THEME_NAME), 'feature' => __('Feature', THEME_NAME), 'for_sale_rent' => __('For sale or rent', THEME_NAME), 'pets_allowed' => __('Pets allowed', THEME_NAME)), "type" => "selectable");
     $of_options[] = array("name" => __('Which components to use for Properties filter', THEME_NAME), "desc" => __("Drag and drop components from the left column to the right one to set the kind of fields that will appear on the properties filter widget. You can also sort their order.", THEME_NAME), "id" => "properties_filter_items", "std" => '', 'options' => array('beds' => __('Beds', THEME_NAME), 'city' => __('City', THEME_NAME), 'for_sale_rent' => __('For sale or rent', THEME_NAME), 'property_status' => __('Property status', THEME_NAME), 'type' => __('Type', THEME_NAME), 'location' => __('Location', THEME_NAME), 'distance' => __('Distance', THEME_NAME), 'keywords' => __('Keywords', THEME_NAME), 'price' => __('Price', THEME_NAME), 'bedrooms' => __('Bedrooms', THEME_NAME), 'bathrooms' => __('Bathrooms', THEME_NAME), 'sq_feet' => __('Sq. Feet', THEME_NAME), 'pets_allowed' => __('Pets allowed', THEME_NAME), 'feature' => __('Feature', THEME_NAME), 'year_built' => __('Year built', THEME_NAME)), "type" => "selectable");
     // Footer settings
     $of_options[] = array("name" => __("Footer", THEME_NAME), "type" => "heading");
     $of_options[] = array("name" => __("Enable footer", THEME_NAME), "desc" => __("If you don't need the footer section of the theme, you can hide it from here.", THEME_NAME), "id" => "enable_footer", "std" => "yes", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     $of_options[] = array("name" => __("RSS Icon", THEME_NAME), "desc" => __("Show/hide the rss icon and its functionality. This does not turns off Wordpress RSS sharing. Just removes the icon from footer.", THEME_NAME), "id" => "footer_hide_rss", "std" => "no", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     $of_options[] = array("name" => __("Copyright text", THEME_NAME), "desc" => __("The copyright text to appear at the very bottom of the page in the footer section.", THEME_NAME), "id" => "footer_copyright", "std" => "", "type" => "textarea");
     $of_options[] = array("name" => __("Free HTML", THEME_NAME), "desc" => __("Input custom text, html, css or JavaScript. This code will be placed between the main columns and the copyright text.", THEME_NAME), "id" => "footer_free_html", "std" => "", "type" => "textarea");
 }
Example #16
0
 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     global $options;
     $body = $options['body_font'];
     $navigation = $options['navigation_font'];
     $navigation_dropdown = $options['navigation_dropdown_font'];
     $nectar_slider_heading = $options['nectar_slider_heading_font'];
     $home_slider_caption = $options['home_slider_caption_font'];
     $testimonial = $options['testimonial_font'];
     $page_heading = $options['page_heading_font'];
     $page_heading_subtitle = $options['page_heading_subtitle_font'];
     $h1 = $options['h1_font'];
     $h2 = $options['h2_font'];
     $h3 = $options['h3_font'];
     $h4 = $options['h4_font'];
     $h5 = $options['h5_font'];
     $italic = $options['i_font'];
     $sidebar_carousel_footer_header = $options['sidebar_footer_h_font'];
     $team_member_names = $options['team_member_h_font'];
     //$google_mixed = of_get_option('google_mixed', false);
     //$google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
     // Get the font face for each option and put it in an array
     $selected_fonts = array($body, $navigation, $navigation_dropdown, $nectar_slider_heading, $home_slider_caption, $testimonial, $page_heading, $page_heading_subtitle, $h1, $h2, $h3, $h4, $h5, $italic, $sidebar_carousel_footer_header, $team_member_names);
     $locations = array('body_font', 'navigation_font', 'navigation_dropdown_font', 'nectar_slider_heading_font', 'home_slider_caption_font', 'testimonial_font', 'page_heading_font', 'page_heading_subtitle_font', 'h1_font', 'h2_font', 'h3_font', 'h4_font', 'h5_font', 'i_font', 'sidebar_footer_h_font', 'team_member_h_font');
     // Remove any duplicates in the list
     //$selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     $count = 0;
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font, $locations[$count]);
         }
         //custom included fonts
         if ($font == 'Lovelo, sans-serif') {
             if (!function_exists('nectar_lovelo_font')) {
                 function nectar_lovelo_font()
                 {
                     echo "\n\t\t\t\t\t\t<!-- A font fabric font - http://fontfabric.com/lovelo-font/ -->\n\t\t\t\t\t\t<style> @font-face { font-family: 'Lovelo'; src: url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.eot'); src: url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.eot?#iefix') format('embedded-opentype'), url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.woff') format('woff'),  url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.ttf') format('truetype'), url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.svg#loveloblack') format('svg'); font-weight: normal; font-style: normal; } </style>";
                 }
             }
             add_action('wp_head', 'nectar_lovelo_font');
         }
         $count++;
     }
 }
Example #17
0
 function optionsframework_options()
 {
     // Fonts
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     $typography_mixed_fonts["'Roboto', sans-serif"] = 'Roboto *';
     asort($typography_mixed_fonts);
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options['general'] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("id" => "body_background", "std" => $background_defaults);
     $options['main_layout'] = array("id" => "main_layout", "std" => "fullwidth");
     $options['main_background'] = array("id" => "main_background", "std" => "#ffffff");
     $header_bg_defaults = array('color' => '#2a4055', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['header_background'] = array("id" => "header_background", "std" => $header_bg_defaults);
     $options['links_color'] = array("id" => "links_color", "std" => "#2a4055");
     $options['links_color_hover'] = array("id" => "links_color_hover", "std" => "#334d67");
     $options['google_mixed_3'] = array('id' => 'google_mixed_3', 'std' => array('size' => '16px', 'lineheight' => '26px', 'face' => 'Roboto Condensed', 'style' => 'normal', 'character' => 'latin', 'color' => '#4c4c4c'));
     $options['h1_heading'] = array('id' => 'h1_heading', 'std' => array('size' => '60px', 'lineheight' => '60px', 'face' => 'Pacifico', 'style' => 'normal', 'character' => 'latin', 'color' => '#222222'));
     $options['h2_heading'] = array('id' => 'h2_heading', 'std' => array('size' => '22px', 'lineheight' => '26px', 'face' => 'Pacifico', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h3_heading'] = array('id' => 'h3_heading', 'std' => array('size' => '18px', 'lineheight' => '22px', 'face' => 'Pacifico', 'style' => 'normal', 'character' => 'latin', 'color' => '#222222'));
     $options['h4_heading'] = array('id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Roboto Condensed', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h5_heading'] = array('id' => 'h5_heading', 'std' => array('size' => '18px', 'lineheight' => '18px', 'face' => 'Roboto Condensed', 'style' => 'bold', 'character' => 'latin', 'color' => '#334d67'));
     $options['h6_heading'] = array('id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['g_search_box_id'] = array("id" => "g_search_box_id", "std" => "no");
     $options['g_breadcrumbs_id'] = array("id" => "g_breadcrumbs_id", "std" => "no");
     $options['custom_css'] = array("id" => "custom_css", "std" => "");
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options["logo_favicon"] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     $options['logo_type'] = array("id" => "logo_type", "std" => "image_logo");
     $options['logo_typography'] = array('id' => 'logo_typography', 'std' => array('size' => '40px', 'lineheight' => '48px', 'face' => 'Pacifico', 'style' => 'normal', 'character' => 'latin', 'color' => '#049CDB'));
     $options['logo_url'] = array("id" => "logo_url", "std" => CHILD_URL . "/images/logo.png");
     $options['favicon'] = array("id" => "favicon", "std" => CHILD_URL . "/favicon.ico");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('id' => 'menu_typography', 'std' => array('size' => '18px', 'lineheight' => '18px', 'face' => 'Roboto Condensed', 'style' => 'normal', 'character' => 'latin', 'color' => '#ffffff'));
     $options['sf_delay'] = array("id" => "sf_delay", "std" => "1000");
     $options['sf_f_animation'] = array("id" => "sf_f_animation", "std" => "show");
     $options['sf_sl_animation'] = array("id" => "sf_sl_animation", "std" => "show");
     $options['sf_speed'] = array("id" => "sf_speed", "std" => "normal");
     $options['sf_arrows'] = array("id" => "sf_arrows", "std" => "false");
     $options['mobile_menu_label'] = array("id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'));
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['sl_type'] = array("id" => "slider_type", "std" => "none_slider");
     // ---------------------------------------------------------
     // Camera Slider
     // ---------------------------------------------------------
     $options['sl_effect'] = array("id" => "sl_effect", "std" => "simpleFade");
     $options['sl_columns'] = array("id" => "sl_columns", "std" => "12");
     $options['sl_rows'] = array("id" => "sl_rows", "std" => "8");
     $options['sl_banner'] = array("id" => "sl_banner", "std" => "fadeIn");
     $options['sl_pausetime'] = array("id" => "sl_pausetime", "std" => "7000");
     $options['sl_animation_speed'] = array("id" => "sl_animation_speed", "std" => "1500");
     $options['sl_slideshow'] = array("id" => "sl_slideshow", "std" => "true");
     $options['sl_thumbnails'] = array("id" => "sl_thumbnails", "std" => "true");
     // set "disabled" => "true" when only text in Slider posts
     $options['sl_control_nav'] = array("id" => "sl_control_nav", "std" => "true");
     $options['sl_dir_nav'] = array("id" => "sl_dir_nav", "std" => "true");
     $options['sl_dir_nav_hide'] = array("id" => "sl_dir_nav_hide", "std" => "false");
     $options['sl_play_pause_button'] = array("id" => "sl_play_pause_button", "std" => "true");
     $options['sl_pause_on_hover'] = array("id" => "sl_pause_on_hover", "std" => "true");
     $options['sl_loader'] = array("id" => "sl_loader", "std" => "no");
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $multicheck_defaults = array('43' => 0, '49' => 0, '50' => 0, '51' => 0, '52' => 0);
     $options['acc_show_post'] = array("id" => "acc_show_post", "std" => $multicheck_defaults);
     $options['acc_slideshow'] = array("id" => "acc_slideshow", "std" => "false");
     $options['acc_hover_pause'] = array("id" => "acc_hover_pause", "std" => "true");
     $options['acc_pausetime'] = array("id" => "acc_pausetime", "std" => "6000");
     $options['acc_animation_speed'] = array("id" => "acc_animation_speed", "std" => "600");
     $options['acc_easing'] = array("id" => "acc_easing", "std" => "easeOutCubic");
     $options['acc_trigger'] = array("id" => "acc_trigger", "std" => "mouseover");
     $options['acc_starting_slide'] = array("id" => "acc_starting_slide", "std" => "0");
     // ---------------------------------------------------------
     // Blog
     // --------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("id" => "blog_text", "std" => theme_locals('blog'));
     $options['blog_related'] = array("id" => "blog_related", "std" => theme_locals('posts_std'));
     $options['blog_sidebar_pos'] = array("id" => "blog_sidebar_pos", "std" => "right");
     $options['post_image_size'] = array("id" => "post_image_size", "std" => "large");
     $options['single_image_size'] = array("id" => "single_image_size", "std" => "large");
     $options['post_meta'] = array("id" => "post_meta", "std" => "true");
     $options['post_meta_display'] = array("id" => "post_meta_display", "std" => "only_post");
     $options['post_excerpt'] = array("id" => "post_excerpt", "std" => "true");
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("id" => "folio_filter", "std" => "cat");
     $options['folio_title'] = array("id" => "folio_title", "std" => "yes");
     $options['folio_excerpt'] = array("id" => "folio_excerpt", "std" => "yes");
     $options['folio_excerpt_count'] = array("id" => "folio_excerpt_count", "std" => "20");
     $options['folio_btn'] = array("id" => "folio_btn", "std" => "yes");
     $options['folio_button_text'] = array("id" => "folio_button_text", "std" => "More");
     $options['folio_meta'] = array("id" => "folio_meta", "std" => "yes");
     $options['layout_mode'] = array("id" => "layout_mode", "std" => "fitRows");
     $options['items_count2'] = array("id" => "items_count2", "std" => "8");
     $options['items_count3'] = array("id" => "items_count3", "std" => "9");
     $options['items_count4'] = array("id" => "items_count4", "std" => "12");
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("id" => "footer_text", "std" => "");
     $options['ga_code'] = array("id" => "ga_code", "std" => "");
     $options['feed_url'] = array("id" => "feed_url", "std" => "");
     $options['footer_menu'] = array("id" => "footer_menu", "std" => "false");
     $options['footer_menu_typography'] = array('id' => 'footer_menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#0088CC'));
     // ---------------------------------------------------------
     // Parallax Slider
     // ---------------------------------------------------------
     $options['px_slider'] = array("name" => __('Parallax Slider', CURRENT_THEME), "type" => "heading");
     $options['px_slider_visibility'] = array("name" => __('Display Parallax Slider?', CURRENT_THEME), "desc" => __('Display Parallax Slider?', CURRENT_THEME), "id" => "px_slider_visibility", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_parallax_effect'] = array("name" => __('Parallax effect', CURRENT_THEME), "desc" => __('Select parallax effect.', CURRENT_THEME), "id" => "px_slider_parallax_effect", "type" => "select", "std" => "parallax_effect_normal", "options" => array("parallax_effect_none" => __('None', CURRENT_THEME), "parallax_effect_low" => __('Low', CURRENT_THEME), "parallax_effect_normal" => __('Normal', CURRENT_THEME), "parallax_effect_high" => __('High', CURRENT_THEME), "parallax_effect_fixed" => __('Fixed', CURRENT_THEME)));
     $options['px_slider_invert'] = array("name" => __('Invert Parallax Slider', CURRENT_THEME), "desc" => __('Invert Parallax Slider', CURRENT_THEME), "id" => "px_slider_invert", "type" => "radio", "std" => "false", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_effect'] = array("name" => __('Sliding effect', CURRENT_THEME), "desc" => __('Select your animation type.', CURRENT_THEME), "id" => "px_slider_effect", "type" => "select", "std" => "simple-fade-eff", "options" => array("simple-fade-eff" => __('Simple Fade', CURRENT_THEME), "zoom-fade-eff" => __('Zoom Fade', CURRENT_THEME), "slide-top-eff" => __('Slide Top', CURRENT_THEME)));
     $options['px_slider_auto'] = array("name" => __('Slideshow', CURRENT_THEME), "desc" => __('Animate slider automatically?', CURRENT_THEME), "id" => "px_slider_auto", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_pause'] = array("name" => __('Pause time', CURRENT_THEME), "desc" => __('Pause time (ms).', CURRENT_THEME), "id" => "px_slider_pause", "type" => "text", "std" => "10000");
     $options['px_slider_speed'] = array("name" => __('Animation speed', CURRENT_THEME), "desc" => __('Animation speed (ms).', CURRENT_THEME), "id" => "px_slider_speed", "type" => "text", "std" => "1500");
     $options['px_slider_scrolling_description'] = array("name" => __('Scrolling description', CURRENT_THEME), "desc" => __('Scrolling description', CURRENT_THEME), "id" => "px_slider_scrolling_description", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     $options['px_slider_pags'] = array("name" => __('Pagination', CURRENT_THEME), "desc" => __('Display pagination?', CURRENT_THEME), "id" => "px_slider_pags", "type" => "radio", "std" => "buttons_pagination", "options" => array("buttons_pagination" => __('Buttons Pagination', CURRENT_THEME), "images_pagination" => __('Images Pagination', CURRENT_THEME), "none_pagination" => theme_locals("no")));
     $options['px_slider_navs'] = array("name" => __('Next & Prev navigation', CURRENT_THEME), "desc" => __('Display next & prev navigation?', CURRENT_THEME), "id" => "px_slider_navs", "type" => "radio", "std" => "true", "options" => array("true" => theme_locals("yes"), "false" => theme_locals("no")));
     return $options;
 }
 function options_typography_google_fonts()
 {
     global $font_array, $char_array;
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     $all_character_sets = array_keys(of_recognized_font_characters());
     // Define all the options that possibly have a unique Google font
     $h1_heading = of_get_option('h1_heading', 'Arial');
     $h2_heading = of_get_option('h2_heading', 'Arial');
     $h3_heading = of_get_option('h3_heading', 'Arial');
     $h4_heading = of_get_option('h4_heading', 'Arial');
     $h5_heading = of_get_option('h5_heading', 'Arial');
     $h6_heading = of_get_option('h6_heading', 'Arial');
     $google_mixed_3 = of_get_option('google_mixed_3', 'Rokkitt, serif');
     if (of_get_option('logo_typography')) {
         $logo_typography = of_get_option('logo_typography');
     }
     if (of_get_option('menu_typography')) {
         $menu_typography = of_get_option('menu_typography', 'Arial');
     }
     if (of_get_option('footer_menu_typography')) {
         $footer_menu_typography = of_get_option('footer_menu_typography', 'Arial');
     }
     // Get the font face for each option and put it in an array
     if (isset($h1_heading) && is_array($h1_heading)) {
         $selected_fonts['h1_heading'] = $h1_heading['face'];
     }
     if (isset($h2_heading) && is_array($h2_heading)) {
         $selected_fonts['h2_heading'] = $h2_heading['face'];
     }
     if (isset($h3_heading) && is_array($h3_heading)) {
         $selected_fonts['h3_heading'] = $h3_heading['face'];
     }
     if (isset($h4_heading) && is_array($h4_heading)) {
         $selected_fonts['h4_heading'] = $h4_heading['face'];
     }
     if (isset($h5_heading) && is_array($h5_heading)) {
         $selected_fonts['h5_heading'] = $h5_heading['face'];
     }
     if (isset($h6_heading) && is_array($h6_heading)) {
         $selected_fonts['h6_heading'] = $h6_heading['face'];
     }
     if (isset($google_mixed_3) && is_array($google_mixed_3)) {
         $selected_fonts['google_mixed_3'] = $google_mixed_3['face'];
     }
     if (isset($logo_typography) && is_array($logo_typography)) {
         $selected_fonts['logo_typography'] = $logo_typography['face'];
     }
     if (isset($menu_typography) && is_array($menu_typography)) {
         $selected_fonts['menu_typography'] = $menu_typography['face'];
     }
     if (isset($footer_menu_typography) && is_array($footer_menu_typography)) {
         $selected_fonts['footer_menu_typography'] = $footer_menu_typography['face'];
     }
     if (isset($h1_heading) && is_array($h1_heading)) {
         $selected_character['h1_heading'] = $h1_heading['character'];
     }
     if (isset($h2_heading) && is_array($h2_heading)) {
         $selected_character['h2_heading'] = $h2_heading['character'];
     }
     if (isset($h3_heading) && is_array($h3_heading)) {
         $selected_character['h3_heading'] = $h3_heading['character'];
     }
     if (isset($h4_heading) && is_array($h4_heading)) {
         $selected_character['h4_heading'] = $h4_heading['character'];
     }
     if (isset($h5_heading) && is_array($h5_heading)) {
         $selected_character['h5_heading'] = $h5_heading['character'];
     }
     if (isset($h6_heading) && is_array($h6_heading)) {
         $selected_character['h6_heading'] = $h6_heading['character'];
     }
     if (isset($google_mixed_3) && is_array($google_mixed_3)) {
         $selected_character['google_mixed_3'] = $google_mixed_3['character'];
     }
     if (isset($logo_typography) && is_array($logo_typography)) {
         $selected_character['logo_typography'] = $logo_typography['character'];
     }
     if (isset($menu_typography) && is_array($menu_typography)) {
         $selected_character['menu_typography'] = $menu_typography['character'];
     }
     if (isset($footer_menu_typography) && is_array($footer_menu_typography)) {
         $selected_character['footer_menu_typography'] = $footer_menu_typography['character'];
     }
     if (isset($selected_fonts) && !empty($selected_fonts)) {
         // Remove any duplicates in the list
         $selected_fonts = array_unique($selected_fonts);
         // Check each of the unique fonts against the defined Google fonts
         // If it is a Google font, go ahead and call the function to enqueue it
         foreach ($selected_fonts as $key => $font) {
             if (in_array($font, $all_google_fonts)) {
                 options_typography_enqueue_google_font($key, $font);
             }
         }
     }
     // $selected_character = array_unique($selected_character);
     if (isset($selected_character) && !empty($selected_character)) {
         foreach ($selected_character as $key => $character) {
             if (in_array($character, $all_character_sets)) {
                 options_typography_enqueue_google_character_set($key, $character);
             }
         }
     }
     if (isset($font_array)) {
         foreach ($font_array as $key => $value) {
             switch ($font_array[$key]) {
                 case 'Open+Sans+Condensed':
                     $font_array[$key] = $font_array[$key] . ':300';
                     break;
                 default:
                     //
                     break;
             }
             options_typography_enqueue_google_fonts($font_array[$key], $char_array[$key]);
         }
     }
 }
Example #19
0
 function optionsframework_options()
 {
     // Logo type
     $logo_type = array("image_logo" => __("Image Logo", 'babysitter'), "text_logo" => __("Text Logo", 'babysitter'));
     // Body Background Defaults
     $bg_body_defaults = array('color' => '#f1f7f9', 'image' => get_template_directory_uri() . '/images/pattern.gif', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     // Fonts
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     // Body Typography
     $typography_body = array('size' => '12px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'color' => '#919090');
     // Typography Options
     $typography_opt = array('faces' => $typography_mixed_fonts);
     // Menu Typography
     $typography_menu = array('size' => '18px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#7dbad4');
     // Typography Options
     $typography_menu_opt = array('faces' => $typography_mixed_fonts);
     // Headings Typography
     $typography_headings = array('size' => '32px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0');
     // Headings Typography Options
     $typography_headings_opt = array('faces' => $typography_mixed_fonts);
     // Editor Settings
     $wp_editor_settings = array('wpautop' => true, 'textarea_rows' => 6, 'tinymce' => array('plugins' => 'wordpress'));
     // 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 tags into an array
     $options_tags = array();
     $options_tags_obj = get_tags();
     foreach ($options_tags_obj as $tag) {
         $options_tags[$tag->term_id] = $tag->name;
     }
     // Revolution Slider aliases
     if (class_exists('RevSlider')) {
         $theslider = new RevSlider();
         $arrSliders = $theslider->getArrSliders();
         $arrA = array();
         $arrT = array();
         foreach ($arrSliders as $slider) {
             $arrA[] = $slider->getAlias();
             $arrT[] = $slider->getTitle();
         }
         if ($arrA && $arrT) {
             $all_rev_sliders = array_combine($arrA, $arrT);
         } else {
             $all_rev_sliders[0] = 'No Sliders Found';
         }
     }
     // Pull all the pages into an array
     $options_pages = array();
     $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
     $options_pages[''] = 'Select a page:';
     foreach ($options_pages_obj as $page) {
         $options_pages[$page->ID] = $page->post_title;
     }
     // If using image radio buttons, define a directory path
     $imagepath = get_template_directory_uri() . '/admin/images/';
     $options = array();
     $options[] = array("name" => "General", "type" => "heading");
     $options['logo_type'] = array("name" => __("What kind of logo?", 'babysitter'), "desc" => __("If you select '<em>Image Logo</em>' you can put in the image url in the next option, and if you select '<em>Text Logo</em>' your Site Title will show instead.", 'babysitter'), "id" => "logo_type", "std" => "image_logo", "type" => "radio", "options" => $logo_type);
     $options['logo_url'] = array("name" => __("Logo Image", 'babysitter'), "desc" => __("Upload a custom logo for your Site.", 'babysitter'), "id" => "logo_url", "std" => get_template_directory_uri() . "/images/logo.png", "type" => "upload");
     $options['favicon'] = array("name" => __("Favicon", 'babysitter'), "desc" => __("Upload a custom favicon for your Site. <i><strong>Format</strong>: ico</i> <i><strong>Size</strong>: 16x16</i>", 'babysitter'), "id" => "favicon", "std" => get_template_directory_uri() . "/images/favicon.ico", "type" => "upload");
     $options['favicon_iphone'] = array("name" => __("iPhone Favicon", 'babysitter'), "desc" => __("Upload a custom iPhone favicon for your Site. <i><strong>Format</strong>: png</i> <i><strong>Size</strong>: 57x57</i> <i>For iPhone 2G/3G/3GS, 2011 iPod Touch and older Android devices </i>", 'babysitter'), "id" => "favicon_iphone", "std" => get_template_directory_uri() . "/images/apple-touch-icon.png", "type" => "upload");
     $options['favicon_ipad'] = array("name" => __("iPad Favicon", 'babysitter'), "desc" => __("Upload a custom iPad favicon for your Site. <i><strong>Format</strong>: png</i> <i><strong>Size</strong>: 72x72</i> <i>For 1st generation iPad, iPad 2 and iPad mini.</i>", 'babysitter'), "id" => "favicon_ipad", "std" => get_template_directory_uri() . "/images/apple-touch-icon-72x72.png", "type" => "upload");
     $options['favicon_iphone_retina'] = array("name" => __("iPhone Retina Favicon", 'babysitter'), "desc" => __("Upload a custom favicon for iPhone/Touch Retina based devices. <i><strong>Format</strong>: png</i> <i><strong>Size</strong>: 114x114</i> <i>For iPhone 4, 4S, 5 and 2012 iPod Touch.</i>", 'babysitter'), "id" => "favicon_iphone_retina", "std" => get_template_directory_uri() . "/images/apple-touch-icon-114x114.png", "type" => "upload");
     $options['favicon_ipad_new'] = array("name" => __("iPad 3+ Favicon", 'babysitter'), "desc" => __("Upload a custom favicon for iPad 3rd and 4th generation. <i><strong>Format</strong>: png</i> <i><strong>Size</strong>: 144x144</i> <i>For iPad 3rd and 4th generation.</i>", 'babysitter'), "id" => "favicon_ipad_new", "std" => get_template_directory_uri() . "/images/apple-touch-icon-144x144.png", "type" => "upload");
     $options['header_info'] = array('name' => __('Header Info', 'babysitter'), 'desc' => __('You can put some text here (eg phone number) or leave empty.', 'babysitter'), 'id' => 'header_info', 'std' => 'Call Us: +1 800 300 4000', 'class' => 'tiny', 'type' => 'textarea');
     $options['responsive_design'] = array("name" => __("Responsive Design", 'babysitter'), "desc" => __("Use the responsive design features?", 'babysitter'), "id" => "responsive_design", "std" => "yes", "type" => "select", "class" => "mini", "options" => array('yes' => 'Yes', 'no' => 'No'));
     $options['layout'] = array("name" => __("Layout", 'babysitter'), "desc" => __("Choose between fullwidth and boxed layouts.", 'babysitter'), "id" => "layout", "std" => "boxed", "type" => "select", "class" => "mini", "options" => array('full_width' => 'Fullwidth', 'boxed' => 'Boxed'));
     $options['top_bar'] = array("name" => __("Show Top Bar?", 'babysitter'), "desc" => __("Do you want to show Top Bar in the Header?", 'babysitter'), "id" => "top_bar", "std" => "yes", "type" => "select", "class" => "mini", "options" => array('yes' => 'Yes', 'no' => 'No'));
     $options[] = array("name" => __("Show footer widgets?", 'babysitter'), "desc" => __("Do you want to show footer widgets?", 'babysitter'), "id" => "footer_widgets", "std" => "yes", "type" => "select", "class" => "mini", "options" => array('yes' => 'Yes', 'no' => 'No'));
     $options['copyright'] = array("name" => __("Copyright", 'babysitter'), "desc" => __("Enter text used in the left side of the footer. HTML tags are allowed.", 'babysitter'), "id" => "copyright", "std" => "&copy; 2013 babysitter Theme | All rights reserved", "type" => "textarea");
     $options[] = array("name" => __("Google Analytics Code", 'babysitter'), "desc" => __("You can paste your Google Analytics or other tracking code in this box. This will be automatically added to the footer. <em>Paste your code without &lt;script&gt; tag</em>", 'babysitter'), "id" => "ga_code", "std" => "", "type" => "textarea");
     $options[] = array("name" => __("Styling", 'babysitter'), "type" => "heading");
     $options['color_accent'] = array('name' => __('Color 1', 'babysitter'), 'desc' => __('Primary Color.', 'babysitter'), 'id' => 'color_accent', 'std' => '#fc8a58', 'type' => 'color');
     $options['color_secondary'] = array('name' => __('Color 2', 'babysitter'), 'desc' => __('Secondary Color.', 'babysitter'), 'id' => 'color_secondary', 'std' => '#c4d208', 'type' => 'color');
     $options['color_tertiary'] = array('name' => __('Color 3', 'babysitter'), 'desc' => __('Tertiary Color.', 'babysitter'), 'id' => 'color_tertiary', 'std' => '#7fdbfd', 'type' => 'color');
     $options['color_quaternary'] = array('name' => __('Color 4', 'babysitter'), 'desc' => __('Quaternary Color.', 'babysitter'), 'id' => 'color_quaternary', 'std' => '#528cba', 'type' => 'color');
     $options['color_quinary'] = array('name' => __('Color 5', 'babysitter'), 'desc' => __('Quinary Color.', 'babysitter'), 'id' => 'color_quinary', 'std' => '#f0f7fa', 'type' => 'color');
     $options['color_sextuple'] = array('name' => __('Color 6', 'babysitter'), 'desc' => __('Sextuple Color.', 'babysitter'), 'id' => 'color_sextuple', 'std' => '#70b3d0', 'type' => 'color');
     $options['bg_body'] = array('name' => __('Body Background', 'babysitter'), 'desc' => __('Change the body background.', 'babysitter'), 'id' => 'bg_body', 'std' => $bg_body_defaults, 'type' => 'background');
     $options['bg_content'] = array('name' => __('Content Background Color', 'babysitter'), 'desc' => __('Background color for content box.', 'babysitter'), 'id' => 'bg_content', 'std' => '#ffffff', 'type' => 'color');
     $options[] = array("name" => __("Custom CSS", 'babysitter'), "desc" => __("Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a {color:red}", 'babysitter'), "id" => "custom_css", "std" => "", "type" => "textarea");
     $options[] = array("name" => __("Typography", 'babysitter'), "type" => "heading");
     $options['typography_body'] = array('name' => __('Body', 'babysitter'), 'desc' => __('Body typography.', 'babysitter'), 'id' => "typography_body", 'std' => $typography_body, 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_menu'] = array('name' => __('Navigation', 'babysitter'), 'desc' => __('Customize typography for main navigation.', 'babysitter'), 'id' => "typography_menu", 'std' => $typography_menu, 'type' => 'typography', 'options' => $typography_menu_opt);
     $options['typography_menu_text_hover'] = array('name' => __('Navigation Text Color on Hover', 'babysitter'), 'desc' => __('Choose navigation text color on hover.', 'babysitter'), 'id' => 'typography_menu_text_hover', 'std' => '#fff', 'type' => 'color');
     $options['typography_submenu_text'] = array('name' => __('Sub Navigation Text Color', 'babysitter'), 'desc' => __('Choose subnavigation text color.', 'babysitter'), 'id' => 'typography_submenu_text', 'std' => '#fff', 'type' => 'color');
     $options['typography_submenu_text_hover'] = array('name' => __('Sub Navigation Text Color on Hover', 'babysitter'), 'desc' => __('Choose subnavigation text color on hover.', 'babysitter'), 'id' => 'typography_submenu_text_hover', 'std' => '#fff', 'type' => 'color');
     $options['typography_submenu_bg_hover'] = array('name' => __('Sub Navigation background on Hover', 'babysitter'), 'desc' => __('Choose subnavigation background color on hover.', 'babysitter'), 'id' => 'typography_submenu_bg_hover', 'std' => '#70b3d0', 'type' => 'color');
     $options['typography_h1'] = array('name' => __('H1 Heading', 'babysitter'), 'id' => "typography_h1", 'std' => array('size' => '32px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'), 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_h2'] = array('name' => __('H2 Heading', 'babysitter'), 'id' => "typography_h2", 'std' => array('size' => '24px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'), 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_h3'] = array('name' => __('H3 Heading', 'babysitter'), 'id' => "typography_h3", 'std' => array('size' => '18px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'), 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_h4'] = array('name' => __('H4 Heading', 'babysitter'), 'id' => "typography_h4", 'std' => array('size' => '16px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'), 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_h5'] = array('name' => __('H5 Heading', 'babysitter'), 'id' => "typography_h5", 'std' => array('size' => '14px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'), 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_h6'] = array('name' => __('H6 Heading', 'babysitter'), 'id' => "typography_h6", 'std' => array('size' => '12px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'), 'type' => 'typography', 'options' => $typography_opt);
     $options['typography_heading'] = array('name' => __('Page Title', 'babysitter'), 'desc' => __("Select a custom font to be used for Page Title.", 'babysitter'), 'id' => "typography_heading", 'std' => $typography_headings, 'type' => 'typography', 'options' => $typography_headings_opt);
     $options[] = array("name" => "Social", "type" => "heading");
     $options['social_twitter'] = array('name' => __('Twitter Link', 'babysitter'), 'desc' => __('Put link to your Twitter account.', 'babysitter'), 'id' => 'social_twitter', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_facebook'] = array('name' => __('Facebook Link', 'babysitter'), 'desc' => __('Put link to your Facebook account.', 'babysitter'), 'id' => 'social_facebook', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_google'] = array('name' => __('Google+ Link', 'babysitter'), 'desc' => __('Put link to your Google+ account.', 'babysitter'), 'id' => 'social_google', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_dribbble'] = array('name' => __('Dribbble Link', 'babysitter'), 'desc' => __('Put link to your Dribbble account.', 'babysitter'), 'id' => 'social_dribbble', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_youtube'] = array('name' => __('YouTube Link', 'babysitter'), 'desc' => __('Put link to your YouTube account.', 'babysitter'), 'id' => 'social_youtube', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_pinterest'] = array('name' => __('Pinterest Link', 'babysitter'), 'desc' => __('Put link to your Pinterest account.', 'babysitter'), 'id' => 'social_pinterest', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_instagram'] = array('name' => __('Instagram Link', 'babysitter'), 'desc' => __('Put link to your Instagram account.', 'babysitter'), 'id' => 'social_instagram', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_linkedin'] = array('name' => __('LinkedIn Link', 'babysitter'), 'desc' => __('Put link to your LinkedIn account.', 'babysitter'), 'id' => 'social_linkedin', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_yelp'] = array('name' => __('Yelp Link', 'babysitter'), 'desc' => __('Put link to your Yelp account.', 'babysitter'), 'id' => 'social_yelp', 'std' => '', 'class' => 'tiny', 'type' => 'text');
     $options['social_rss'] = array('name' => __('RSS Link', 'babysitter'), 'desc' => __('Put link to your rss feed.', 'babysitter'), 'id' => 'social_rss', 'std' => '#', 'class' => 'tiny', 'type' => 'text');
     $options['social_email'] = array('name' => __('Email Address', 'babysitter'), 'desc' => __('Put your email address.', 'babysitter'), 'id' => 'social_email', 'std' => '', 'class' => 'tiny', 'type' => 'text');
     $options[] = array("name" => __("Slider", 'babysitter'), "type" => "heading");
     $options['flex_title'] = array("name" => __("Display Box Title?", 'babysitter'), "desc" => __("Do you want to display box title on slide?", 'babysitter'), "id" => "flex_title", "std" => 'true', "type" => "radio", "options" => array('true' => 'Yes', 'false' => 'No'));
     $options['flex_effect'] = array("name" => __("Slider Effect", 'babysitter'), "desc" => __("Select your animation type.", 'babysitter'), "id" => "flex_effect", "std" => 'fade', "type" => "select", "options" => array('fade' => 'fade', 'slide' => 'slide'));
     $options['flex_startat'] = array("name" => __("Start at", 'babysitter'), "desc" => __("The slide that the slider should start on. Array notation (0 = first slide).", 'babysitter'), "id" => "flex_startat", "std" => "0", "type" => "text", "class" => "tiny");
     $options['flex_autoplay'] = array("name" => __("Autoplay", 'babysitter'), "desc" => __("Auto play the slider or not.", 'babysitter'), "id" => "flex_autoplay", "std" => "true", "type" => "radio", "options" => array('false' => 'No', 'true' => 'Yes'));
     $options['flex_slideshowspeed'] = array("name" => __("Slideshow Speed", 'babysitter'), "desc" => __("Set the speed of the slideshow cycling, in milliseconds", 'babysitter'), "id" => "flex_slideshowspeed", "std" => "7000", "type" => "text", "class" => "tiny");
     $options['flex_controls'] = array("name" => __("Controls", 'babysitter'), "desc" => __("Display slide controls (1,2,3 etc.)?", 'babysitter'), "id" => "flex_controls", "std" => "true", "type" => "radio", "options" => array('false' => 'No', 'true' => 'Yes'));
     $options['flex_directionnav'] = array("name" => __("Previous/next", 'babysitter'), "desc" => __("Create navigation for previous/next navigation?", 'babysitter'), "id" => "flex_directionnav", "std" => "true", "type" => "radio", "options" => array('false' => 'No', 'true' => 'Yes'));
     $options['flex_randomize'] = array("name" => __("Randomize", 'babysitter'), "desc" => __("Randomize slide order.", 'babysitter'), "id" => "flex_randomize", "std" => "false", "type" => "radio", "class" => 'slider_flexslider', "options" => array('false' => 'No', 'true' => 'Yes'));
     $options[] = array("name" => __("Blog", 'babysitter'), "type" => "heading");
     $options[] = array("name" => __("Blog Title", 'babysitter'), "desc" => __("Enter Your Blog Title used on Blog page.", 'babysitter'), "id" => "blog_text", "std" => "Blog", "type" => "text");
     $options['blog_sidebar'] = array("name" => __("Sidebar position", 'babysitter'), "desc" => __("Choose sidebar position.", 'babysitter'), "id" => "blog_sidebar", "std" => "right", "type" => "images", "options" => array('left' => $imagepath . '2cl.png', 'right' => $imagepath . '2cr.png', 'fullblog' => $imagepath . '1col.png'));
     $options['post_meta'] = array("name" => __("Post Meta Box", 'babysitter'), "desc" => __("The metabox is displayed by default. <em>Un-check this box to disable this functionality and hide metaboxes.</em>", 'babysitter'), "id" => "post_meta", 'std' => '1', 'type' => 'checkbox');
     $options[] = array("name" => __("Contacts", 'babysitter'), "type" => "heading");
     $options[] = array("name" => __("Show Google map?", 'babysitter'), "desc" => __("Do you want to show google map?", 'babysitter'), "id" => "gmap_show", "std" => "yes", "type" => "select", "class" => "mini", "options" => array('yes' => 'Yes', 'no' => 'No'));
     $options['gmap_coord'] = array("name" => __("Google Map", 'babysitter'), "desc" => __("Google map coordinates.", 'babysitter'), "id" => "gmap_coord", "std" => "57.669645,11.926832", "type" => "text");
     $options['gmap_zoom'] = array("name" => __("Zoom Level", 'babysitter'), "desc" => __("Google map zoom level.", 'babysitter'), "id" => "gmap_zoom", "std" => "14", "type" => "text");
     $options['contact_title'] = array("name" => __("Contact Title", 'babysitter'), "desc" => __("Title for contact info block.", 'babysitter'), "id" => "contact_title", "std" => "Contact Info", "type" => "text");
     $options['contact_map_title'] = array("name" => __("Google Map Title", 'babysitter'), "desc" => __("Title for Google Map (used on Contact v2 Template).", 'babysitter'), "id" => "contact_map_title", "std" => "Our Location", "type" => "text");
     $options['contact_address'] = array("name" => __("Address", 'babysitter'), "desc" => __("Put your address here.", 'babysitter'), "id" => "contact_address", "std" => "24 Fifth st., Los Angeles, USA", "type" => "text");
     $options['contact_phone'] = array("name" => __("Phone", 'babysitter'), "desc" => __("Put your phone here.", 'babysitter'), "id" => "contact_phone", "std" => "+1 (003) 460-055-274", "type" => "text");
     $options['contact_mail'] = array("name" => __("Email", 'babysitter'), "desc" => __("Put your email address here.", 'babysitter'), "id" => "contact_mail", "std" => "*****@*****.**", "type" => "text");
     $options['contact_site'] = array("name" => __("Site", 'babysitter'), "desc" => __("Put your site url here.", 'babysitter'), "id" => "contact_site", "std" => "www.dan-fisher.com", "type" => "text");
     $options['contact_info'] = array("name" => __("Info", 'babysitter'), "desc" => __("Put your additional info here.", 'babysitter'), "id" => "contact_info", "std" => "Monday-Friday: 9:00-17:00<br>Saturday: 10:00-16:00<br>Sunday: Closed", "type" => "textarea");
     $options[] = array("name" => __("Jobs", 'babysitter'), "type" => "heading");
     $options[] = array("name" => __("Currency for Jobs", 'babysitter'), "desc" => __("Please select currency shows on job listing pages.", 'babysitter'), "id" => "job_currency", "std" => "usd", "type" => "select", "class" => "mini", "options" => array('usd' => 'USD', 'eur' => 'EUR', 'gbp' => 'GBP', 'inr' => 'INR', 'jpy' => 'JPY', 'cny' => 'CNY', 'krw' => 'KRW', 'btc' => 'BTC'));
     return $options;
 }
 function framework_options()
 {
     global $typography_mixed_fonts;
     if (count($typography_mixed_fonts) == 0) {
         $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
         asort($typography_mixed_fonts);
     }
     //true/false array
     $true_false_array = array("true" => theme_locals("yes"), "false" => theme_locals("no"));
     //yes/no array
     $yes_no_array = array("yes" => theme_locals("yes"), "no" => theme_locals("no"));
     //filter orderby array
     $filter_orderby_array = array('id' => 'ID', 'name' => 'Name', 'slug' => 'Slug', 'count' => 'Posts count');
     //orderby array
     $orderby_array = array('id' => 'ID', 'author' => 'Author', 'title' => 'Title', 'name' => 'Name (slug)', 'date' => 'Date', 'modified' => 'Modified', 'comment_count' => 'Comments', 'rand' => 'Random');
     //order array
     $order_array = array('ASC' => 'ASC', 'DESC' => 'DESC');
     // If using image radio buttons, define a directory path
     $imagepath = PARENT_URL . '/includes/images/';
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options["general"] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("name" => theme_locals('body_name'), "desc" => theme_locals('body_desc'), "id" => "body_background", "std" => $background_defaults, "type" => "background");
     $main_layout_opt = array('fullwidth' => theme_locals('fullwidth'), 'fixed' => theme_locals('fixed'));
     $options['main_layout'] = array("name" => theme_locals('main_layout_name'), "desc" => theme_locals('main_layout_desc'), "id" => "main_layout", "type" => "radio", "std" => "fullwidth", "options" => $main_layout_opt);
     $options['main_background'] = array("name" => theme_locals('main_bg_name'), "desc" => theme_locals('main_bg_desc'), "id" => "main_background", "std" => "#fafafa", "type" => "color");
     $header_bg_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['header_background'] = array("name" => theme_locals('header_name'), "desc" => theme_locals('header_desc'), "id" => "header_background", "std" => $header_bg_defaults, "type" => "background");
     $options['links_color'] = array("name" => theme_locals('buttons_name'), "desc" => theme_locals('buttons_desc'), "id" => "links_color", "std" => "#0088cc", "type" => "color");
     $options['links_color_hover'] = array("name" => theme_locals('links_color_hover'), "desc" => theme_locals('links_color_hover_desc'), "id" => "links_color_hover", "std" => "", "type" => "color");
     $options['google_mixed_3'] = array('name' => theme_locals('body_text_name'), 'desc' => theme_locals('body_text_desc'), 'id' => 'google_mixed_3', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h1_heading'] = array('name' => theme_locals('h1_name'), 'desc' => theme_locals('h1_desc'), 'id' => 'h1_heading', 'std' => array('size' => '30px', 'lineheight' => '35px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h2_heading'] = array('name' => theme_locals('h2_name'), 'desc' => theme_locals('h2_desc'), 'id' => 'h2_heading', 'std' => array('size' => '22px', 'lineheight' => '26px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h3_heading'] = array('name' => theme_locals('h3_name'), 'desc' => theme_locals('h3_desc'), 'id' => 'h3_heading', 'std' => array('size' => '18px', 'lineheight' => '22px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h4_heading'] = array('name' => theme_locals('h4_name'), 'desc' => theme_locals('h4_desc'), 'id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h5_heading'] = array('name' => theme_locals('h5_name'), 'desc' => theme_locals('h5_desc'), 'id' => 'h5_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h6_heading'] = array('name' => theme_locals('h6_name'), 'desc' => theme_locals('h6_desc'), 'id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['g_search_box_id'] = array("name" => theme_locals('search_name'), "desc" => theme_locals('search_desc'), "id" => "g_search_box_id", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
     $options['g_breadcrumbs_id'] = array("name" => theme_locals('breadcrumbs_name'), "desc" => theme_locals('breadcrumbs_desc'), "id" => "g_breadcrumbs_id", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
     $options['custom_css'] = array("name" => theme_locals('css_name'), "desc" => theme_locals('css_desc'), "id" => "custom_css", "std" => "", "type" => "textarea");
     $options['live_chat_id'] = array("name" => theme_locals('live_chat_name'), "desc" => sprintf(theme_locals('live_chat_desc'), "<a href='http://www.olark.com/?r=ad8fbsj2'>Get own account ID.</a>"), "id" => "live_chat_id", "std" => "", "class" => "tiny", "type" => "text");
     $options['tm_live_chat'] = array("name" => theme_locals('tm_live_chat_name'), "desc" => theme_locals('tm_live_chat_desc'), "id" => "tm_live_chat", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options['logo_favicon'] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     // Logo type
     $logo_type = array("image_logo" => theme_locals("image_logo"), "text_logo" => theme_locals("text_logo"));
     $options['logo_type'] = array("name" => theme_locals('logo_name'), "desc" => theme_locals('logo_desc'), "id" => "logo_type", "std" => "image_logo", "type" => "radio", "options" => $logo_type);
     $options['logo_typography'] = array('name' => theme_locals('logo_t_name'), 'desc' => theme_locals('logo_t_desc'), 'id' => 'logo_typography', 'std' => array('size' => '40px', 'lineheight' => '48px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#049CDB'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['logo_url'] = array("name" => theme_locals('logo_image_path'), "desc" => theme_locals('logo_image_path_desc'), "id" => "logo_url", "std" => get_stylesheet_directory_uri() . "/images/logo.png", "type" => "upload");
     $options['favicon'] = array("name" => theme_locals('favicon_name'), "desc" => theme_locals('favicon_desc'), "id" => "favicon", "std" => get_stylesheet_directory_uri() . "/favicon.ico", "type" => "upload");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('name' => theme_locals('menu_t_name'), 'desc' => theme_locals('menu_t_desc'), 'id' => 'menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#1133AA'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['sf_delay'] = array("name" => theme_locals('delay_name'), "desc" => theme_locals('delay_desc'), "id" => "sf_delay", "std" => "1000", "class" => "tiny", "type" => "text");
     // Superfish fade-in animation
     $sf_f_animation_array = array("show" => theme_locals("enable fade-in animation"), "false" => theme_locals("disable fade-in animation"));
     $options['sf_f_animation'] = array("name" => theme_locals('fade_name'), "desc" => theme_locals('fade_desc'), "id" => "sf_f_animation", "std" => "show", "type" => "radio", "options" => $sf_f_animation_array);
     // Superfish slide-down animation
     $sf_sl_animation_array = array("show" => theme_locals("enable slide-down animation"), "false" => theme_locals("disable slide-down animation"));
     $options['sf_sl_animation'] = array("name" => theme_locals('slide_name'), "desc" => theme_locals('slide_desc'), "id" => "sf_sl_animation", "std" => "show", "type" => "radio", "options" => $sf_sl_animation_array);
     // Superfish animation speed
     $sf_speed_array = array("slow" => theme_locals("slow_speed"), "normal" => theme_locals("normal_speed"), "fast" => theme_locals("fast_speed"));
     $options['sf_speed'] = array("name" => theme_locals('speed_name'), "desc" => theme_locals('speed_desc'), "id" => "sf_speed", "type" => "select", "std" => "normal", "class" => "tiny", "options" => $sf_speed_array);
     $options['sf_arrows'] = array("name" => theme_locals('arrows_name'), "desc" => theme_locals('arrows_desc'), "id" => "sf_arrows", "std" => "false", "type" => "radio", "options" => $true_false_array);
     $options['mobile_menu_label'] = array("name" => theme_locals('mobile_menu_name'), "desc" => theme_locals('mobile_menu_desc'), "id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'), "class" => "tiny", "type" => "text");
     $options['stickup_menu'] = array("name" => theme_locals('stickup_menu'), "desc" => theme_locals('stickup_menu_desc'), "id" => "stickup_menu", "std" => "false", "type" => "radio", "options" => $true_false_array);
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['slider_type'] = array("name" => theme_locals('slider_type_name'), "desc" => theme_locals('slider_type_desc'), "id" => "slider_type", "std" => "camera_slider", "type" => "images", "options" => array('none_slider' => $imagepath . 'slider_none.png', 'camera_slider' => $imagepath . 'slider_type_1.png', 'accordion_slider' => $imagepath . 'slider_type_2.png'), "title" => array('none_slider' => theme_locals('slider_off'), 'camera_slider' => theme_locals('camera_slider'), 'accordion_slider' => theme_locals('accordion_slider')));
     $options['slider_posts_orderby'] = array("name" => theme_locals("folio_posts_orderby"), "desc" => theme_locals("folio_posts_orderby_desc"), "id" => "slider_posts_orderby", "std" => "date", "type" => "select", "options" => $orderby_array);
     $options['slider_posts_order'] = array("name" => theme_locals("folio_posts_order"), "desc" => theme_locals("folio_posts_order_desc"), "id" => "slider_posts_order", "std" => "ASC", "type" => "select", "options" => $order_array);
     // ---------------------------------------------------------*/
     // Camera Slider
     // ---------------------------------------------------------
     // Slider effects
     $sl_effect_array = array("random" => theme_locals("random"), "simpleFade" => theme_locals("simpleFade"), "curtainTopLeft" => theme_locals("curtainTopLeft"), "curtainTopRight" => theme_locals("curtainTopRight"), "curtainBottomLeft" => theme_locals("curtainBottomLeft"), "curtainBottomRight" => theme_locals("curtainBottomRight"), "curtainSliceLeft" => theme_locals("curtainSliceLeft"), "curtainSliceRight" => theme_locals("curtainSliceRight"), "blindCurtainTopLeft" => theme_locals("blindCurtainTopLeft"), "blindCurtainTopRight" => theme_locals("blindCurtainTopRight"), "blindCurtainBottomLeft" => theme_locals("blindCurtainBottomLeft"), "blindCurtainBottomRight" => theme_locals("blindCurtainBottomRight"), "blindCurtainSliceBottom" => theme_locals("blindCurtainSliceBottom"), "blindCurtainSliceTop" => theme_locals("blindCurtainSliceTop"), "stampede" => theme_locals("stampede"), "mosaic" => theme_locals("mosaic"), "mosaicReverse" => theme_locals("mosaicReverse"), "mosaicRandom" => theme_locals("mosaicRandom"), "mosaicSpiral" => theme_locals("mosaicSpiral"), "mosaicSpiralReverse" => theme_locals("mosaicSpiralReverse"), "topLeftBottomRight" => theme_locals("topLeftBottomRight"), "bottomRightTopLeft" => theme_locals("bottomRightTopLeft"), "bottomLeftTopRight" => theme_locals("bottomLeftTopRight"));
     $options['sl_effect'] = array("name" => theme_locals('effect_name'), "desc" => theme_locals('effect_desc'), "id" => "sl_effect", "std" => "simpleFade", "type" => "select", "class" => "tiny slider_type_1", "options" => $sl_effect_array);
     // Slider columns
     $sl_columns_array = array("1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "11" => "11", "12" => "12", "13" => "13", "14" => "14", "15" => "15", "16" => "16", "17" => "17", "18" => "18", "19" => "19", "20" => "20");
     $options['sl_columns'] = array("name" => theme_locals('columns_name'), "desc" => theme_locals('columns_desc'), "id" => "sl_columns", "std" => "6", "type" => "select", "class" => "small slider_type_1", "options" => $sl_columns_array);
     // Slider rows
     $sl_rows_array = array("1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "11" => "11", "12" => "12", "13" => "13", "14" => "14", "15" => "15", "16" => "16", "17" => "17", "18" => "18", "19" => "19", "20" => "20");
     $options['sl_rows'] = array("name" => theme_locals('rows_name'), "desc" => theme_locals('rows_desc'), "id" => "sl_rows", "std" => "6", "type" => "select", "class" => "small slider_type_1", "options" => $sl_rows_array);
     // Banner effects
     $sl_banner_array = array("moveFromLeft" => theme_locals("moveFromLeft"), "moveFromRight" => theme_locals("moveFromRight"), "moveFromTop" => theme_locals("moveFromTop"), "moveFromBottom" => theme_locals("moveFromBottom"), "fadeIn" => theme_locals("fadeIn"), "fadeFromLeft" => theme_locals("fadeFromLeft"), "fadeFromRight" => theme_locals("fadeFromRight"), "fadeFromTop" => theme_locals("fadeFromTop"), "fadeFromBottom" => theme_locals("fadeFromBottom"));
     $options['sl_banner'] = array("name" => theme_locals('banner_name'), "desc" => theme_locals('banner_desc'), "id" => "sl_banner", "std" => "fadeFromBottom", "type" => "select", "class" => "tiny slider_type_1", "options" => $sl_banner_array);
     $options['sl_pausetime'] = array("name" => theme_locals('pause_name'), "desc" => theme_locals('pause_desc'), "id" => "sl_pausetime", "std" => "7000", "class" => "tiny slider_type_1", "type" => "text");
     $options['sl_animation_speed'] = array("name" => theme_locals('animation_name'), "desc" => theme_locals('animation_desc'), "id" => "sl_animation_speed", "std" => "1500", "class" => "tiny slider_type_1", "type" => "text");
     $options['sl_slideshow'] = array("name" => theme_locals('slideshow_name'), "desc" => theme_locals('slideshow_desc'), "id" => "sl_slideshow", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     $options['sl_thumbnails'] = array("name" => theme_locals('thumbnails_name'), "desc" => theme_locals('thumbnails_desc'), "id" => "sl_thumbnails", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     $options['sl_control_nav'] = array("name" => theme_locals('pagination_name'), "desc" => theme_locals('pagination_desc'), "id" => "sl_control_nav", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     $options['sl_dir_nav'] = array("name" => theme_locals('navigation_name'), "desc" => theme_locals('navigation_desc'), "id" => "sl_dir_nav", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     $options['sl_dir_nav_hide'] = array("name" => theme_locals('hover_name'), "desc" => theme_locals('hover_desc'), "id" => "sl_dir_nav_hide", "std" => "false", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     $options['sl_play_pause_button'] = array("name" => theme_locals('button_name'), "desc" => theme_locals('button_desc'), "id" => "sl_play_pause_button", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     $options['sl_pause_on_hover'] = array("name" => theme_locals('pause_on_hover_title'), "desc" => theme_locals('pause_on_hover_desc'), "id" => "sl_pause_on_hover", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
     // Slider loader
     $sl_loader_array = array("no" => theme_locals("none"), "pie" => theme_locals("pie"), "bar" => theme_locals("bar"));
     $options['sl_loader'] = array("name" => theme_locals('loader_name'), "desc" => theme_locals('loader_desc'), "id" => "sl_loader", "std" => "no", "type" => "select", "class" => "small slider_type_1", "options" => $sl_loader_array);
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $post_array = array();
     $slider_post = query_posts("post_type=slider&posts_per_page=-1&post_status=publish&orderby=name&order=ASC");
     foreach ($slider_post as $value) {
         $postID = $value->ID;
         $post_array[$postID] = get_the_title($postID);
     }
     wp_reset_query();
     $options['acc_show_post'] = array("name" => theme_locals('show_post_name'), "desc" => theme_locals('show_post_desc'), "id" => "acc_show_post", "std" => "", "type" => "multicheck", "class" => "slider_type_2", "options" => $post_array);
     $options['acc_slideshow'] = array("name" => theme_locals('slideshow_name'), "desc" => theme_locals('slideshow_desc'), "id" => "acc_slideshow", "std" => "false", "type" => "radio", "class" => "slider_type_2", "options" => $true_false_array);
     $options['acc_hover_pause'] = array("name" => theme_locals('hover_pause_name'), "desc" => theme_locals('hover_pause_desc'), "id" => "acc_hover_pause", "std" => "true", "type" => "radio", "class" => "slider_type_2", "options" => $true_false_array);
     $options['acc_pausetime'] = array("name" => theme_locals('pause_name'), "desc" => theme_locals('pause_desc'), "id" => "acc_pausetime", "std" => "6000", "class" => "tiny slider_type_2", "type" => "text");
     $options['acc_animation_speed'] = array("name" => theme_locals('animation_name'), "desc" => theme_locals('animation_desc'), "id" => "acc_animation_speed", "std" => "600", "class" => "tiny slider_type_2", "type" => "text");
     // Accordion animation easing
     $acc_easing = array("linear" => theme_locals("linear"), "easeInSine" => theme_locals("easeInSine"), "easeOutSine" => theme_locals("easeOutSine"), "easeInOutSine" => theme_locals("easeInOutSine"), "easeInQuad" => theme_locals("easeInQuad"), "easeOutQuad" => theme_locals("easeOutQuad"), "easeInOutQuad" => theme_locals("easeInOutQuad"), "easeInCubic" => theme_locals("easeInCubic"), "easeOutCubic" => theme_locals("easeOutCubic"), "easeInOutCubic" => theme_locals("easeInOutCubic"), "easeInQuart" => theme_locals("easeInQuart"), "easeOutQuart" => theme_locals("easeOutQuart"), "easeInOutQuart" => theme_locals("easeInOutQuart"), "easeInQuint" => theme_locals("easeInQuint"), "easeOutQuint" => theme_locals("easeOutQuint"), "easeInOutQuint" => theme_locals("easeInOutQuint"), "easeInExpo" => theme_locals("easeInExpo"), "easeOutExpo" => theme_locals("easeOutExpo"), "easeInOutExpo" => theme_locals("easeInOutExpo"), "easeInCirc" => theme_locals("easeInCirc"), "easeOutCirc" => theme_locals("easeOutCirc"), "easeInOutCirc" => theme_locals("easeInOutCirc"), "easeInBack" => theme_locals("easeInBack"), "easeOutBack" => theme_locals("easeOutBack"), "easeInOutBack" => theme_locals("easeInOutBack"), "easeInElastic" => theme_locals("easeInElastic"), "easeOutElastic" => theme_locals("easeOutElastic"), "easeInOutElastic" => theme_locals("easeInOutElastic"), "easeInBounce" => theme_locals("easeInBounce"), "easeOutBounce" => theme_locals("easeOutBounce"), "easeInOutBounce" => theme_locals("easeInOutBounce"));
     $options['acc_easing'] = array("name" => theme_locals('easing_name'), "desc" => theme_locals('easing_desc'), "id" => "acc_easing", "std" => "easeOutCubic", "type" => "select", "class" => "tiny slider_type_2", "options" => $acc_easing);
     // Accordion trigger
     $acc_trigger = array("click" => theme_locals("click"), "mouseover" => theme_locals("mouseover"), "dblclick" => theme_locals("dblclick"));
     $options['acc_trigger'] = array("name" => theme_locals('trigger_name'), "desc" => theme_locals('trigger_desc'), "id" => "acc_trigger", "std" => "mouseover", "type" => "select", "class" => "tiny slider_type_2", "options" => $acc_trigger);
     $options['acc_starting_slide'] = array("name" => theme_locals('starting_slide_name'), "desc" => theme_locals('starting_slide_desc'), "id" => "acc_starting_slide", "std" => "0", "class" => "tiny slider_type_2", "type" => "text");
     // ---------------------------------------------------------
     // Blog
     // ---------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("name" => theme_locals('blog_name'), "desc" => theme_locals('blog_desc'), "id" => "blog_text", "std" => theme_locals('blog'), "type" => "text");
     $options['blog_related'] = array("name" => theme_locals('posts_name'), "desc" => theme_locals('posts_desc'), "id" => "blog_related", "std" => theme_locals('posts_std'), "type" => "text");
     $options['blog_sidebar_pos'] = array("name" => theme_locals('sidebar_name'), "desc" => theme_locals('sidebar_option_desc'), "id" => "blog_sidebar_pos", "std" => "right", "type" => "images", "options" => array('left' => $imagepath . '2cl.png', 'right' => $imagepath . '2cr.png', 'none' => $imagepath . '1col.png', 'masonry' => $imagepath . 'masonry.png'), "title" => array('left' => theme_locals('sidebar_left'), 'right' => theme_locals('sidebar_right'), 'none' => theme_locals('sidebar_hide'), 'masonry' => theme_locals('blog_masonry')));
     // Featured image size on the blog.
     $post_image_size_array = array("normal" => theme_locals("normal_size"), "large" => theme_locals("large_size"));
     $options['post_image_size'] = array("name" => theme_locals('image_size_name'), "desc" => theme_locals('image_size_desc'), "id" => "post_image_size", "type" => "select", "std" => "large", "class" => "small", "options" => $post_image_size_array);
     // Featured image size on the single page.
     $single_image_size_array = array("normal" => theme_locals("normal_size"), "large" => theme_locals("large_size"));
     $options['single_image_size'] = array("name" => theme_locals('single_post_image_name'), "desc" => theme_locals('single_post_image_desc'), "id" => "single_image_size", "type" => "select", "std" => "large", "class" => "small", "options" => $single_image_size_array);
     $options['single_share_button'] = array("name" => theme_locals('display_share_name'), "desc" => theme_locals('display_share_desc'), "id" => "single_share_button", "std" => "true", "type" => "radio", "options" => $true_false_array);
     $options['load_image'] = array("name" => theme_locals('load_image_name'), "desc" => theme_locals('load_image_desc'), "id" => "load_image", "std" => "true", "type" => "radio", "options" => $true_false_array);
     $options['post_excerpt'] = array("name" => theme_locals('excerpt_name'), "desc" => theme_locals('excerpt_desc'), "id" => "post_excerpt", "std" => "true", "type" => "radio", "options" => $true_false_array);
     $options['blog_button_text'] = array("name" => theme_locals('button_text_name'), "desc" => theme_locals('button_text_desc'), "id" => "blog_button_text", "std" => theme_locals('read_more'), "class" => "tiny", "type" => "text");
     $options['post_meta'] = array("name" => theme_locals('meta_name'), "desc" => theme_locals('meta_desc'), "id" => "post_meta", "std" => "line", "type" => "radio", "options" => array('false' => theme_locals('hide'), 'line' => theme_locals('line'), 'icon' => theme_locals('icons')));
     $options['post_meta_display'] = array("name" => theme_locals('meta_display_name'), "desc" => theme_locals('meta_display_desc'), "id" => "post_meta_display", "std" => "only_post", "type" => "radio", "options" => array('only_blog' => theme_locals('only_blog'), 'only_post' => theme_locals('only_post'), 'blog_post' => theme_locals('blog_post'), 'hide' => theme_locals('hide')));
     $options['post_date'] = array("name" => theme_locals('post_date_name'), "desc" => theme_locals('post_date_desc'), "id" => "post_date", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_author'] = array("name" => theme_locals('post_author_name'), "desc" => theme_locals('post_author_desc'), "id" => "post_author", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_permalink'] = array("name" => theme_locals('post_permalink_name'), "desc" => theme_locals('post_permalink_desc'), "id" => "post_permalink", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_category'] = array("name" => theme_locals('post_category_name'), "desc" => theme_locals('post_category_desc'), "id" => "post_category", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_tag'] = array("name" => theme_locals('post_tag_name'), "desc" => theme_locals('post_tag_desc'), "id" => "post_tag", "std" => "no", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_comment'] = array("name" => theme_locals('post_comment_name'), "desc" => theme_locals('post_comment_desc'), "id" => "post_comment", "std" => "yes", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_views'] = array("name" => theme_locals('post_views_name'), "desc" => theme_locals('post_views_desc'), "id" => "post_views", "std" => "no", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_like'] = array("name" => theme_locals('post_like_name'), "desc" => theme_locals('post_like_desc'), "id" => "post_like", "std" => "no", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     $options['post_dislike'] = array("name" => theme_locals('post_dislike_name'), "desc" => theme_locals('post_dislike_desc'), "id" => "post_dislike", "std" => "no", "class" => "post_meta_options", "type" => "radio", "options" => $yes_no_array);
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("name" => theme_locals("filter_name"), "desc" => theme_locals("filter_desc"), "id" => "folio_filter", "std" => "cat", "type" => "select", "options" => array("cat" => theme_locals("by_category"), "tag" => theme_locals("by_tags"), "none" => theme_locals("none")));
     $options['folio_filter_orderby'] = array("name" => theme_locals("folio_filter_orderby"), "desc" => theme_locals("folio_filter_orderby_desc"), "id" => "folio_filter_orderby", "std" => "name", "type" => "select", "options" => $filter_orderby_array);
     $options['folio_filter_order'] = array("name" => theme_locals("folio_filter_order"), "desc" => theme_locals("folio_filter_order_desc"), "id" => "folio_filter_order", "std" => "ASC", "type" => "select", "options" => $order_array);
     $options['folio_title'] = array("name" => theme_locals("show_title_name"), "desc" => theme_locals("show_title_desc"), "id" => "folio_title", "std" => "yes", "type" => "radio", "options" => $yes_no_array);
     $options['folio_excerpt'] = array("name" => theme_locals("show_excerpt_name"), "desc" => theme_locals("show_excerpt_desc"), "id" => "folio_excerpt", "std" => "yes", "type" => "radio", "options" => $yes_no_array);
     $options['folio_excerpt_count'] = array("name" => theme_locals("excerpt_words_name"), "desc" => theme_locals("excerpt_words_desc"), "id" => "folio_excerpt_count", "std" => "20", "class" => "small", "type" => "text");
     $options['folio_btn'] = array("name" => theme_locals("show_button_name"), "desc" => theme_locals("show_button_desc"), "id" => "folio_btn", "std" => "yes", "type" => "radio", "options" => $yes_no_array);
     $options['folio_button_text'] = array("name" => theme_locals('folio_button_text_name'), "desc" => theme_locals('folio_button_text_desc'), "id" => "folio_button_text", "std" => theme_locals('read_more'), "class" => "tiny", "type" => "text");
     $options['folio_meta'] = array("name" => theme_locals("show_meta_name"), "desc" => theme_locals("show_meta_desc"), "id" => "folio_meta", "std" => "yes", "type" => "radio", "options" => $yes_no_array);
     $options['folio_lightbox'] = array("name" => theme_locals("enable_lightbox"), "desc" => theme_locals("folio_enable_lightbox_desc"), "id" => "folio_lightbox", "std" => "yes", "type" => "radio", "options" => $yes_no_array);
     $options['single_folio_layout'] = array("name" => theme_locals("single_folio_layout"), "desc" => theme_locals("single_folio_layout_desc"), "id" => "single_folio_layout", "type" => "radio", "std" => "grid", "options" => array("grid" => theme_locals("grid_sp"), "fullwidth" => theme_locals("fullwidth_sp")));
     $options['single_gallery_layout'] = array("name" => theme_locals("single_gallery_layout"), "desc" => theme_locals("single_gallery_layout_desc"), "id" => "single_gallery_layout", "type" => "radio", "std" => "grid", "options" => array("grid" => theme_locals("grid_gallery"), "masonry" => theme_locals("masonry")));
     $options['layout_mode'] = array("name" => theme_locals("layout_name"), "desc" => theme_locals("layout_desc"), "id" => "layout_mode", "type" => "select", "std" => "fitRows", "class" => "small", "options" => array("fitRows" => theme_locals("fit_rows"), "masonry" => theme_locals("masonry")));
     $options['folio_posts_orderby'] = array("name" => theme_locals("folio_posts_orderby"), "desc" => theme_locals("folio_posts_orderby_desc"), "id" => "folio_posts_orderby", "std" => "date", "type" => "select", "options" => $orderby_array);
     $options['folio_posts_order'] = array("name" => theme_locals("folio_posts_order"), "desc" => theme_locals("folio_posts_order_desc"), "id" => "folio_posts_order", "std" => "DESC", "type" => "select", "options" => $order_array);
     $options['items_count2'] = array("name" => theme_locals("portfolio_2_name"), "desc" => theme_locals("portfolio_2_desc"), "id" => "items_count2", "std" => "8", "class" => "small", "type" => "text");
     $options['items_count3'] = array("name" => theme_locals("portfolio_3_name"), "desc" => theme_locals("portfolio_3_desc"), "id" => "items_count3", "std" => "9", "class" => "small", "type" => "text");
     $options['items_count4'] = array("name" => theme_locals("portfolio_4_name"), "desc" => theme_locals("portfolio_4_desc"), "id" => "items_count4", "std" => "12", "class" => "small", "type" => "text");
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("name" => theme_locals("copyright_text_name"), "desc" => theme_locals("copyright_text_desc"), "id" => "footer_text", "std" => "", "type" => "textarea");
     $options['ga_code'] = array("name" => theme_locals("google_name"), "desc" => theme_locals("google_desc"), "id" => "ga_code", "std" => "", "type" => "textarea");
     $options['feed_url'] = array("name" => theme_locals("feedburner_name"), "desc" => theme_locals("feedburner_desc"), "id" => "feed_url", "std" => "", "type" => "text");
     $options['footer_menu'] = array("name" => theme_locals("footer_menu_name"), "desc" => theme_locals("footer_menu_desc"), "id" => "footer_menu", "std" => "true", "type" => "radio", "options" => $true_false_array);
     $options['footer_menu_typography'] = array('name' => theme_locals("footer_menu_typography_name"), 'desc' => theme_locals("footer_menu_typography_desc"), 'id' => 'footer_menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#0088CC'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     // ---------------------------------------------------------
     // Cookie Banner
     // ---------------------------------------------------------
     $options['cookie_banner_h'] = array("name" => theme_locals("cookie_banner_h"), "type" => "heading");
     $options['cookie_banner'] = array("name" => theme_locals('cookie_banner_name'), "desc" => theme_locals('cookie_banner_desc'), "id" => "cookie_banner", "type" => "radio", "std" => "no", "options" => $yes_no_array);
     $options['cookie_banner_text'] = array("name" => theme_locals('cookie_banner_text'), "desc" => theme_locals('cookie_banner_text_desc'), "id" => "cookie_banner_text", "std" => theme_locals('cookie_banner_text_std'), "type" => "textarea");
     return $options;
 }
Example #21
0
	function optionsframework_options() {
// Fonts
			global $typography_mixed_fonts;
			$typography_mixed_fonts = array_merge(options_typography_get_os_fonts() , options_typography_get_google_fonts());
			asort($typography_mixed_fonts);

			$options = array();
// ---------------------------------------------------------
// General
// ---------------------------------------------------------
			$options['general'] = array( "name" => theme_locals('general'),
								"type" => "heading");
			// Background Defaults
			$background_defaults = array(
				'color' => '#181818', 
				'image' => "", 
				'repeat' => 'repeat',
				'position' => 'top center',
				'attachment'=>'scroll'
			);

			$options['body_background'] = array(
								"id" => "body_background",
								"std" => $background_defaults);
			
			$options['header_color'] = array(
								"id" => "header_color",
								"std" => "",
								"disable" => "true");
			
			$options['links_color'] = array(
								"id" => "links_color",
								"std" => "#ffffff");

			$options['links_color_hover'] = array(
								"id" => "links_color_hover",
								"std" => "#e6472d");	
								
			$options['google_mixed_3'] = array(
								'id' => 'google_mixed_3',
								'std' => array( 'size' => '13px', 'lineheight' => '18px', 'face' => '"Trebuchet MS", Arial, Helvetica, sans-serif', 'style' => 'normal', 'character'  => 'latin', 'color' => '#ffffff'));
								
			$options['h1_heading'] = array(
								'id' => 'h1_heading',
								'std' => array( 'size' => '36px', 'lineheight' => '38px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#ffffff'));
			
			$options['h2_heading'] = array(
								'id' => 'h2_heading',
								'std' => array( 'size' => '30px', 'lineheight' => '32px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#ffffff'));
								
			$options['h3_heading'] = array(
								'id' => 'h3_heading',
								'std' => array( 'size' => '24px', 'lineheight' => '29px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#ffffff'));
			
			$options['h4_heading'] = array(
								'id' => 'h4_heading',
								'std' => array( 'size' => '20px', 'lineheight' => '24px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#ffffff'));
								
			$options['h5_heading'] = array(
								'id' => 'h5_heading',
								'std' => array( 'size' => '16px', 'lineheight' => '22px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#e6472d'));
								
			$options['h6_heading'] = array(
								'id' => 'h6_heading',
								'std' => array( 'size' => '14px', 'lineheight' => '17px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#ffffff'));
			
			$options['g_search_box_id'] = array(
								"id" => "g_search_box_id",
								"std" => "yes",
								"disable" => "true");

			$options['g_breadcrumbs_id'] = array(
								"id" => "g_breadcrumbs_id",
								"std" => "yes");

			$options['custom_css'] = array(
								"id" => "custom_css",
								"std" => "");


// ---------------------------------------------------------
// Social
// ---------------------------------------------------------

		$options[] = array(	"name" => __('Social', CURRENT_THEME),
							"type" => "heading");

		$options['facebook'] = array( "name" => __('Facebook URL', CURRENT_THEME),
							"desc" => __('Facebook URL', CURRENT_THEME),
							"id" => "facebook",
							"std" => "#",
							"type" => "text");

		$options['facebook_icon'] = array("name" => __('Facebook Icon', CURRENT_THEME),
							"desc" => __('Facebook Icon', CURRENT_THEME),
							"id" => "facebook_icon",
							"std" => get_stylesheet_directory_uri() . "/images/icons/facebook.png",
							"type" => "upload");

		$options['twitter'] = array( "name" => __('Twitter URL', CURRENT_THEME),
							"desc" => __('Twitter URL', CURRENT_THEME),
							"id" => "twitter",
							"std" => "#",
							"type" => "text");

		$options['twitter_icon'] = array("name" => __('Twitter Icon', CURRENT_THEME),
							"desc" => __('Twitter Icon', CURRENT_THEME),
							"id" => "twitter_icon",
							"std" => get_stylesheet_directory_uri() . "/images/icons/twitter.png",
							"type" => "upload");

		$options['linkedin'] = array( "name" => __('LinkedIn URL', CURRENT_THEME),
							"desc" => __('LinkedIn URL', CURRENT_THEME),
							"id" => "linkedin",
							"std" => "#",
							"type" => "text");

		$options['linkedin_icon'] = array("name" => __('LinkedIn Icon', CURRENT_THEME),
							"desc" => __('LinkedIn Icon', CURRENT_THEME),
							"id" => "linkedin_icon",
							"std" => get_stylesheet_directory_uri() . "/images/icons/linkedin.png",
							"type" => "upload");


// ---------------------------------------------------------
// Extra
// ---------------------------------------------------------

		$options[] = array(	"name" => __('Extra', CURRENT_THEME),
							"type" => "heading");

		$options['bg_image'] = array("name" => __('Background Image', CURRENT_THEME),
					"desc" => __('Background Image in the header', CURRENT_THEME),
					"id" => "bg_image",
					"std" => get_stylesheet_directory_uri() . "/images/bg-image.jpg",
					"type" => "upload");

// ---------------------------------------------------------
// Logo & Favicon
// ---------------------------------------------------------
			$options["logo_favicon"] = array( "name" => theme_locals('logo_favicon'),
								"type" => "heading");		

			$options['logo_type'] = array(
								"id" => "logo_type",
								"std" => "image_logo");

			$options['logo_typography'] = array(
								'id' => 'logo_typography',
								'std' => array( 'size' => '70px', 'lineheight' => '71px', 'face' => 'Changa One', 'style' => 'normal', 'character'  => 'latin', 'color' => '#ffffff'));
			
			$options['logo_url'] = array(
								"id" => "logo_url",
								"std" => get_stylesheet_directory_uri() . "/images/logo.png");
								
			$options['favicon'] = array(
								"id" => "favicon",
								"std" => get_stylesheet_directory_uri() . "/favicon.ico");

// ---------------------------------------------------------
// Navigation
// ---------------------------------------------------------
			$options['navigation'] = array( "name" => theme_locals('navigation'),
								"type" => "heading");

			$options['menu_typography'] = array(
								'id' => 'menu_typography',
								'std' => array( 'size' => '12px', 'lineheight' => '18px', 'face' => 'Open Sans', 'style' => 'bold', 'character'  => 'latin', 'color' => '#d27700'));

			$options['sf_delay'] = array(
								"id" => "sf_delay",
								"std" => "1000");

			$options['sf_f_animation'] = array(
								"id" => "sf_f_animation",
								"std" => "show");
			
			$options['sf_sl_animation'] = array(
								"id" => "sf_sl_animation",
								"std" => "show");
			
			$options['sf_speed'] = array(
								"id" => "sf_speed",
								"std" => "normal");

			$options['sf_arrows'] = array(
								"id" => "sf_arrows",
								"std" => "false");

			$options['mobile_menu_label'] = array(
								"id" => "mobile_menu_label",
								"std" => theme_locals('mobile_menu_std'));	

// ---------------------------------------------------------
// Slider
// ---------------------------------------------------------
			$options['slider'] = array( "name" => theme_locals('slider'),
	                            "type" => "heading");

	// Slider type
			$options['sl_type'] = array(
								"id" => "slider_type",
								"std" => "camera_slider",
								"disable" => "true");

	// ---------------------------------------------------------
	// Camera Slider
	// ---------------------------------------------------------
	        $options['sl_effect'] = array(
	                            "id" => "sl_effect",
	                            "std" => "random");

	        $options['sl_columns'] = array(
	                            "id" => "sl_columns",
	                            "std" => "12");

	        $options['sl_rows'] = array(
	                            "id" => "sl_rows",
	                            "std" => "8");

	        $options['sl_banner'] = array(
		                        "id" => "sl_banner",
		                        "std" => "fadeFromBottom");

	        $options['sl_pausetime'] = array(
	                            "id" => "sl_pausetime",
	                            "std" => "7000");
	 
	        $options['sl_animation_speed'] = array(
	                            "id" => "sl_animation_speed",
	                            "std" => "1500");
	 
	        $options['sl_slideshow'] = array(
	                            "id" => "sl_slideshow",
	                            "std" => "true");

	        $options['sl_thumbnails'] = array(
	                            "id" => "sl_thumbnails",
	                            "std" => "false");

	        $options['sl_control_nav'] = array(
	                            "id" => "sl_control_nav",
	                            "std" => "false");

	        $options['sl_dir_nav'] = array(
	                            "id" => "sl_dir_nav",
	                            "std" => "true");

	        $options['sl_dir_nav_hide'] = array(
	                            "id" => "sl_dir_nav_hide",
	                            "std" => "false");

	        $options['sl_play_pause_button'] = array(
	                            "id" => "sl_play_pause_button",
	                            "std" => "false");
	        $options['sl_loader'] = array(
	                            "id" => "sl_loader",
	                            "std" => "no");
	// ---------------------------------------------------------
	// Accordion Slider
	// ---------------------------------------------------------
	       	$options['acc_show_post'] = array(
                    "id" => "acc_show_post",
                    "std" => "",
					"disable" => "true");

	        $options['acc_slideshow'] = array(
	                            "id" => "acc_slideshow",
	                            "std" => "false",
								"disable" => "true");

	       	$options['acc_hover_pause'] = array(
	                            "id" => "acc_hover_pause",
	                            "std" => "true",
								"disable" => "true");

	       	$options['acc_pausetime'] = array(
	                            "id" => "acc_pausetime",
	                            "std" => "6000",
								"disable" => "true");

	        $options['acc_animation_speed'] = array(
	                            "id" => "acc_animation_speed",
	                            "std" => "600",
								"disable" => "true");

	        $options['acc_easing'] = array(
		                        "id" => "acc_easing",
		                        "std" => "easeOutCubic",
								"disable" => "true");

	        $options['acc_trigger'] = array(
		                        "id" => "acc_trigger",
		                        "std" => "mouseover",
								"disable" => "true");

	       	$options['acc_starting_slide'] = array(
	                            "id" => "acc_starting_slide",
	                            "std" => "0",
								"disable" => "true");
// ---------------------------------------------------------
// Blog
// --------------------------------------------------------
			$options['blog'] = array( "name" => theme_locals('blog'),
								"type" => "heading");
			
			$options['blog_text'] = array(
								"id" => "blog_text",
								"std" => theme_locals('blog'));
			
			$options['blog_related'] = array(
								"id" => "blog_related",
								"std" => theme_locals('posts_std'));
			
			$options['blog_sidebar_pos'] = array(
								"id" => "blog_sidebar_pos",
								"std" => "right");

			$options['post_image_size'] = array(
								"id" => "post_image_size",
								"std" => "large");
			
			$options['single_image_size'] = array(
								"id" => "single_image_size",
								"std" => "large");

			$options['post_meta'] = array(
								"id" => "post_meta",
								"std" => "true");
			
			$options['post_excerpt'] = array(
								"id" => "post_excerpt",
								"std" => "true");

// ---------------------------------------------------------
// Portfolio
// ---------------------------------------------------------
			$options['portfolio'] = array(
								"name" => theme_locals("portfolio"),
								"type" => "heading");

			$options['folio_filter'] = array(
								"id" => "folio_filter",
								"std" => "cat");
			
			$options['folio_title'] = array(
								"id" => "folio_title",
								"std" => "yes");

			$options['folio_excerpt'] = array(
								"id" => "folio_excerpt",
								"std" => "yes");

			$options['folio_excerpt_count'] = array(
								"id" => "folio_excerpt_count",
								"std" => "20");

			$options['folio_btn'] = array(
								"id" => "folio_btn",
								"std" => "no");

			$options['folio_meta'] = array(
								"id" => "folio_meta",
								"std" => "yes");

			$options['layout_mode'] = array(
								"id" => "layout_mode",
								"std" => "fitRows");

			$options['items_count2'] = array(
								"id" => "items_count2",
								"std" => "8");

			$options['items_count3'] = array(
								"id" => "items_count3",
								"std" => "9");
			
			$options['items_count4'] = array(
								"id" => "items_count4",
								"std" => "12");

// ---------------------------------------------------------
// Footer
// ---------------------------------------------------------
			$options['footer'] = array( "name" => theme_locals("footer"),
								"type" => "heading");
			
			$options['footer_text'] = array(
								"id" => "footer_text",
								"std" => "");
			
			$options['ga_code'] = array(
								"id" => "ga_code",
								"std" => "");
			
			$options['feed_url'] = array(
								"id" => "feed_url",
								"std" => "");
			
			$options['footer_menu'] = array(
								"id" => "footer_menu",
								"std" => "false");

			$options['footer_menu_typography'] = array(
								'id' => 'footer_menu_typography',
								'std' => array( 'size' => '15px', 'lineheight' => '20px', 'face' => '"Trebuchet MS", Arial, Helvetica, sans-serif', 'style' => 'normal', 'character'  => 'latin', 'color' => '#E6472D'));
		return $options;
	}
Example #22
0
 function optionsframework_options()
 {
     // Fonts
     global $typography_mixed_fonts;
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     $options = array();
     // ---------------------------------------------------------
     // General
     // ---------------------------------------------------------
     $options['general'] = array("name" => theme_locals('general'), "type" => "heading");
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['body_background'] = array("id" => "body_background", "std" => $background_defaults);
     $options['main_layout'] = array("id" => "main_layout", "std" => "fullwidth");
     $options['main_background'] = array("id" => "main_background", "std" => "#fafafa");
     $header_bg_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     $options['header_background'] = array("id" => "header_background", "std" => $header_bg_defaults);
     $options['links_color'] = array("id" => "links_color", "std" => "#0088cc");
     $options['links_color_hover'] = array("id" => "links_color_hover", "std" => "");
     $options['google_mixed_3'] = array('id' => 'google_mixed_3', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h1_heading'] = array('id' => 'h1_heading', 'std' => array('size' => '30px', 'lineheight' => '35px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h2_heading'] = array('id' => 'h2_heading', 'std' => array('size' => '22px', 'lineheight' => '26px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h3_heading'] = array('id' => 'h3_heading', 'std' => array('size' => '18px', 'lineheight' => '22px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h4_heading'] = array('id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h5_heading'] = array('id' => 'h5_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['h6_heading'] = array('id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'));
     $options['g_search_box_id'] = array("id" => "g_search_box_id", "std" => "yes");
     $options['g_breadcrumbs_id'] = array("id" => "g_breadcrumbs_id", "std" => "yes");
     $options['custom_css'] = array("id" => "custom_css", "std" => "");
     $options['live_chat_id'] = array("id" => "live_chat_id", "std" => "7830-582-10-3714");
     // ---------------------------------------------------------
     // Logo & Favicon
     // ---------------------------------------------------------
     $options["logo_favicon"] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
     $options['logo_type'] = array("id" => "logo_type", "std" => "image_logo");
     $options['logo_typography'] = array('id' => 'logo_typography', 'std' => array('size' => '40px', 'lineheight' => '48px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#049CDB'));
     $options['logo_url'] = array("id" => "logo_url", "std" => CHILD_URL . "/images/logo.png");
     $options['favicon'] = array("id" => "favicon", "std" => CHILD_URL . "/favicon.ico");
     // ---------------------------------------------------------
     // Navigation
     // ---------------------------------------------------------
     $options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
     $options['menu_typography'] = array('id' => 'menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#1133AA'));
     $options['sf_delay'] = array("id" => "sf_delay", "std" => "1000");
     $options['sf_f_animation'] = array("id" => "sf_f_animation", "std" => "show");
     $options['sf_sl_animation'] = array("id" => "sf_sl_animation", "std" => "show");
     $options['sf_speed'] = array("id" => "sf_speed", "std" => "normal");
     $options['sf_arrows'] = array("id" => "sf_arrows", "std" => "false");
     $options['mobile_menu_label'] = array("id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'));
     // ---------------------------------------------------------
     // Slider
     // ---------------------------------------------------------
     $options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
     // Slider type
     $options['sl_type'] = array("id" => "slider_type", "std" => "camera_slider");
     // ---------------------------------------------------------
     // Camera Slider
     // ---------------------------------------------------------
     $options['sl_effect'] = array("id" => "sl_effect", "std" => "simpleFade");
     $options['sl_columns'] = array("id" => "sl_columns", "std" => "12");
     $options['sl_rows'] = array("id" => "sl_rows", "std" => "8");
     $options['sl_banner'] = array("id" => "sl_banner", "std" => "fadeIn");
     $options['sl_pausetime'] = array("id" => "sl_pausetime", "std" => "7000");
     $options['sl_animation_speed'] = array("id" => "sl_animation_speed", "std" => "1500");
     $options['sl_slideshow'] = array("id" => "sl_slideshow", "std" => "true");
     $options['sl_thumbnails'] = array("id" => "sl_thumbnails", "std" => "true");
     // set "disabled" => "true" when only text in Slider posts
     $options['sl_control_nav'] = array("id" => "sl_control_nav", "std" => "true");
     $options['sl_dir_nav'] = array("id" => "sl_dir_nav", "std" => "true");
     $options['sl_dir_nav_hide'] = array("id" => "sl_dir_nav_hide", "std" => "false");
     $options['sl_play_pause_button'] = array("id" => "sl_play_pause_button", "std" => "true");
     $options['sl_pause_on_hover'] = array("id" => "sl_pause_on_hover", "std" => "true");
     $options['sl_loader'] = array("id" => "sl_loader", "std" => "no");
     // ---------------------------------------------------------
     // Accordion Slider
     // ---------------------------------------------------------
     $multicheck_defaults = array('43' => 0, '49' => 0, '50' => 0, '51' => 0, '52' => 0);
     $options['acc_show_post'] = array("id" => "acc_show_post", "std" => $multicheck_defaults);
     $options['acc_slideshow'] = array("id" => "acc_slideshow", "std" => "false");
     $options['acc_hover_pause'] = array("id" => "acc_hover_pause", "std" => "true");
     $options['acc_pausetime'] = array("id" => "acc_pausetime", "std" => "6000");
     $options['acc_animation_speed'] = array("id" => "acc_animation_speed", "std" => "600");
     $options['acc_easing'] = array("id" => "acc_easing", "std" => "easeOutCubic");
     $options['acc_trigger'] = array("id" => "acc_trigger", "std" => "mouseover");
     $options['acc_starting_slide'] = array("id" => "acc_starting_slide", "std" => "0");
     // ---------------------------------------------------------
     // Blog
     // --------------------------------------------------------
     $options['blog'] = array("name" => theme_locals('blog'), "type" => "heading");
     $options['blog_text'] = array("id" => "blog_text", "std" => theme_locals('blog'));
     $options['blog_related'] = array("id" => "blog_related", "std" => theme_locals('posts_std'));
     $options['blog_sidebar_pos'] = array("id" => "blog_sidebar_pos", "std" => "right");
     $options['post_image_size'] = array("id" => "post_image_size", "std" => "large");
     $options['single_image_size'] = array("id" => "single_image_size", "std" => "large");
     $options['post_meta'] = array("id" => "post_meta", "std" => "true");
     $options['post_meta_display'] = array("id" => "post_meta_display", "std" => "only_post");
     $options['post_excerpt'] = array("id" => "post_excerpt", "std" => "true");
     // ---------------------------------------------------------
     // Portfolio
     // ---------------------------------------------------------
     $options['portfolio'] = array("name" => theme_locals("portfolio"), "type" => "heading");
     $options['folio_filter'] = array("id" => "folio_filter", "std" => "cat");
     $options['folio_title'] = array("id" => "folio_title", "std" => "yes");
     $options['folio_excerpt'] = array("id" => "folio_excerpt", "std" => "yes");
     $options['folio_excerpt_count'] = array("id" => "folio_excerpt_count", "std" => "20");
     $options['folio_btn'] = array("id" => "folio_btn", "std" => "yes");
     $options['folio_meta'] = array("id" => "folio_meta", "std" => "yes");
     $options['layout_mode'] = array("id" => "layout_mode", "std" => "fitRows");
     $options['items_count2'] = array("id" => "items_count2", "std" => "8");
     $options['items_count3'] = array("id" => "items_count3", "std" => "9");
     $options['items_count4'] = array("id" => "items_count4", "std" => "12");
     // ---------------------------------------------------------
     // Footer
     // ---------------------------------------------------------
     $options['footer'] = array("name" => theme_locals("footer"), "type" => "heading");
     $options['footer_text'] = array("id" => "footer_text", "std" => "");
     $options['ga_code'] = array("id" => "ga_code", "std" => "");
     $options['feed_url'] = array("id" => "feed_url", "std" => "");
     $options['footer_menu'] = array("id" => "footer_menu", "std" => "true");
     $options['footer_menu_typography'] = array('id' => 'footer_menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#0088CC'));
     return $options;
 }
Example #23
0
 function optionsframework_options()
 {
     // Logo type
     $logo_type = array("image_logo" => __("Image Logo", CURRENT_THEME), "text_logo" => __("Text Logo", CURRENT_THEME));
     // Breadcrumbs in the page
     $g_breadcrumbs = array("no" => "No", "yes" => "Yes");
     // Background Defaults
     $background_defaults = array('color' => '#f9faf9', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     // Superfish fade-in animation
     $sf_f_animation_array = array("show" => "Enable fade-in animation", "false" => "Disable fade-in animation");
     // Superfish slide-down animation
     $sf_sl_animation_array = array("show" => "Enable slide-down animation", "false" => "Disable slide-down animation");
     // Superfish animation speed
     $sf_speed_array = array("slow" => "Slow", "normal" => "Normal", "fast" => "Fast");
     // Superfish arrows markup
     $sf_arrows_array = array("true" => "Yes", "false" => "No");
     // Fonts
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     // Slider effects
     $sl_effect_array = array("random" => "random", "simpleFade" => "simpleFade", "curtainTopLeft" => "curtainTopLeft", "curtainTopRight" => "curtainTopRight", "curtainBottomLeft" => "curtainBottomLeft", "curtainBottomRight" => "curtainBottomRight", "curtainSliceLeft" => "curtainSliceLeft", "curtainSliceRight" => "curtainSliceRight", "blindCurtainTopLeft" => "blindCurtainTopLeft", "blindCurtainTopRight" => "blindCurtainTopRight", "blindCurtainBottomLeft" => "blindCurtainBottomLeft", "blindCurtainBottomRight" => "blindCurtainBottomRight", "blindCurtainSliceBottom" => "blindCurtainSliceBottom", "blindCurtainSliceTop" => "blindCurtainSliceTop", "stampede" => "stampede", "mosaic" => "mosaic", "mosaicReverse" => "mosaicReverse", "mosaicRandom" => "mosaicRandom", "mosaicSpiral" => "mosaicSpiral", "mosaicSpiralReverse" => "mosaicSpiralReverse", "topLeftBottomRight" => "topLeftBottomRight", "bottomRightTopLeft" => "bottomRightTopLeft", "bottomLeftTopRight" => "bottomLeftTopRight", "bottomLeftTopRight" => "bottomLeftTopRight");
     // Banner effects
     $sl_banner_array = array("moveFromLeft" => "moveFromLeft", "moveFromRight" => "moveFromRight", "moveFromTop" => "moveFromTop", "moveFromBottom" => "moveFromBottom", "fadeIn" => "fadeIn", "fadeFromLeft" => "fadeFromLeft", "fadeFromRight" => "fadeFromRight", "fadeFromTop" => "fadeFromTop", "fadeFromBottom" => "fadeFromBottom");
     // Slider columns
     $sl_columns_array = array("1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "11" => "11", "12" => "12", "13" => "13", "14" => "14", "15" => "15", "16" => "16", "17" => "17", "18" => "18", "19" => "19", "20" => "20");
     // Slider rows
     $sl_rows_array = array("1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "11" => "11", "12" => "12", "13" => "13", "14" => "14", "15" => "15", "16" => "16", "17" => "17", "18" => "18", "19" => "19", "20" => "20");
     // Slideshow
     $sl_slideshow_array = array("true" => "Yes", "false" => "No");
     // Thumbnails
     $sl_thumbnails_array = array("true" => "Yes", "false" => "No");
     // Slider control navigation
     $sl_control_nav_array = array("true" => "Yes", "false" => "No");
     // Slider direct navigation
     $sl_dir_nav_array = array("true" => "Yes", "false" => "No");
     // Slider direct navigation on hover
     $sl_dir_nav_hide_array = array("true" => "Yes", "false" => "No");
     // Slider play/pause button
     $sl_play_pause_button_array = array("true" => "Yes", "false" => "No");
     // Slider loader
     $sl_loader_array = array("no" => "no", "pie" => "pie", "bar" => "bar");
     // Footer menu
     $footer_menu_array = array("true" => "Yes", "false" => "No");
     // Featured image size on the blog.
     $post_image_size_array = array("normal" => "Normal size", "large" => "Large size");
     // Featured image size on the single page.
     $single_image_size_array = array("normal" => "Normal size", "large" => "Large size");
     // Meta for blog
     $post_meta_array = array("true" => "Yes", "false" => "No");
     // Meta for blog
     $post_excerpt_array = array("true" => "Yes", "false" => "No");
     // If using image radio buttons, define a directory path
     $imagepath = get_template_directory_uri() . '/includes/images/';
     $options = array();
     $options[] = array("name" => "General", "type" => "heading");
     $options['body_background'] = array("name" => "Body styling", "desc" => "Change the background style.", "id" => "body_background", "std" => $background_defaults, "type" => "background");
     $options['header_color'] = array("name" => "Header background color", "desc" => "Change the header background color.", "id" => "header_color", "std" => "", "type" => "color");
     $options['links_color'] = array("name" => "Buttons and links color", "desc" => "Change the color of buttons and links.", "id" => "links_color", "std" => "#d83b36", "type" => "color");
     $options['google_mixed_3'] = array('name' => 'Body Text', 'desc' => 'Choose your prefered font for body text. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'google_mixed_3', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#777777'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h1_heading'] = array('name' => 'H1 Heading', 'desc' => 'Choose your prefered font for H1 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h1_heading', 'std' => array('size' => '36px', 'lineheight' => '42px', 'face' => '"Times New Roman", Times, serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h2_heading'] = array('name' => 'H2 Heading', 'desc' => 'Choose your prefered font for H2 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h2_heading', 'std' => array('size' => '22px', 'lineheight' => '22px', 'face' => '"Times New Roman", Times, serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h3_heading'] = array('name' => 'H3 Heading', 'desc' => 'Choose your prefered font for H3 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h3_heading', 'std' => array('size' => '18px', 'lineheight' => '18px', 'face' => '"Times New Roman", Times, serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h4_heading'] = array('name' => 'H4 Heading', 'desc' => 'Choose your prefered font for H4 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '18px', 'face' => '"Times New Roman", Times, serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h5_heading'] = array('name' => 'H5 Heading', 'desc' => 'Choose your prefered font for H5 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h5_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => '"Times New Roman", Times, serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['h6_heading'] = array('name' => 'H6 Heading', 'desc' => 'Choose your prefered font for H6 heading and titles. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => '"Times New Roman", Times, serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['g_breadcrumbs_id'] = array("name" => "Display breadcrumbs?", "desc" => "Display breadcrumbs in the page?", "id" => "g_breadcrumbs_id", "type" => "radio", "std" => "yes", "options" => $g_breadcrumbs);
     $options[] = array("name" => "Custom CSS", "desc" => "Want to add any custom CSS code? Put in here, and the rest is taken care of. This overrides any other stylesheets. eg: a.button{color:green}", "id" => "custom_css", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Slogan", "type" => "heading");
     $options['slogan'] = array("name" => "Slogan", "desc" => "Slogan on homepage", "id" => "slogan", "std" => "In need of some quick advice? Need to know the next step you should take?<strong><a href='contacts'>Use Ask a Lawyer!</a></strong>", "type" => "textarea");
     $options[] = array("name" => "Logo & Favicon", "type" => "heading");
     $options['logo_type'] = array("name" => "What kind of logo?", "desc" => "Select whether you want your main logo to be an image or text. If you select 'image' you can put in the image url in the next option, and if you select 'text' your Site Title will be shown instead.", "id" => "logo_type", "std" => "image_logo", "type" => "radio", "options" => $logo_type);
     $options[] = array('name' => 'Logo Typography', 'desc' => 'Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'logo_typography', 'std' => array('size' => '70px', 'lineheight' => '70px', 'face' => 'Playball', 'style' => 'normal', 'character' => 'latin', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options['logo_url'] = array("name" => "Logo Image Path", "desc" => "Click Upload or Enter the direct path to your <strong>logo image</strong>. For example <em>http://your_website_url_here/wp-content/themes/themeXXXX/images/logo.png</em>", "id" => "logo_url", "std" => get_stylesheet_directory_uri() . "/images/logo.png", "type" => "upload");
     $options['favicon'] = array("name" => "Favicon", "desc" => "Click Upload or Enter the direct path to your <strong>favicon</strong>. For example <em>http://your_website_url_here/wp-content/themes/themeXXXX/favicon.ico</em>", "id" => "favicon", "std" => get_stylesheet_directory_uri() . "/favicon.ico", "type" => "upload");
     $options[] = array("name" => "Navigation", "type" => "heading");
     $options[] = array('name' => 'Menu Typography', 'desc' => 'Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#1133AA'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     $options[] = array("name" => "Delay", "desc" => "miliseconds delay on mouseout.", "id" => "sf_delay", "std" => "50", "class" => "tiny", "type" => "text");
     $options[] = array("name" => "Fade-in animation", "desc" => "Fade-in animation.", "id" => "sf_f_animation", "std" => "show", "type" => "radio", "options" => $sf_f_animation_array);
     $options[] = array("name" => "Slide-down animation", "desc" => "Slide-down animation.", "id" => "sf_sl_animation", "std" => "false", "type" => "radio", "options" => $sf_sl_animation_array);
     $options[] = array("name" => "Speed", "desc" => "Animation speed.", "id" => "sf_speed", "type" => "select", "std" => "normal", "class" => "tiny", "options" => $sf_speed_array);
     $options[] = array("name" => "Arrows markup", "desc" => "Do you want to generate arrow mark-up?", "id" => "sf_arrows", "std" => "true", "type" => "radio", "options" => $sf_arrows_array);
     $options[] = array("name" => "Slider Settings", "type" => "heading");
     $options['sl_effect'] = array("name" => "Sliding effect", "desc" => "Select your animation type", "id" => "sl_effect", "std" => "random", "type" => "select", "class" => "tiny", "options" => $sl_effect_array);
     $options['sl_columns'] = array("name" => "Number of columns", "desc" => "Number of columns", "id" => "sl_columns", "std" => "12", "type" => "select", "class" => "small", "options" => $sl_columns_array);
     $options['sl_rows'] = array("name" => "Number of rows", "desc" => "Number of rows", "id" => "sl_rows", "std" => "8", "type" => "select", "class" => "small", "options" => $sl_rows_array);
     $options[] = array("name" => "Banner effect", "desc" => "Select your banner animation type", "id" => "sl_banner", "std" => "fadeFromBottom", "type" => "select", "class" => "tiny", "options" => $sl_banner_array);
     $options['sl_pausetime'] = array("name" => "Pause time", "desc" => "Pause time (ms).", "id" => "sl_pausetime", "std" => "7000", "class" => "tiny", "type" => "text");
     $options['sl_animation_speed'] = array("name" => "Animation speed", "desc" => "Animation speed (ms).", "id" => "sl_animation_speed", "std" => "1500", "class" => "tiny", "type" => "text");
     $options['sl_slideshow'] = array("name" => "Slideshow", "desc" => "Animate slider automatically?", "id" => "sl_slideshow", "std" => "true", "type" => "radio", "options" => $sl_slideshow_array);
     $options['sl_thumbnails'] = array("name" => "Thumbnails", "desc" => "Display thumbnails?", "id" => "sl_thumbnails", "std" => "false", "type" => "radio", "options" => $sl_thumbnails_array);
     $options['sl_control_nav'] = array("name" => "Pagination", "desc" => "Display pagination", "id" => "sl_control_nav", "std" => "false", "type" => "radio", "options" => $sl_control_nav_array);
     $options['sl_dir_nav'] = array("name" => "Next & Prev navigation", "desc" => "Display next & prev navigation?", "id" => "sl_dir_nav", "std" => "true", "type" => "radio", "options" => $sl_dir_nav_array);
     $options[] = array("name" => "Display next & prev navigation only on hover?", "desc" => "If true the navigation button (prev, next and play/stop buttons) will be visible on hover state only, if false they will be visible always", "id" => "sl_dir_nav_hide", "std" => "false", "type" => "radio", "options" => $sl_dir_nav_hide_array);
     $options['sl_play_pause_button'] = array("name" => "Play/Pause button", "desc" => "Display Play/Pause button?", "id" => "sl_play_pause_button", "std" => "false", "type" => "radio", "options" => $sl_play_pause_button_array);
     $options['sl_loader'] = array("name" => "Loader", "desc" => "Slider loader", "id" => "sl_loader", "std" => "no", "type" => "select", "class" => "small", "options" => $sl_loader_array);
     $options[] = array("name" => "Blog", "type" => "heading");
     $options[] = array("name" => "Blog Title", "desc" => "Enter Your Blog Title used on Blog page.", "id" => "blog_text", "std" => "Blog", "type" => "text");
     $options[] = array("name" => "Related Posts Title", "desc" => "Enter Your Title used on Single Post page for related posts.", "id" => "blog_related", "std" => "Related Posts", "type" => "text");
     $options['blog_sidebar_pos'] = array("name" => "Sidebar position", "desc" => "Choose sidebar position.", "id" => "blog_sidebar_pos", "std" => "right", "type" => "images", "options" => array('left' => $imagepath . '2cl.png', 'right' => $imagepath . '2cr.png'));
     $options['post_image_size'] = array("name" => "Blog image size", "desc" => "Featured image size on the blog.", "id" => "post_image_size", "type" => "select", "std" => "normal", "class" => "small", "options" => $post_image_size_array);
     $options['single_image_size'] = array("name" => "Single post image size", "desc" => "Featured image size on the single page.", "id" => "single_image_size", "type" => "select", "std" => "normal", "class" => "small", "options" => $single_image_size_array);
     $options['post_meta'] = array("name" => "Enable Meta for blog posts?", "desc" => "Enable or Disable meta information for blog posts.", "id" => "post_meta", "std" => "true", "type" => "radio", "options" => $post_meta_array);
     $options['post_excerpt'] = array("name" => "Enable excerpt for blog posts?", "desc" => "Enable or Disable excerpt for blog posts.", "id" => "post_excerpt", "std" => "true", "type" => "radio", "options" => $post_excerpt_array);
     $options[] = array("name" => "Portfolio", "type" => "heading");
     $options['folio_filter'] = array("name" => "Filter", "desc" => "Portfolio filter.", "id" => "folio_filter", "std" => "cat", "type" => "select", "options" => array("cat" => "by Category", "tag" => "by Tags", "both" => "Both (by Category and Tags)", "none" => "None"));
     $options['folio_title'] = array("name" => "Show title?", "desc" => "Enable or Disable title for portfolio posts.", "id" => "folio_title", "std" => "yes", "type" => "radio", "options" => array("yes" => "Yes", "no" => "No"));
     $options['folio_excerpt'] = array("name" => "Show excerpt?", "desc" => "Enable or Disable excerpt for portfolio posts.", "id" => "folio_excerpt", "std" => "yes", "type" => "radio", "options" => array("yes" => "Yes", "no" => "No"));
     $options['folio_excerpt_count'] = array("name" => "Excerpt words", "desc" => "Excerpt length (words).", "id" => "folio_excerpt_count", "std" => "20", "class" => "small", "type" => "text");
     $options['folio_btn'] = array("name" => "Show button?", "desc" => "Enable or Disable button for portfolio posts.", "id" => "folio_btn", "std" => "no", "type" => "radio", "options" => array("yes" => "Yes", "no" => "No"));
     $options['layout_mode'] = array("name" => "Layout", "desc" => "Portfolio has different layout modes. You can set and change the layout mode via this option.", "id" => "layout_mode", "type" => "select", "std" => "fitRows", "class" => "small", "options" => array("fitRows" => "fitRows", "masonry" => "masonry"));
     $options['items_count2'] = array("name" => "Portfolio 2 columns items amount", "desc" => "Portfolio items amount for Portfolio 2 columns template.", "id" => "items_count2", "std" => "8", "class" => "small", "type" => "text");
     $options['items_count3'] = array("name" => "Portfolio 3 columns items amount", "desc" => "Portfolio items amount for Portfolio 3 columns template.", "id" => "items_count3", "std" => "9", "class" => "small", "type" => "text");
     $options['items_count4'] = array("name" => "Portfolio 4 columns items amount", "desc" => "Portfolio items amount for Portfolio 4 columns template.", "id" => "items_count4", "std" => "12", "class" => "small", "type" => "text");
     $options[] = array("name" => "Footer", "type" => "heading");
     $options['footer_text'] = array("name" => "Footer copyright text", "desc" => "Enter text used in the right side of the footer. HTML tags are allowed.", "id" => "footer_text", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Google Analytics Code", "desc" => "You can paste your Google Analytics or other tracking code in this box. This will be automatically added to the footer.", "id" => "ga_code", "std" => "", "type" => "textarea");
     $options['feed_url'] = array("name" => "Feedburner URL", "desc" => "Feedburner is a Google service that takes care of your RSS feed. Paste your Feedburner URL here to let readers see it in your website.", "id" => "feed_url", "std" => "", "type" => "text");
     $options['footer_menu'] = array("name" => "Display Footer menu?", "desc" => "Do you want to display footer menu?", "id" => "footer_menu", "std" => "false", "type" => "radio", "options" => $footer_menu_array);
     $options[] = array('name' => 'Footer Menu Typography', 'desc' => 'Choose your prefered font for menu. <em>Note: fonts marked with <strong>*</strong> symbol will be loaded from the <a href="http://www.google.com/webfonts">Google Web Fonts</a> library.</em>', 'id' => 'footer_menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#929191'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
     return $options;
 }