• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP options_typography_get_google_fonts函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中options_typography_get_google_fonts函数的典型用法代码示例。如果您正苦于以下问题:PHP options_typography_get_google_fonts函数的具体用法?PHP options_typography_get_google_fonts怎么用?PHP options_typography_get_google_fonts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了options_typography_get_google_fonts函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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()
{
    // Graphic logo or dynamic text
    $logo_type = array("text" => __('Text', 'simple'), "image" => __('Image', 'simple'));
    // Yes or No
    $yes = array("yes" => __('Yes', 'simple'), "no" => __('No', 'simple'));
    // True or False
    $tf = array("true" => __('Yes', 'simple'), "false" => __('No', 'simple'));
    // excerpt or full content
    $content_type = array("excerpt" => __('Excerpt', 'simple'), "content" => __('Full Content', 'simple'));
    $options = array();
    $options[] = array("name" => __('Header', 'simple'), "type" => "heading");
    $options['logo'] = array("name" => __('Upload Logo', 'simple'), "desc" => __('Upload a graphic logo here.', 'simple'), "id" => "logo", "type" => "upload");
    $options['site_title_font'] = array('name' => __('Text Logo Font', 'simple'), 'desc' => __('Choose the type for your text logo.', 'simple'), 'id' => 'site_title_font', 'std' => array('size' => '50px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['logo_color'] = array("name" => __('Text Logo Color', 'simple'), "desc" => __('The color of a text based logo.', 'simple'), "id" => "logo_color", "std" => "", "type" => "color");
    $options['logo_color_hover'] = array("name" => __('Text Logo Hover Color', 'simple'), "desc" => __('The color of a text based logo while hovering.', 'simple'), "id" => "logo_color_hover", "std" => "", "type" => "color");
    $options['navigation_font'] = array('name' => __('Navigation Item Font', 'simple'), 'desc' => __('Sets the type for your navigation menu.', 'simple'), 'id' => 'navigation_font', 'std' => array('size' => '20px', 'face' => 'Raleway, cursive', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['navigation_background_color'] = array("name" => __('Navigation Bar Background Color', 'simple'), "desc" => __('Sets the background color for navigation bar.', 'simple'), "id" => "navigation_background_color", "std" => "", "type" => "color");
    $options['navigation_link_color'] = array("name" => __('Navigation Link Color', 'simple'), "desc" => __('Sets the link color for navigation bar.', 'simple'), "id" => "navigation_link_color", "std" => "", "type" => "color");
    $options['navigation_link_color_hover'] = array("name" => __('Navigation Link Hover', 'simple'), "desc" => __('Sets the link color for navigation bar while hovering.', 'simple'), "id" => "navigation_link_color_hover", "std" => "", "type" => "color");
    $options['navigation_link_color_hover_background'] = array("name" => __('Navigation Link Hover Background', 'simple'), "desc" => __('Sets the background link color for navigation bar while hovering.', 'simple'), "id" => "navigation_link_color_hover_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Favicon', 'simple'), "desc" => __('Upload a favicon (small icon that sits beside your websites address in a browser navigation bar here.', 'simple'), "id" => "favicon", "std" => "", "type" => "upload");
    $options[] = array("name" => __('Mobile Navigation Label', 'simple'), "desc" => __('Sets the text for the mobile navigation menu', 'simple'), "id" => "mobile_navigation_name", "std" => "Navigation", "type" => "text");
    $options[] = array("name" => __('Content', 'simple'), "type" => "heading");
    $options['content_excerpt'] = array("name" => __('Excerpt Or Full Content', 'simple'), "desc" => __('You can choose to display your full post content or only an excerpt on archive pages.', 'simple'), "id" => "content_excerpt", "std" => "yes", "type" => "select", "class" => "mini", "options" => $content_type);
    $options['body_font'] = array('name' => __('Body Font', 'simple'), 'desc' => __('This is used for the main conent and widgets.', 'simple'), 'id' => 'body_font', 'std' => array('size' => '15px', 'face' => 'Open Sans, sans-serif', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['link_color'] = array("name" => __('Link Color', 'simple'), "desc" => __('Sets the default color for links.', 'simple'), "id" => "link_color", "std" => "", "type" => "color");
    $options['link_color_hover'] = array("name" => __('Link Hover Color', 'simple'), "desc" => __('Sets the hover state color for links.', 'simple'), "id" => "link_color_hover", "std" => "", "type" => "color");
    $options['content_text'] = array("name" => __('Text Color', 'simple'), "desc" => __('The color of your main text', 'simple'), "id" => "content_text", "std" => "", "type" => "color");
    $options['content_background'] = array("name" => __('Content Background Color', 'simple'), "desc" => __('The background color of the main content area.', 'simple'), "id" => "content_background", "std" => "", "type" => "color");
    $options['heading_font'] = array('name' => __('Heading Font', 'simple'), 'desc' => __('Choose a font for your page titles and other headings (h1, h2, h3, h4, h5, h6)', 'simple'), 'id' => 'heading_font', 'std' => array('size' => '24px', 'face' => 'Raleway, cursive', 'color' => '#000000'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'sizes' => false, 'color' => false));
    $options['heading_color'] = array("name" => __('Heading Color', 'simple'), "desc" => __('The color of your headings', 'simple'), "id" => "heading_color", "std" => "", "type" => "color");
    $options[] = array("name" => __('Footer', 'simple'), "type" => "heading");
    $options['footer_text'] = array("name" => __('Custom Footer Text', 'simple'), "desc" => __('The text you enter here will be displayed in the footer.', 'simple'), "id" => "footer_text", "std" => "", "type" => "text");
    $options['footer_color'] = array("name" => __('Footer Text Color', 'simple'), "desc" => __('The color the text in your footer.', 'simple'), "id" => "footer_color", "std" => "", "type" => "color");
    $options['footer_background'] = array("name" => __('Footer background Color', 'simple'), "desc" => __('The background color the text in your footer.', 'simple'), "id" => "footer_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Widgets', 'simple'), "type" => "heading");
    $options['widget_title_font'] = array('name' => __('Widget Title Font', 'simple'), 'desc' => __('Choose a font for your widget titles.', 'simple'), 'id' => 'widget_title_font', 'std' => array('size' => '24px', 'face' => 'Raleway, cursive', 'color' => '#ffffff'), 'type' => 'typography', 'options' => array('faces' => options_typography_get_google_fonts(), 'styles' => false, 'color' => false));
    $options['widget_title'] = array("name" => __('Widget Title Color', 'simple'), "desc" => __('Text color for widget titles', 'simple'), "id" => "widget_title", "std" => "", "type" => "color");
    $options['widget_title_background'] = array("name" => __('Widget Title Background', 'simple'), "desc" => __('Background color for widget titles.', 'simple'), "id" => "widget_title_background", "std" => "", "type" => "color");
    $options['widget_text'] = array("name" => __('Widget Text Color', 'simple'), "desc" => __('Sets the color of text in widgets.', 'simple'), "id" => "widget_text", "std" => "", "type" => "color");
    $options['widget_background'] = array("name" => __('Widget Background Color', 'simple'), "desc" => __('Sets the background color in widgets.', 'simple'), "id" => "widget_background", "std" => "", "type" => "color");
    $options[] = array("name" => __('Buttons', 'simple'), "type" => "heading");
    $options['button'] = array("name" => __('Button Text', 'simple'), "desc" => __('Text color for buttons', 'simple'), "id" => "button", "std" => "", "type" => "color");
    $options['button_background'] = array("name" => __('Button Background', 'simple'), "desc" => __('Background color for buttons', 'simple'), "id" => "button_background", "std" => "", "type" => "color");
    $options['button_hover'] = array("name" => __('Button Text (hover)', 'simple'), "desc" => __('Text color for buttons while hovering', 'simple'), "id" => "button_hover", "std" => "", "type" => "color");
    $options['button_background_hover'] = array("name" => __('Button Background (hover)', 'simple'), "desc" => __('Background color for buttons while hovering', 'simple'), "id" => "button_background_hover", "std" => "", "type" => "color");
    $options[] = array("name" => __('Advanced', 'simple'), "type" => "heading");
    $options[] = array('name' => __('Enable Google Fonts', 'simple'), 'desc' => __('Turns on the output of Google fonts.', 'simple'), 'id' => 'disable_fonts', 'std' => true, 'type' => 'checkbox');
    $options[] = array("name" => __('Custom CSS', 'simple'), "desc" => __('Add any custom CSS you would like to use here.', 'simple'), "id" => "custom_css", "std" => "", "type" => "textarea");
    return $options;
}
开发者ID:sytzec,项目名称:wp,代码行数:57,代码来源:options.php


示例3: options_typography_google_fonts

 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     // Define all the options that possibly have a unique Google font
     $google_font = of_get_option('google_font', 'Rokkitt, serif');
     $google_mixed = of_get_option('google_mixed', false);
     $google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
     // Get the font face for each option and put it in an array
     $selected_fonts = array($google_font['face'], $google_mixed['face'], $google_mixed_2['face']);
     // Remove any duplicates in the list
     $selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font);
         }
     }
 }
开发者ID:virendrayadav,项目名称:bigperlus,代码行数:19,代码来源:extra-functions.php


示例4: options_typography_google_fonts

 function options_typography_google_fonts()
 {
     $all_google_fonts = array_keys(options_typography_get_google_fonts());
     // Define all the options that possibly have a unique Google font
     $site_title_font = of_get_option('site_title_font', 'Open Sans, sans-serif');
     $headings = of_get_option('heading_font', false);
     $navigation = of_get_option('navigation', false);
     $body_font = of_get_option('body_font', false);
     $widget_title_font = of_get_option('widget_title_font', false);
     // Get the font face for each option and put it in an array
     $selected_fonts = array($site_title_font['face'], $headings['face'], $navigation['face'], $body_font['face'], $widget_title_font['face']);
     // Remove any duplicates in the list
     $selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font);
         }
     }
 }
开发者ID:sytzec,项目名称:wp,代码行数:21,代码来源:fonts.php


示例5: 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


示例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
     // ---------------------------------------------------------
//.........这里部分代码省略.........
开发者ID:shimion,项目名称:childfire,代码行数:101,代码来源:options.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());
     $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");
     // ---------------------------------------------------------
//.........这里部分代码省略.........
开发者ID:drupalninja,项目名称:schome_org,代码行数:101,代码来源:options.php


示例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
     // ----------------------------- 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP options_typography_get_os_fonts函数代码示例发布时间:2022-05-15
下一篇:
PHP options_for_select函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap