本文整理汇总了PHP中options_typography_get_os_fonts函数的典型用法代码示例。如果您正苦于以下问题:PHP options_typography_get_os_fonts函数的具体用法?PHP options_typography_get_os_fonts怎么用?PHP options_typography_get_os_fonts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了options_typography_get_os_fonts函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: optionsframework_options
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();
}
示例2: optionsframework_options
/**
* 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;
}
示例3: optionsframework_options
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
//.........这里部分代码省略.........
示例4: optionsframework_options
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
//.........这里部分代码省略.........
示例5: apply_filters
return apply_filters('font_styles', $styles);
}
$typography_options = array('sizes' => font_sizes(), 'styles' => font_styles());
$sizes = $typography_options['sizes'];
$styles = $typography_options['styles'];
$font_sizes = null;
$font_styles = null;
$count = 0;
foreach ($sizes as $size) {
$count++;
$count == 1 ? $font_sizes['-'] = $size : ($font_sizes[$size . 'px'] = $size . 'px');
}
foreach ($styles as $weight => $style) {
$font_styles[$weight] = $style;
}
$typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
asort($typography_mixed_fonts);
$typography_mixed_fonts = array_merge(array('-' => 'Font Family'), $typography_mixed_fonts);
//processing
$options = get_option('salient');
if (!function_exists('options_typography_google_fonts')) {
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'];
示例6: optionsframework_options
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
// ---------------------------------------------------------
//.........这里部分代码省略.........
示例7: optionsframework_options
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");
// ---------------------------------------------------------
//.........这里部分代码省略.........
示例8: optionsframework_options
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);
//.........这里部分代码省略.........
示例9: optionsframework_options
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");
//.........这里部分代码省略.........
示例10: get_option
$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);
//.........这里部分代码省略.........
示例11: of_options
//.........这里部分代码省略.........
$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.");
示例12: optionsframework_options
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),
//.........这里部分代码省略.........
示例13: optionsframework_options
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" => "© 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 <script> 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);
//.........这里部分代码省略.........