Changeset 42343 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
r40472 r42343 15 15 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 16 16 <?php 17 18 19 17 if ( is_sticky() && is_home() ) { 18 echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) ); 19 } 20 20 ?> 21 21 <header class="entry-header"> 22 22 <?php 23 24 25 26 27 28 29 30 23 if ( 'post' === get_post_type() ) { 24 echo '<div class="entry-meta">'; 25 if ( is_single() ) { 26 twentyseventeen_posted_on(); 27 } else { 28 echo twentyseventeen_time_link(); 29 twentyseventeen_edit_link(); 30 }; 31 31 echo '</div><!-- .entry-meta -->'; 32 32 }; 33 33 34 35 36 37 38 39 40 34 if ( is_single() ) { 35 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>' ); 38 } else { 39 the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); 40 } 41 41 ?> 42 42 </header><!-- .entry-header --> … … 44 44 <?php 45 45 $content = apply_filters( 'the_content', get_the_content() ); 46 $audio = false;46 $audio = false; 47 47 48 48 // Only get audio from the content if a playlist isn't present. 49 50 51 49 if ( false === strpos( $content, 'wp-playlist-script' ) ) { 50 $audio = get_media_embedded_in_content( $content, array( 'audio' ) ); 51 } 52 52 53 53 ?> … … 80 80 81 81 /* translators: %s: Name of current post */ 82 the_content( sprintf( 83 __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), 84 get_the_title() 85 ) ); 82 the_content( 83 sprintf( 84 __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), 85 get_the_title() 86 ) 87 ); 86 88 87 wp_link_pages( array( 88 'before' => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ), 89 'after' => '</div>', 90 'link_before' => '<span class="page-number">', 91 'link_after' => '</span>', 92 ) ); 89 wp_link_pages( 90 array( 91 'before' => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ), 92 'after' => '</div>', 93 'link_before' => '<span class="page-number">', 94 'link_after' => '</span>', 95 ) 96 ); 93 97 94 98 };
Note: See TracChangeset
for help on using the changeset viewer.