From a1d39f1e1e76516eb31f65c5bf8cd82b442bfa9e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 24 Aug 2012 21:07:19 +0000 Subject: [PATCH] Twenty Twelve: rework navigation to remove need for jQuery and support wp_page_menu markup better. Fixes #21562. git-svn-id: http://core.svn.wordpress.org/trunk@21611 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/functions.php | 2 +- wp-content/themes/twentytwelve/header.php | 4 +-- .../themes/twentytwelve/js/navigation.js | 31 +++++++++++++------ wp-content/themes/twentytwelve/rtl.css | 13 +++----- wp-content/themes/twentytwelve/style.css | 25 ++++++--------- 5 files changed, 38 insertions(+), 37 deletions(-) diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index a84aaea953..19636a1328 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -104,7 +104,7 @@ function twentytwelve_scripts_styles() { * JavaScript for handling navigation menus and the resized * styles for small screen sizes. */ - wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20120820', true ); + wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120824', true ); /** * Load special font CSS file. diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php index 44cd21fc71..2e4bf62a5a 100644 --- a/wp-content/themes/twentytwelve/header.php +++ b/wp-content/themes/twentytwelve/header.php @@ -35,10 +35,10 @@

-