本文整理匯總了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));
}
示例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);
}
示例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);
}