47
47
function twentysixteen_setup() {
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
54
load_theme_textdomain( 'twentysixteen', get_template_directory() . '/languages' );
54
load_theme_textdomain( 'twentysixteen' );
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() );
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' );
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' );
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' );
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' );
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 );
273
273
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
274
274
wp_enqueue_script( 'comment-reply' );
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' );
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 );
283
283
wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(
284
284
'expand' => __( 'expand child menu', 'twentysixteen' ),