~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-content/themes/twentysixteen/functions.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
function twentysixteen_setup() {
48
48
        /*
49
49
         * Make theme available for translation.
50
 
         * Translations can be filed in the /languages/ directory.
 
50
         * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentysixteen
51
51
         * If you're building a theme based on Twenty Sixteen, use a find and replace
52
52
         * to change 'twentysixteen' to the name of your theme in all the template files
53
53
         */
54
 
        load_theme_textdomain( 'twentysixteen', get_template_directory() . '/languages' );
 
54
        load_theme_textdomain( 'twentysixteen' );
55
55
 
56
56
        // Add default posts and comments RSS feed links to head.
57
57
        add_theme_support( 'automatic-feed-links' );
253
253
        wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
254
254
 
255
255
        // Load the Internet Explorer specific stylesheet.
256
 
        wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160412' );
 
256
        wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
257
257
        wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
258
258
 
259
259
        // Load the Internet Explorer 8 specific stylesheet.
260
 
        wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160412' );
 
260
        wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' );
261
261
        wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
262
262
 
263
263
        // Load the Internet Explorer 7 specific stylesheet.
264
 
        wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160412' );
 
264
        wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' );
265
265
        wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
266
266
 
267
267
        // Load the html5 shiv.
268
268
        wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' );
269
269
        wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );
270
270
 
271
 
        wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160412', true );
 
271
        wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160816', true );
272
272
 
273
273
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
274
274
                wp_enqueue_script( 'comment-reply' );
275
275
        }
276
276
 
277
277
        if ( is_singular() && wp_attachment_is_image() ) {
278
 
                wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160412' );
 
278
                wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );
279
279
        }
280
280
 
281
 
        wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160412', true );
 
281
        wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160816', true );
282
282
 
283
283
        wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(
284
284
                'expand'   => __( 'expand child menu', 'twentysixteen' ),