当前位置: 首页>>代码示例>>PHP>>正文


PHP options_typography_get_google_fonts函数代码示例

本文整理汇总了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函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
     // ---------------------------------------------------------
     $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);
//.........这里部分代码省略.........
开发者ID:pearlohuy,项目名称:megashop,代码行数:101,代码来源:options.php

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

示例10: 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
     $typography_body = of_get_option('typography_body', array('size' => '12px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'color' => '#919090'));
     $typography_menu = of_get_option('typography_menu', array('size' => '14px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_heading = of_get_option('typography_heading', array('face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h1 = of_get_option('typography_h1', array('size' => '32px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h2 = of_get_option('typography_h2', array('size' => '24px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h3 = of_get_option('typography_h3', array('size' => '18px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h4 = of_get_option('typography_h4', array('size' => '16px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h5 = of_get_option('typography_h5', array('size' => '14px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     $typography_h6 = of_get_option('typography_h6', array('size' => '12px', 'face' => 'Kavoon', 'style' => 'normal', 'color' => '#70b3d0'));
     // Get the font face for each option and put it in an array
     $selected_fonts = array($typography_body['face'], $typography_menu['face'], $typography_heading['face'], $typography_h1['face'], $typography_h2['face'], $typography_h3['face'], $typography_h4['face'], $typography_h5['face'], $typography_h6['face']);
     // Remove any duplicates in the list
     $selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font);
         }
     }
 }
开发者ID:azeemgolive,项目名称:thefunkidsgame,代码行数:25,代码来源:options-sanitize.php

示例11: 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'];
     $standard_header = $options['standard_h_font'];
     $sidebar_carousel_footer_header = $options['sidebar_footer_h_font'];
     $team_member_names = $options['team_member_h_font'];
     //$google_mixed = of_get_option('google_mixed', false);
     //$google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
     // Get the font face for each option and put it in an array
     $selected_fonts = array($body, $navigation, $navigation_dropdown, $nectar_slider_heading, $home_slider_caption, $standard_header, $sidebar_carousel_footer_header, $team_member_names);
     $locations = array('body_font', 'navigation_font', 'navigation_dropdown_font', 'nectar_slider_heading_font', 'home_slider_caption_font', 'standard_h_font', 'sidebar_footer_h_font', 'team_member_h_font');
     // Remove any duplicates in the list
     //$selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     $count = 0;
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font, $locations[$count]);
         }
         $count++;
     }
 }
开发者ID:TheInventorMan,项目名称:ConnectNow,代码行数:29,代码来源:fonts.php

示例12: 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);
//.........这里部分代码省略.........
开发者ID:CamionCiterne,项目名称:wordpress_fbpc,代码行数:101,代码来源:options.php

示例13: of_options


//.........这里部分代码省略.........
     $of_options[] = array("name" => __("Social links title", THEME_NAME), "desc" => __("The title that will appear on top of the description.", THEME_NAME), "id" => "newsletter_title", "std" => __("You can find us also", THEME_NAME), "type" => "text");
     $of_options[] = array("name" => __("Social links description", THEME_NAME), "desc" => __("Describes what customers will get if they go to the social links.", THEME_NAME), "id" => "newsletter_description", "std" => __("Check our awesome domestic cats in Facebook or Twitter", THEME_NAME), "type" => "textarea");
     $of_options[] = array("name" => __("404 page text", THEME_NAME), "desc" => __("The text the customers will see when Not found page appears.", THEME_NAME), "id" => "page_not_found_text", "std" => __("The think you are looking for cannot be found.", THEME_NAME), "type" => "textarea");
     $of_options[] = array("name" => __("404 page jump to links", THEME_NAME), "desc" => __("List the pages your customers can choose to go to from the 404 page", THEME_NAME), "id" => "page_not_found_jump_to_links", "std" => "", "type" => "nested_pages");
     // Styling options
     $of_options[] = array("name" => __("Styling", THEME_NAME), "type" => "heading");
     $template_uri = get_template_directory_uri();
     $desc = __('Pick one of the predefined colour skins.', THEME_NAME) . '<div style="width:500px;overflow:hidden">';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Yellow', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_yellow.png" alt="' . __('Yellow', THEME_NAME) . '" title="' . __('Yellow', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Green', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_green.png" alt="' . __('Green', THEME_NAME) . '" title="' . __('Green', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Orange', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_orange.png" alt="' . __('Orange', THEME_NAME) . '" title="' . __('Orange', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Ocean', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_ocean.png" alt="' . __('Ocean', THEME_NAME) . '" title="' . __('Ocean', THEME_NAME) . '"></div>';
     $desc .= '<div style="float: left;margin-right:5px">' . __('Forest', THEME_NAME) . '<br><img src="' . $template_uri . '/assets/core/img/wp-admin/colour_skin_thumb_forest.png" alt="' . __('Forest', THEME_NAME) . '" title="' . __('Forest', THEME_NAME) . '"></div>';
     $desc .= '</div>';
     $of_options[] = array("name" => __("Colour skin", THEME_NAME), "desc" => $desc, "id" => "colour_skin", "std" => "yellow", "type" => "select", "options" => array('yellow' => __('Yellow', THEME_NAME), 'green' => __('Green', THEME_NAME), 'orange' => __('Orange', THEME_NAME), 'ocean' => __('Ocean', THEME_NAME), 'forest' => __('Forest', THEME_NAME)));
     $of_options[] = array("name" => __("Header configuration", THEME_NAME), "desc" => __('Choose header configuration from 4 different configurations. Keep in mind that Revolution slider goes hand in hand with Quick search. See "Flat header image" option below for float image upload.', THEME_NAME), "id" => "header_configuration", "std" => "home_slider_inner_flat", "type" => "radio", "options" => array('home_slider_inner_flat' => __('Homepage: Revolution slider, Inner pages: flat image', THEME_NAME), 'home_flat_inner_flat' => __('Homepage: flat header, Inner page: flat image', THEME_NAME), 'home_slider_inner_slider' => __('Homepage: Revolution slider, Inner pages: Revolution slider', THEME_NAME), 'home_flat_inner_slider' => __('Homepage: flat image, Inner pages: Revolution slider')));
     $of_options[] = array("name" => __("Revolution slider ID", THEME_NAME), "desc" => __('Set the ID of the Revolution slider you want to use.', THEME_NAME), "id" => "revslider_id", "std" => "homeslider", "type" => "text");
     $of_options[] = array("name" => __("Sidebar position", THEME_NAME), "desc" => __('Switch the sidebar and the mainbar positions.', THEME_NAME), "id" => "sidebar_position", "std" => "left", "type" => "radio", "options" => array("left" => __('Left', THEME_NAME), 'right' => __('Right')));
     $of_options[] = array("name" => __("Sidebar position on mobile", THEME_NAME), "desc" => __('The position of the sidebar when the site is visited on a mobile device - before or after the main content.', THEME_NAME), "id" => "sidebar_position_mobile", "std" => "after", "type" => "radio", "options" => array("before" => __('Before', THEME_NAME), 'after' => __('After')));
     /**
      * Returns an array of system fonts
      * Feel free to edit this, update the font fallbacks, etc.
      */
     function options_typography_get_os_fonts()
     {
         // OS Font Defaults
         $os_faces = array('Arial, sans-serif' => 'Arial', '"Avant Garde", sans-serif' => 'Avant Garde', 'Cambria, Georgia, serif' => 'Cambria', 'Copse, sans-serif' => 'Copse', 'Garamond, "Hoefler Text", Times New Roman, Times, serif' => 'Garamond', 'Georgia, serif' => 'Georgia', '"Helvetica Neue", Helvetica, sans-serif' => 'Helvetica Neue', 'Tahoma, Geneva, sans-serif' => 'Tahoma');
         return $os_faces;
     }
     /**
      * Returns a select list of Google fonts
      * Feel free to edit this, update the fallbacks, etc.
      */
     function options_typography_get_google_fonts()
     {
         // Google Font Defaults
         $google_faces = array('Arvo, serif' => 'Arvo', 'Copse, sans-serif' => 'Copse', 'Droid Sans, sans-serif' => 'Droid Sans', 'Droid Serif, serif' => 'Droid Serif', 'Lobster, cursive' => 'Lobster', 'Nobile, sans-serif' => 'Nobile', 'Open Sans, sans-serif' => 'Open Sans', 'Oswald, sans-serif' => 'Oswald', 'Pacifico, cursive' => 'Pacifico', 'Rokkitt, serif' => 'Rokkit', 'PT Sans, sans-serif' => 'PT Sans', 'Quattrocento, serif' => 'Quattrocento', 'Raleway, cursive' => 'Raleway', 'Ubuntu, sans-serif' => 'Ubuntu', 'Yanone Kaffeesatz, sans-serif' => 'Yanone Kaffeesatz');
         return $google_faces;
     }
     $typography_mixed_fonts = array_merge(options_typography_get_os_fonts(), options_typography_get_google_fonts());
     asort($typography_mixed_fonts);
     $of_options[] = array('name' => __('System Fonts and Google Fonts Mixed', THEME_NAME), 'desc' => __('Google fonts mixed with system fonts.', THEME_NAME), 'id' => 'google_mixed', 'std' => array('size' => '12px', 'face' => 'Open Sans, sans-serif', 'color' => '#171717'), 'type' => 'typography', 'options' => array('faces' => $typography_mixed_fonts, 'styles' => false));
     $of_options[] = array("name" => __("Flat header image", THEME_NAME), "desc" => __("940x220 image for inner pages. Image will be auto cropped.", THEME_NAME), "id" => "inner_pages_header", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Logo", THEME_NAME), "desc" => __("Upload your company's logo", THEME_NAME), "id" => "logo", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Background", THEME_NAME), "desc" => __("Upload a pattern or image for your main background.", THEME_NAME), "id" => "background_image", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Background repeat", THEME_NAME), "desc" => __("Choose the \"repeat\" option if you want your pattern to repeat", THEME_NAME), "id" => "background_image_repeat", "std" => "repeat", "type" => "radio", "options" => array('repeat' => __('Repeat', THEME_NAME), 'no-repeat' => __('No repeat', THEME_NAME)));
     $of_options[] = array("name" => __("Header background", THEME_NAME), "desc" => __("Upload a pattern or image for your header background.", THEME_NAME), "id" => "header_image", "std" => "", "type" => "media");
     $of_options[] = array("name" => __("Header background repeat", THEME_NAME), "desc" => __("Choose the \"repeat\" option if you want your pattern to repeat", THEME_NAME), "id" => "header_image_repeat", "std" => "repeat", "type" => "radio", "options" => array('repeat' => __('Repeat', THEME_NAME), 'no-repeat' => __('No repeat', THEME_NAME)));
     $of_options[] = array("name" => __("Show breadcrumbs", THEME_NAME), "desc" => __("Show/hide breadcrumbs on all pages.", THEME_NAME), "id" => "show_breadcrumbs", "std" => "yes", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     // Color scheme
     $of_options[] = array("name" => __("Color scheme", THEME_NAME), "type" => "heading");
     $colour_skin = estetico_get_setting('colour_skin');
     require_once get_template_directory() . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'skins' . DIRECTORY_SEPARATOR . $colour_skin . DIRECTORY_SEPARATOR . 'scheme.php';
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("<strong>Important:</strong> If you have <strong>just</strong> changed the skin option, please refresh the page. After the refresh is done, please click the reset button to restore the original colours of the skin (if you have any previous changes). If you don't do that, the theme will still use the old colours.", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("Enable color overwrite", THEME_NAME), "desc" => __("The colours of the current skin will be overwritten by the ones you specify here", THEME_NAME), "id" => "enable_color_overwrite", "std" => "no", "type" => "radio", "options" => array('yes' => __('Yes', THEME_NAME), 'no' => __('No', THEME_NAME)));
     $of_options[] = array("name" => "", "type" => 'reset_colors', "desc" => "The colours will be reset to the skin's default ones. All changes will be automatically saved.");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("Headings and top navigation hover style", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("", THEME_NAME), "id" => "color_1", "std" => $scheme['color_1'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("Links", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("", THEME_NAME), "id" => "color_2", "std" => $scheme['color_2'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => "", "id" => "random_id_1", "std" => __("General buttons and top navigation buttons states.", THEME_NAME), "icon" => true, "type" => "info");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Background colour for old browsers", THEME_NAME), "id" => "color_3", "std" => $scheme['color_3'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient top colour", THEME_NAME), "id" => "color_4", "std" => $scheme['color_4'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Gradient bottom colour", THEME_NAME), "id" => "color_5", "std" => $scheme['color_5'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Top navigation hover colour", THEME_NAME), "id" => "color_6", "std" => $scheme['color_6'], "type" => "color");
     $of_options[] = array("name" => __("", THEME_NAME), "desc" => __("Top navigation sub level hover colour", THEME_NAME), "id" => "color_23", "std" => $scheme['color_23'], "type" => "color");
开发者ID:pistonsky,项目名称:taivilla,代码行数:67,代码来源:functions.options.php

示例14: 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'];
     $page_heading = $options['page_heading_font'];
     $page_heading_subtitle = $options['page_heading_subtitle_font'];
     $h1 = $options['h1_font'];
     $h2 = $options['h2_font'];
     $h3 = $options['h3_font'];
     $h4 = $options['h4_font'];
     $h5 = $options['h5_font'];
     $italic = $options['i_font'];
     $sidebar_carousel_footer_header = $options['sidebar_footer_h_font'];
     $team_member_names = $options['team_member_h_font'];
     //$google_mixed = of_get_option('google_mixed', false);
     //$google_mixed_2 = of_get_option('google_mixed_2', 'Arvo, serif');
     // Get the font face for each option and put it in an array
     $selected_fonts = array($body, $navigation, $navigation_dropdown, $nectar_slider_heading, $home_slider_caption, $testimonial, $page_heading, $page_heading_subtitle, $h1, $h2, $h3, $h4, $h5, $italic, $sidebar_carousel_footer_header, $team_member_names);
     $locations = array('body_font', 'navigation_font', 'navigation_dropdown_font', 'nectar_slider_heading_font', 'home_slider_caption_font', 'testimonial_font', 'page_heading_font', 'page_heading_subtitle_font', 'h1_font', 'h2_font', 'h3_font', 'h4_font', 'h5_font', 'i_font', 'sidebar_footer_h_font', 'team_member_h_font');
     // Remove any duplicates in the list
     //$selected_fonts = array_unique($selected_fonts);
     // Check each of the unique fonts against the defined Google fonts
     // If it is a Google font, go ahead and call the function to enqueue it
     $count = 0;
     foreach ($selected_fonts as $font) {
         if (in_array($font, $all_google_fonts)) {
             options_typography_enqueue_google_font($font, $locations[$count]);
         }
         //custom included fonts
         if ($font == 'Lovelo, sans-serif') {
             if (!function_exists('nectar_lovelo_font')) {
                 function nectar_lovelo_font()
                 {
                     echo "\n\t\t\t\t\t\t<!-- A font fabric font - http://fontfabric.com/lovelo-font/ -->\n\t\t\t\t\t\t<style> @font-face { font-family: 'Lovelo'; src: url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.eot'); src: url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.eot?#iefix') format('embedded-opentype'), url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.woff') format('woff'),  url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.ttf') format('truetype'), url('" . get_template_directory_uri() . "/css/fonts/Lovelo_Black.svg#loveloblack') format('svg'); font-weight: normal; font-style: normal; } </style>";
                 }
             }
             add_action('wp_head', 'nectar_lovelo_font');
         }
         $count++;
     }
 }
开发者ID:jjmas,项目名称:jjmas.net,代码行数:47,代码来源:fonts.php

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


注:本文中的options_typography_get_google_fonts函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。