Beispiel #1
0
/**
 * Enqueue Google fonts style to admin screen for custom header display.
 *
 */
function thebox_admin_fonts()
{
    wp_enqueue_style('thebox-admin-fonts', thebox_fonts_url(), array(), null);
}
Beispiel #2
0
/**
 * Enqueue scripts and styles for the front end.
 *
 * @since The Box 1.0
 *
 * @return void
 */
function thebox_scripts()
{
    // Add Source Sans Pro and Oxygen fonts, used in the main stylesheet.
    wp_enqueue_style('thebox-fonts', thebox_fonts_url(), array(), null);
    // Add Genericons font, used in the main stylesheet.
    wp_enqueue_style('icon-fonts', get_template_directory_uri() . '/icon-fonts.css', array(), '1.0');
    // Loads our main stylesheet.
    wp_enqueue_style('thebox-style', get_stylesheet_uri(), array(), '2014-05-13');
    wp_enqueue_script('small-menu', get_template_directory_uri() . '/js/small-menu.js', array('jquery'), '20120206', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20120202');
    }
}