WordPress.org

Make WordPress Themes


Ignore:
Location:
twentyseventeen/1.2
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • twentyseventeen/1.2/README.txt

    r80573 r80573  
    33Requires at least: WordPress 4.7 
    44Tested up to: WordPress 4.7 
    5 Version: 1.1 
     5Version: 1.2 
    66License: GPLv2 or later 
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    6161== Changelog == 
    6262 
     63= 1.2 = 
     64* Released: April 18, 2017 
     65 
     66https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.2 
     67 
    6368= 1.1 = 
    6469* Released: January 6, 2017 
    6570 
    66 - Fix incorrect $content_width value in theme 
    67 - Ensure functions in customize-controls.js don't count on Customizer sections always being present 
    68 - Deprecate page_home nav menu item starter content 
    69 - Introduce a theme-specific filter twentyseventeen_starter_content for customizing the starter content array 
     71https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.1 
    7072 
    7173= 1.0 = 
  • twentyseventeen/1.2/footer.php

    r80573 r80573  
    1010 * @subpackage Twenty_Seventeen 
    1111 * @since 1.0 
    12  * @version 1.0 
     12 * @version 1.2 
    1313 */ 
    1414 
     
    2323 
    2424                if ( has_nav_menu( 'social' ) ) : ?> 
    25                     <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> 
     25                    <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> 
    2626                        <?php 
    2727                            wp_nav_menu( array( 
  • twentyseventeen/1.2/functions.php

    r80573 r80573  
    441441 
    442442    if ( has_nav_menu( 'top' ) ) { 
    443         wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array(), '1.0', true ); 
     443        wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '1.0', true ); 
    444444        $twentyseventeen_l10n['expand']         = __( 'Expand child menu', 'twentyseventeen' ); 
    445445        $twentyseventeen_l10n['collapse']       = __( 'Collapse child menu', 'twentyseventeen' ); 
  • twentyseventeen/1.2/style.css

    r80573 r80573  
    55Author URI: https://wordpress.org/ 
    66Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device. 
    7 Version: 1.1 
     7Version: 1.2 
    88License: GNU General Public License v2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    452452} 
    453453 
    454 h2 { 
     454h2, 
     455.home.blog .entry-title { 
    455456    color: #666; 
    456457    font-size: 20px; 
     
    31463147 
    31473148    h2, 
     3149    .home.blog .entry-title, 
    31483150    .page .panel-content .recent-posts .entry-title { 
    31493151        font-size: 26px; 
  • twentyseventeen/1.2/template-parts/navigation/navigation-top.php

    r80573 r80573  
    66 * @subpackage Twenty_Seventeen 
    77 * @since 1.0 
    8  * @version 1.0 
     8 * @version 1.2 
    99 */ 
    1010 
    1111?> 
    12 <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php _e( 'Top Menu', 'twentyseventeen' ); ?>"> 
     12<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>"> 
    1313    <button class="menu-toggle" aria-controls="top-menu" aria-expanded="false"><?php echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) ); echo twentyseventeen_get_svg( array( 'icon' => 'close' ) ); _e( 'Menu', 'twentyseventeen' ); ?></button> 
    1414    <?php wp_nav_menu( array( 
  • twentyseventeen/1.2/template-parts/post/content-audio.php

    r80573 r80573  
    88 * @subpackage Twenty_Seventeen 
    99 * @since 1.0 
    10  * @version 1.0 
     10 * @version 1.2 
    1111 */ 
    1212 
     
    3434            if ( is_single() ) { 
    3535                the_title( '<h1 class="entry-title">', '</h1>' ); 
     36            } elseif ( is_front_page() && is_home() ) { 
     37                the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); 
    3638            } else { 
    3739                the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); 
  • twentyseventeen/1.2/template-parts/post/content-excerpt.php

    r80573 r80573  
    1010 * @subpackage Twenty_Seventeen 
    1111 * @since 1.0 
    12  * @version 1.0 
     12 * @version 1.2 
    1313 */ 
    1414 
     
    3131        <?php endif; ?> 
    3232 
    33         <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> 
     33        <?php if ( is_front_page() && ! is_home() ) { 
     34 
     35            // The excerpt is being displayed within a front page section, so it's a lower hierarchy than h2. 
     36            the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); 
     37        } else { 
     38            the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); 
     39        } ?> 
    3440    </header><!-- .entry-header --> 
    3541 
  • twentyseventeen/1.2/template-parts/post/content-gallery.php

    r80573 r80573  
    88 * @subpackage Twenty_Seventeen 
    99 * @since 1.0 
    10  * @version 1.0 
     10 * @version 1.2 
    1111 */ 
    1212?> 
     
    3333            if ( is_single() ) { 
    3434                the_title( '<h1 class="entry-title">', '</h1>' ); 
     35            } elseif ( is_front_page() && is_home() ) { 
     36                the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); 
    3537            } else { 
    3638                the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); 
  • twentyseventeen/1.2/template-parts/post/content-image.php

    r80573 r80573  
    88 * @subpackage Twenty_Seventeen 
    99 * @since 1.0 
    10  * @version 1.0 
     10 * @version 1.2 
    1111 */ 
    1212?> 
     
    3333            if ( is_single() ) { 
    3434                the_title( '<h1 class="entry-title">', '</h1>' ); 
     35            } elseif ( is_front_page() && is_home() ) { 
     36                the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); 
    3537            } else { 
    3638                the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); 
  • twentyseventeen/1.2/template-parts/post/content-video.php

    r80573 r80573  
    88 * @subpackage Twenty_Seventeen 
    99 * @since 1.0 
    10  * @version 1.0 
     10 * @version 1.2 
    1111 */ 
    1212?> 
     
    3333            if ( is_single() ) { 
    3434                the_title( '<h1 class="entry-title">', '</h1>' ); 
     35            } elseif ( is_front_page() && is_home() ) { 
     36                the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); 
    3537            } else { 
    3638                the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); 
  • twentyseventeen/1.2/template-parts/post/content.php

    r80573 r80573  
    88 * @subpackage Twenty_Seventeen 
    99 * @since 1.0 
    10  * @version 1.0 
     10 * @version 1.2 
    1111 */ 
    1212 
     
    3434            if ( is_single() ) { 
    3535                the_title( '<h1 class="entry-title">', '</h1>' ); 
     36            } elseif ( is_front_page() && is_home() ) { 
     37                the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); 
    3638            } else { 
    3739                the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); 
Note: See TracChangeset for help on using the changeset viewer.