當前位置: 首頁>>代碼示例>>PHP>>正文


PHP twentyfourteen_font_url函數代碼示例

本文整理匯總了PHP中twentyfourteen_font_url函數的典型用法代碼示例。如果您正苦於以下問題:PHP twentyfourteen_font_url函數的具體用法?PHP twentyfourteen_font_url怎麽用?PHP twentyfourteen_font_url使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了twentyfourteen_font_url函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: theme_enqueue_styles

function theme_enqueue_styles()
{
    $parent_style = 'parent-style';
    wp_enqueue_style($parent_style, get_template_directory_uri() . '/style.css');
    // Add Lato font, used in the main stylesheet.
    wp_enqueue_style('twentyfourteen-lato', twentyfourteen_font_url(), array(), null);
    // Add Genericons font, used in the main stylesheet.
    wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3');
    // Load our main stylesheet.
    wp_enqueue_style('twentyfourteen-style', get_stylesheet_uri());
    // Load the Internet Explorer specific stylesheet.
    wp_enqueue_style('twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array('twentyfourteen-style'), '20131205');
    wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', array($parent_style));
}
開發者ID:TheOpenSourceNinja,項目名稱:OSN-WordPress-Theme,代碼行數:14,代碼來源:functions.php

示例2: twentyfourteen_admin_fonts

/**
 * Enqueue Google fonts style to admin screen for custom header display.
 *
 * @since Twenty Fourteen 1.0
 */
function twentyfourteen_admin_fonts()
{
    wp_enqueue_style('twentyfourteen-lato', twentyfourteen_font_url(), array(), null);
}
開發者ID:riteshkmr33,項目名稱:ovessnce,代碼行數:9,代碼來源:functions_bck_1_12_2014.php

示例3: twentyfourteen_scripts

/**
 * Enqueue scripts and styles for front end.
 *
 * @since Twenty Fourteen 1.0
 *
 * @return void
 */
function twentyfourteen_scripts()
{
    // Add Lato font, used in the main stylesheet.
    wp_enqueue_style('twentyfourteen-lato');
    // Add Genericons font, used in the main stylesheet.
    wp_enqueue_style('genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '3.0');
    // Loads our main stylesheet.
    wp_enqueue_style('twentyfourteen-style', get_stylesheet_uri());
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20130402');
    }
    if (is_active_sidebar('sidebar-3')) {
        wp_enqueue_script('jquery-masonry');
    }
    wp_enqueue_script('twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '20131011', true);
    // Add Lato font used in the main stylesheet.
    wp_enqueue_style('twentyfourteen-lato', twentyfourteen_font_url(), array(), null);
}
開發者ID:jacques,項目名稱:wordpress,代碼行數:28,代碼來源:functions.php


注:本文中的twentyfourteen_font_url函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。