Make WordPress Core


Ignore:
Timestamp:
10/11/2012 10:07:06 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve: implement better support for IE7 and IE8 (don't use mobile menu). See #22044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/functions.php

    r22066 r22201  
    8989 */
    9090function twentytwelve_scripts_styles() {
     91    global $wp_styles;
     92
    9193    /*
    9294     * Adds JavaScript to pages with the comment form to support
     
    142144     */
    143145    wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
     146
     147    /*
     148     * Loads the Internet Explorer specific stylesheet.
     149     */
     150    wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
     151    $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    144152}
    145153add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
Note: See TracChangeset for help on using the changeset viewer.