239
239
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
241
241
// Load the Internet Explorer specific stylesheet.
242
wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20150825' );
242
wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20150930' );
243
243
wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
245
245
// Load the Internet Explorer 8 specific stylesheet.
246
wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20150825' );
246
wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20151230' );
247
247
wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
249
249
// Load the Internet Explorer 7 specific stylesheet.
250
wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20150825' );
250
wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20150930' );
251
251
wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
253
253
// Load the html5 shiv.
254
254
wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' );
255
255
wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );
257
wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20150825', true );
257
wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151112', true );
259
259
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
260
260
wp_enqueue_script( 'comment-reply' );
263
263
if ( is_singular() && wp_attachment_is_image() ) {
264
wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20150825' );
264
wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20151104' );
267
wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150825', true );
267
wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20151204', true );
269
269
wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(
270
270
'expand' => __( 'expand child menu', 'twentysixteen' ),
391
391
add_filter( 'wp_get_attachment_image_attributes', 'twentysixteen_post_thumbnail_sizes_attr', 10 , 3 );
394
* Modifies tag cloud widget arguments to have all tags in the widget same font size.
396
* @since Twenty Sixteen 1.1
398
* @param array $args Arguments for tag cloud widget.
399
* @return array A new modified arguments.
401
function twentysixteen_widget_tag_cloud_args( $args ) {
402
$args['largest'] = 1;
403
$args['smallest'] = 1;
404
$args['unit'] = 'em';
407
add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' );