Ticket #21675: 21675.diff
| File 21675.diff, 17.9 KB (added by , 14 years ago) |
|---|
-
wp-content/themes/twentytwelve/inc/theme-options.php
44 44 } 45 45 46 46 /** 47 * Register the form setting for our options array.47 * Registers the form setting for our options array. 48 48 * 49 49 * This function is attached to the admin_init action hook. 50 50 * … … 86 86 } 87 87 88 88 /** 89 * Add our theme options page to the admin menu.89 * Adds our theme options page to the admin menu. 90 90 * 91 91 * This function is attached to the admin_menu action hook. 92 92 * … … 175 175 } 176 176 177 177 /** 178 * Sanitize and validate form input. Accepts an array, return a sanitized array.178 * Sanitizes and validates form input. 179 179 * 180 180 * @see options_init() 181 181 * @access public … … 195 195 } 196 196 197 197 /** 198 * Implement Twenty Twelve theme options into Theme Customizer.198 * Implements Twenty Twelve theme options into Theme Customizer. 199 199 * 200 200 * @since Twenty Twelve 1.0 201 201 * @access public … … 233 233 } 234 234 235 235 /** 236 * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.236 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 237 237 * 238 238 * @since Twenty Twelve 1.0 239 239 * @access public … … 249 249 } 250 250 251 251 /** 252 * Create path to load fonts CSS file with correct protocol.252 * Creates path to load fonts CSS file with correct protocol. 253 253 * 254 254 * @since Twenty Twelve 1.0 255 255 * @access public -
wp-content/themes/twentytwelve/content-none.php
12 12 <header class="entry-header"> 13 13 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> 14 14 </header><!-- .entry-header --> 15 15 16 16 <div class="entry-content"> 17 17 <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> 18 18 <?php get_search_form(); ?> -
wp-content/themes/twentytwelve/image.php
90 90 91 91 </div><!-- .entry-content --> 92 92 93 </article><!-- #post -->93 </article><!-- #post-<?php the_ID(); ?> --> 94 94 95 95 <?php comments_template(); ?> 96 96 97 97 <?php endwhile; // end of the loop. ?> 98 98 99 99 </div><!-- #content --> 100 </div><!-- #primary .site-content-->100 </div><!-- #primary --> 101 101 102 102 <?php get_footer(); ?> 103 No newline at end of file -
wp-content/themes/twentytwelve/content-aside.php
14 14 <div class="entry-content"> 15 15 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 16 16 </div><!-- .entry-content --> 17 </div> 17 </div><!-- .aside --> 18 18 19 19 <footer class="entry-meta"> 20 20 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 21 21 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_date(); ?></a> 22 22 </footer><!-- .entry-meta --> 23 </article><!-- #post -->23 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentytwelve/content-page.php
20 20 <footer class="entry-meta"> 21 21 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 22 22 </footer><!-- .entry-meta --> 23 </article><!-- #post -->23 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentytwelve/header.php
39 39 <h3 class="menu-toggle"><?php _e( 'Show menu', 'twentytwelve' ); ?></h3> 40 40 <div class="skip-link assistive-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a></div> 41 41 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?> 42 </nav> 42 </nav><!-- #site-navigation --> 43 43 44 44 <?php $header_image = get_header_image(); 45 45 if ( ! empty( $header_image ) ) : ?> -
wp-content/themes/twentytwelve/content.php
29 29 </div><!-- .comments-link --> 30 30 <?php endif; // comments_open() ?> 31 31 </header><!-- .entry-header --> 32 32 33 33 <?php if ( is_search() ) : // Only display Excerpts for Search ?> 34 34 <div class="entry-summary"> 35 35 <?php the_excerpt(); ?> … … 40 40 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> 41 41 </div><!-- .entry-content --> 42 42 <?php endif; ?> 43 43 44 44 <footer class="entry-meta"> 45 45 <?php twentytwelve_entry_meta(); ?> 46 46 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> … … 61 61 </div><!-- #author-info --> 62 62 <?php endif; ?> 63 63 </footer><!-- .entry-meta --> 64 </article><!-- #post -->64 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentytwelve/functions.php
35 35 * Sets up theme defaults and registers support for various WordPress features. 36 36 * 37 37 * @uses load_theme_textdomain() For translation/localization support. 38 * @uses add_theme_support() To add support for post thumbnails, automatic feed links, custom headers39 * andbackgrounds, and post formats.38 * @uses add_theme_support() To add support for post thumbnails, automatic feed links, 39 * custom backgrounds, and post formats. 40 40 * @uses register_nav_menu() To add support for navigation menus. 41 41 * @uses set_post_thumbnail_size() To set a custom post thumbnail size. 42 42 * … … 45 45 function twentytwelve_setup() { 46 46 global $twentytwelve_options; 47 47 48 /* *48 /* 49 49 * Make Twenty Twelve available for translation. 50 50 * Translations can be added to the /languages/ directory. 51 51 * If you're building a theme based on Twenty Twelve, use a find and replace … … 69 69 // This theme uses wp_nav_menu() in one location. 70 70 register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); 71 71 72 // Add support for custom background .72 // Add support for custom background and a default background color. 73 73 add_theme_support( 'custom-background', array( 74 74 'default-color' => 'e6e6e6', 75 75 ) ); … … 86 86 require( get_template_directory() . '/inc/custom-header.php' ); 87 87 88 88 /** 89 * Enqueue scripts and styles for front-end.89 * Enqueues scripts and styles for front-end. 90 90 * 91 91 * @since Twenty Twelve 1.0 92 92 */ 93 93 function twentytwelve_scripts_styles() { 94 94 global $twentytwelve_options; 95 95 96 /* *96 /* 97 97 * Add JavaScript to pages with the comment form to support 98 98 * sites with threaded comments (when in use). 99 99 */ 100 100 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 101 101 wp_enqueue_script( 'comment-reply' ); 102 102 103 /* *103 /* 104 104 * JavaScript for handling navigation menus and the resized 105 105 * styles for small screen sizes. 106 106 */ 107 107 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120824', true ); 108 108 109 /* *109 /* 110 110 * Load special font CSS file. 111 111 * Depends on Theme Options setting. 112 112 */ … … 114 114 if ( $options['enable_fonts'] ) 115 115 wp_enqueue_style( 'twentytwelve-fonts', $twentytwelve_options->custom_fonts_url(), array(), null ); 116 116 117 /* *117 /* 118 118 * Load our main CSS file. 119 119 */ 120 120 wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 121 121 122 /* *122 /* 123 123 * Load HTML5 shiv for older IE version support for HTML5 elements. 124 124 * Ideally, should load after main CSS file. 125 125 * … … 139 139 * 140 140 * @param string $title Default title text for current view. 141 141 * @param string $sep Optional separator. 142 * 142 143 * @return string Filtered title. 143 144 */ 144 145 function twentytwelve_wp_title( $title, $sep ) { … … 164 165 add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); 165 166 166 167 /** 167 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.168 * Gets our wp_nav_menu() fallback, wp_page_menu(), to show a home link. 168 169 * 169 170 * @since Twenty Twelve 1.0 170 171 */ … … 175 176 add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); 176 177 177 178 /** 178 * Register our single widget area.179 * Registers our single widget area. 179 180 * 180 181 * @since Twenty Twelve 1.0 181 182 */ … … 213 214 add_action( 'widgets_init', 'twentytwelve_widgets_init' ); 214 215 215 216 /** 216 * Count the number of footer sidebars to enable dynamic classes for the footer217 * Counts the number of footer sidebars to enable dynamic classes for the footer 217 218 * 218 219 * @since Twenty Twelve 1.0 219 220 */ … … 228 229 229 230 if ( ! function_exists( 'twentytwelve_content_nav' ) ) : 230 231 /** 231 * Display navigation to next/previous pages when applicable.232 * Displays navigation to next/previous pages when applicable. 232 233 * 233 234 * @since Twenty Twelve 1.0 234 235 */ … … 288 289 sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) 289 290 ); 290 291 ?> 291 </header> 292 </header><!-- .comment-meta --> 292 293 293 294 <?php if ( '0' == $comment->comment_approved ) : ?> 294 295 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p> … … 297 298 <section class="comment comment-content"> 298 299 <?php comment_text(); ?> 299 300 <?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?> 300 </section> 301 </section><!-- .comment --> 301 302 302 303 <div class="reply"> 303 304 <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>↓</span>', 'twentytwelve' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 304 305 </div><!-- .reply --> 305 </article><!-- #comment- ##-->306 </article><!-- #comment-<?php comment_ID(); ?> --> 306 307 <?php 307 308 break; 308 309 endswitch; // end comment_type check … … 384 385 add_filter( 'body_class', 'twentytwelve_body_class' ); 385 386 386 387 /** 387 * Adjust $content width for full-width and single image attachment templates388 * Adjusts $content width for full-width and single image attachment templates 388 389 * and when there are no active widgets in the sidebar. 389 390 * 390 391 * @since Twenty Twelve 1.0 -
wp-content/themes/twentytwelve/404.php
15 15 <article id="post-0" class="post error404 no-results not-found"> 16 16 <header class="entry-header"> 17 17 <h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentytwelve' ); ?></h1> 18 </header> 18 </header><!-- .entry-header --> 19 19 20 20 <div class="entry-content"> 21 21 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentytwelve' ); ?></p> … … 24 24 </article><!-- #post-0 --> 25 25 26 26 </div><!-- #content --> 27 </div><!-- #primary .site-content-->27 </div><!-- #primary --> 28 28 29 29 <?php get_footer(); ?> 30 No newline at end of file -
wp-content/themes/twentytwelve/content-quote.php
17 17 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 18 18 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_date(); ?></a> 19 19 </footer><!-- .entry-meta --> 20 </article><!-- #post -->20 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentytwelve/author.php
26 26 27 27 <header class="archive-header"> 28 28 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1> 29 </header> 29 </header><!-- .archive-header --> 30 30 31 31 <?php 32 32 /* Since we called the_post() above, we need to … … 64 64 <?php endif; ?> 65 65 66 66 </div><!-- #content --> 67 </section><!-- #primary .site-content-->67 </section><!-- #primary --> 68 68 69 69 <?php get_sidebar(); ?> 70 70 <?php get_footer(); ?> 71 No newline at end of file -
wp-content/themes/twentytwelve/homepage.php
11 11 12 12 <div id="primary" class="site-content"> 13 13 <div id="content" role="main"> 14 14 15 15 <?php while ( have_posts() ) : the_post(); ?> 16 16 <?php if ( has_post_thumbnail() ) { ?> 17 17 <div class="entry-page-image"> 18 18 <?php the_post_thumbnail(); ?> 19 19 </div> 20 20 <?php } ?> 21 21 22 22 <?php get_template_part( 'content', 'page' ); ?> 23 23 24 24 <?php endwhile; // end of the loop. ?> 25 25 26 26 </div><!-- #content --> 27 </div><!-- #primary .site-content-->27 </div><!-- #primary --> 28 28 29 29 <?php get_sidebar( 'home' ); ?> 30 30 <?php get_footer(); ?> 31 No newline at end of file -
wp-content/themes/twentytwelve/content-link.php
13 13 <div class="entry-content"> 14 14 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 15 15 </div><!-- .entry-content --> 16 16 17 17 <footer class="entry-meta"> 18 18 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<div class="edit-link">', '</div>' ); ?> 19 19 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_date(); ?></a> 20 20 </footer><!-- .entry-meta --> 21 </article><!-- #post -->21 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentytwelve/editor-style.css
1 /* *2 *Theme Name: Twenty Twelve3 *Description: Used to style the TinyMCE editor.1 /* 2 Theme Name: Twenty Twelve 3 Description: Used to style the TinyMCE editor. 4 4 */ 5 5 6 6 html { -
wp-content/themes/twentytwelve/content-image.php
12 12 <div class="entry-content"> 13 13 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 14 14 </div><!-- .entry-content --> 15 15 16 16 <footer class="entry-meta"> 17 17 <h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 18 18 <h2><?php the_date(); ?></h2> 19 19 </footer><!-- .entry-meta --> 20 </article><!-- #post -->20 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentytwelve/search.php
16 16 17 17 <header class="page-header"> 18 18 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 19 </header> 19 </header><!-- .page-header --> 20 20 21 21 <?php twentytwelve_content_nav( 'nav-above' ); ?> 22 22 … … 43 43 <?php endif; ?> 44 44 45 45 </div><!-- #content --> 46 </section><!-- #primary .site-content-->46 </section><!-- #primary --> 47 47 48 48 <?php get_sidebar(); ?> 49 49 <?php get_footer(); ?> 50 No newline at end of file -
wp-content/themes/twentytwelve/archive.php
49 49 echo '<div class="archive-meta">' . $category_description . '</div>'; 50 50 } 51 51 ?> 52 </header><!-- /.archive-header -->52 </header><!-- .archive-header --> 53 53 54 54 <?php 55 55 /* Start the Loop */ … … 71 71 <?php endif; ?> 72 72 73 73 </div><!-- #content --> 74 </section><!-- #primary .site-content-->74 </section><!-- #primary --> 75 75 76 76 <?php get_sidebar(); ?> 77 77 <?php get_footer(); ?> 78 No newline at end of file
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)