本文整理汇总了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函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:robbuh,项目名称:CherryFramework,代码行数:8,代码来源:options.php
示例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;
}
开发者ID:devinsays,项目名称:options-framework-theme-demos,代码行数:27,代码来源:options.php
示例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
//.........这里部分代码省略.........
开发者ID:TopLineMediaTeam,项目名称:crystalbeach,代码行数:101,代码来源:options.php
示例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
//.........这里部分代码省略.........
开发者ID:Erazik,项目名称:yanin,代码行数:101,代码来源:options.php
示例5: framework_options
function framework_options()
{
global $typography_mixed_fonts;
if (count($typography_mixed_fonts) == 0) {
$typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
asort($typography_mixed_fonts);
}
//true/false array
$true_false_array = array("true" => theme_locals("yes"), "false" => theme_locals("no"));
//yes/no array
$yes_no_array = array("yes" => theme_locals("yes"), "no" => theme_locals("no"));
//filter orderby array
$filter_orderby_array = array('id' => 'ID', 'name' => 'Name', 'slug' => 'Slug', 'count' => 'Posts count');
//orderby array
$orderby_array = array('id' => 'ID', 'author' => 'Author', 'title' => 'Title', 'name' => 'Name (slug)', 'date' => 'Date', 'modified' => 'Modified', 'comment_count' => 'Comments', 'rand' => 'Random');
//order array
$order_array = array('ASC' => 'ASC', 'DESC' => 'DESC');
// If using image radio buttons, define a directory path
$imagepath = PARENT_URL . '/includes/images/';
$options = array();
// ---------------------------------------------------------
// General
// ---------------------------------------------------------
$options["general"] = array("name" => theme_locals('general'), "type" => "heading");
// Background Defaults
$background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
$options['body_background'] = array("name" => theme_locals('body_name'), "desc" => theme_locals('body_desc'), "id" => "body_background", "std" => $background_defaults, "type" => "background");
$main_layout_opt = array('fullwidth' => theme_locals('fullwidth'), 'fixed' => theme_locals('fixed'));
$options['main_layout'] = array("name" => theme_locals('main_layout_name'), "desc" => theme_locals('main_layout_desc'), "id" => "main_layout", "type" => "radio", "std" => "fullwidth", "options" => $main_layout_opt);
$options['main_background'] = array("name" => theme_locals('main_bg_name'), "desc" => theme_locals('main_bg_desc'), "id" => "main_background", "std" => "#fafafa", "type" => "color");
$header_bg_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
$options['header_background'] = array("name" => theme_locals('header_name'), "desc" => theme_locals('header_desc'), "id" => "header_background", "std" => $header_bg_defaults, "type" => "background");
$options['links_color'] = array("name" => theme_locals('buttons_name'), "desc" => theme_locals('buttons_desc'), "id" => "links_color", "std" => "#0088cc", "type" => "color");
$options['links_color_hover'] = array("name" => theme_locals('links_color_hover'), "desc" => theme_locals('links_color_hover_desc'), "id" => "links_color_hover", "std" => "", "type" => "color");
$options['google_mixed_3'] = array('name' => theme_locals('body_text_name'), 'desc' => theme_locals('body_text_desc'), 'id' => 'google_mixed_3', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['h1_heading'] = array('name' => theme_locals('h1_name'), 'desc' => theme_locals('h1_desc'), 'id' => 'h1_heading', 'std' => array('size' => '30px', 'lineheight' => '35px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['h2_heading'] = array('name' => theme_locals('h2_name'), 'desc' => theme_locals('h2_desc'), 'id' => 'h2_heading', 'std' => array('size' => '22px', 'lineheight' => '26px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['h3_heading'] = array('name' => theme_locals('h3_name'), 'desc' => theme_locals('h3_desc'), 'id' => 'h3_heading', 'std' => array('size' => '18px', 'lineheight' => '22px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['h4_heading'] = array('name' => theme_locals('h4_name'), 'desc' => theme_locals('h4_desc'), 'id' => 'h4_heading', 'std' => array('size' => '14px', 'lineheight' => '20px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['h5_heading'] = array('name' => theme_locals('h5_name'), 'desc' => theme_locals('h5_desc'), 'id' => 'h5_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['h6_heading'] = array('name' => theme_locals('h6_name'), 'desc' => theme_locals('h6_desc'), 'id' => 'h6_heading', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#333333'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['g_search_box_id'] = array("name" => theme_locals('search_name'), "desc" => theme_locals('search_desc'), "id" => "g_search_box_id", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
$options['g_breadcrumbs_id'] = array("name" => theme_locals('breadcrumbs_name'), "desc" => theme_locals('breadcrumbs_desc'), "id" => "g_breadcrumbs_id", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
$options['custom_css'] = array("name" => theme_locals('css_name'), "desc" => theme_locals('css_desc'), "id" => "custom_css", "std" => "", "type" => "textarea");
$options['live_chat_id'] = array("name" => theme_locals('live_chat_name'), "desc" => sprintf(theme_locals('live_chat_desc'), "<a href='http://www.olark.com/?r=ad8fbsj2'>Get own account ID.</a>"), "id" => "live_chat_id", "std" => "", "class" => "tiny", "type" => "text");
$options['tm_live_chat'] = array("name" => theme_locals('tm_live_chat_name'), "desc" => theme_locals('tm_live_chat_desc'), "id" => "tm_live_chat", "type" => "radio", "std" => "yes", "options" => $yes_no_array);
// ---------------------------------------------------------
// Logo & Favicon
// ---------------------------------------------------------
$options['logo_favicon'] = array("name" => theme_locals('logo_favicon'), "type" => "heading");
// Logo type
$logo_type = array("image_logo" => theme_locals("image_logo"), "text_logo" => theme_locals("text_logo"));
$options['logo_type'] = array("name" => theme_locals('logo_name'), "desc" => theme_locals('logo_desc'), "id" => "logo_type", "std" => "image_logo", "type" => "radio", "options" => $logo_type);
$options['logo_typography'] = array('name' => theme_locals('logo_t_name'), 'desc' => theme_locals('logo_t_desc'), 'id' => 'logo_typography', 'std' => array('size' => '40px', 'lineheight' => '48px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#049CDB'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['logo_url'] = array("name" => theme_locals('logo_image_path'), "desc" => theme_locals('logo_image_path_desc'), "id" => "logo_url", "std" => get_stylesheet_directory_uri() . "/images/logo.png", "type" => "upload");
$options['favicon'] = array("name" => theme_locals('favicon_name'), "desc" => theme_locals('favicon_desc'), "id" => "favicon", "std" => get_stylesheet_directory_uri() . "/favicon.ico", "type" => "upload");
// ---------------------------------------------------------
// Navigation
// ---------------------------------------------------------
$options['navigation'] = array("name" => theme_locals('navigation'), "type" => "heading");
$options['menu_typography'] = array('name' => theme_locals('menu_t_name'), 'desc' => theme_locals('menu_t_desc'), 'id' => 'menu_typography', 'std' => array('size' => '12px', 'lineheight' => '18px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'character' => 'latin', 'color' => '#1133AA'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts));
$options['sf_delay'] = array("name" => theme_locals('delay_name'), "desc" => theme_locals('delay_desc'), "id" => "sf_delay", "std" => "1000", "class" => "tiny", "type" => "text");
// Superfish fade-in animation
$sf_f_animation_array = array("show" => theme_locals("enable fade-in animation"), "false" => theme_locals("disable fade-in animation"));
$options['sf_f_animation'] = array("name" => theme_locals('fade_name'), "desc" => theme_locals('fade_desc'), "id" => "sf_f_animation", "std" => "show", "type" => "radio", "options" => $sf_f_animation_array);
// Superfish slide-down animation
$sf_sl_animation_array = array("show" => theme_locals("enable slide-down animation"), "false" => theme_locals("disable slide-down animation"));
$options['sf_sl_animation'] = array("name" => theme_locals('slide_name'), "desc" => theme_locals('slide_desc'), "id" => "sf_sl_animation", "std" => "show", "type" => "radio", "options" => $sf_sl_animation_array);
// Superfish animation speed
$sf_speed_array = array("slow" => theme_locals("slow_speed"), "normal" => theme_locals("normal_speed"), "fast" => theme_locals("fast_speed"));
$options['sf_speed'] = array("name" => theme_locals('speed_name'), "desc" => theme_locals('speed_desc'), "id" => "sf_speed", "type" => "select", "std" => "normal", "class" => "tiny", "options" => $sf_speed_array);
$options['sf_arrows'] = array("name" => theme_locals('arrows_name'), "desc" => theme_locals('arrows_desc'), "id" => "sf_arrows", "std" => "false", "type" => "radio", "options" => $true_false_array);
$options['mobile_menu_label'] = array("name" => theme_locals('mobile_menu_name'), "desc" => theme_locals('mobile_menu_desc'), "id" => "mobile_menu_label", "std" => theme_locals('mobile_menu_std'), "class" => "tiny", "type" => "text");
$options['stickup_menu'] = array("name" => theme_locals('stickup_menu'), "desc" => theme_locals('stickup_menu_desc'), "id" => "stickup_menu", "std" => "false", "type" => "radio", "options" => $true_false_array);
// ---------------------------------------------------------
// Slider
// ---------------------------------------------------------
$options['slider'] = array("name" => theme_locals('slider'), "type" => "heading");
// Slider type
$options['slider_type'] = array("name" => theme_locals('slider_type_name'), "desc" => theme_locals('slider_type_desc'), "id" => "slider_type", "std" => "camera_slider", "type" => "images", "options" => array('none_slider' => $imagepath . 'slider_none.png', 'camera_slider' => $imagepath . 'slider_type_1.png', 'accordion_slider' => $imagepath . 'slider_type_2.png'), "title" => array('none_slider' => theme_locals('slider_off'), 'camera_slider' => theme_locals('camera_slider'), 'accordion_slider' => theme_locals('accordion_slider')));
$options['slider_posts_orderby'] = array("name" => theme_locals("folio_posts_orderby"), "desc" => theme_locals("folio_posts_orderby_desc"), "id" => "slider_posts_orderby", "std" => "date", "type" => "select", "options" => $orderby_array);
$options['slider_posts_order'] = array("name" => theme_locals("folio_posts_order"), "desc" => theme_locals("folio_posts_order_desc"), "id" => "slider_posts_order", "std" => "ASC", "type" => "select", "options" => $order_array);
// ---------------------------------------------------------*/
// Camera Slider
// ---------------------------------------------------------
// Slider effects
$sl_effect_array = array("random" => theme_locals("random"), "simpleFade" => theme_locals("simpleFade"), "curtainTopLeft" => theme_locals("curtainTopLeft"), "curtainTopRight" => theme_locals("curtainTopRight"), "curtainBottomLeft" => theme_locals("curtainBottomLeft"), "curtainBottomRight" => theme_locals("curtainBottomRight"), "curtainSliceLeft" => theme_locals("curtainSliceLeft"), "curtainSliceRight" => theme_locals("curtainSliceRight"), "blindCurtainTopLeft" => theme_locals("blindCurtainTopLeft"), "blindCurtainTopRight" => theme_locals("blindCurtainTopRight"), "blindCurtainBottomLeft" => theme_locals("blindCurtainBottomLeft"), "blindCurtainBottomRight" => theme_locals("blindCurtainBottomRight"), "blindCurtainSliceBottom" => theme_locals("blindCurtainSliceBottom"), "blindCurtainSliceTop" => theme_locals("blindCurtainSliceTop"), "stampede" => theme_locals("stampede"), "mosaic" => theme_locals("mosaic"), "mosaicReverse" => theme_locals("mosaicReverse"), "mosaicRandom" => theme_locals("mosaicRandom"), "mosaicSpiral" => theme_locals("mosaicSpiral"), "mosaicSpiralReverse" => theme_locals("mosaicSpiralReverse"), "topLeftBottomRight" => theme_locals("topLeftBottomRight"), "bottomRightTopLeft" => theme_locals("bottomRightTopLeft"), "bottomLeftTopRight" => theme_locals("bottomLeftTopRight"));
$options['sl_effect'] = array("name" => theme_locals('effect_name'), "desc" => theme_locals('effect_desc'), "id" => "sl_effect", "std" => "simpleFade", "type" => "select", "class" => "tiny slider_type_1", "options" => $sl_effect_array);
// Slider columns
$sl_columns_array = array("1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "11" => "11", "12" => "12", "13" => "13", "14" => "14", "15" => "15", "16" => "16", "17" => "17", "18" => "18", "19" => "19", "20" => "20");
$options['sl_columns'] = array("name" => theme_locals('columns_name'), "desc" => theme_locals('columns_desc'), "id" => "sl_columns", "std" => "6", "type" => "select", "class" => "small slider_type_1", "options" => $sl_columns_array);
// Slider rows
$sl_rows_array = array("1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "11" => "11", "12" => "12", "13" => "13", "14" => "14", "15" => "15", "16" => "16", "17" => "17", "18" => "18", "19" => "19", "20" => "20");
$options['sl_rows'] = array("name" => theme_locals('rows_name'), "desc" => theme_locals('rows_desc'), "id" => "sl_rows", "std" => "6", "type" => "select", "class" => "small slider_type_1", "options" => $sl_rows_array);
// Banner effects
$sl_banner_array = array("moveFromLeft" => theme_locals("moveFromLeft"), "moveFromRight" => theme_locals("moveFromRight"), "moveFromTop" => theme_locals("moveFromTop"), "moveFromBottom" => theme_locals("moveFromBottom"), "fadeIn" => theme_locals("fadeIn"), "fadeFromLeft" => theme_locals("fadeFromLeft"), "fadeFromRight" => theme_locals("fadeFromRight"), "fadeFromTop" => theme_locals("fadeFromTop"), "fadeFromBottom" => theme_locals("fadeFromBottom"));
$options['sl_banner'] = array("name" => theme_locals('banner_name'), "desc" => theme_locals('banner_desc'), "id" => "sl_banner", "std" => "fadeFromBottom", "type" => "select", "class" => "tiny slider_type_1", "options" => $sl_banner_array);
$options['sl_pausetime'] = array("name" => theme_locals('pause_name'), "desc" => theme_locals('pause_desc'), "id" => "sl_pausetime", "std" => "7000", "class" => "tiny slider_type_1", "type" => "text");
$options['sl_animation_speed'] = array("name" => theme_locals('animation_name'), "desc" => theme_locals('animation_desc'), "id" => "sl_animation_speed", "std" => "1500", "class" => "tiny slider_type_1", "type" => "text");
$options['sl_slideshow'] = array("name" => theme_locals('slideshow_name'), "desc" => theme_locals('slideshow_desc'), "id" => "sl_slideshow", "std" => "true", "type" => "radio", "class" => "slider_type_1", "options" => $true_false_array);
//.........这里部分代码省略.........
开发者ID:robbuh,项目名称:CherryFramework,代码行数:101,代码来源:framework_options.php
示例6: 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'];
开发者ID:jjmas,项目名称:jjmas.net,代码行数:31,代码来源:fonts.php
示例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());
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', 'col
|
请发表评论