本文整理汇总了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);
}