Changeset 10169 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/content-single.php
- Timestamp:
- 08/13/2020 11:43:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/content-single.php
r10148 r10169 8 8 */ 9 9 10 11 $slides_url = wporg_get_slides_url(); 10 $slides_url = wporg_get_slides_url(); 12 11 $download_url = wporg_get_download_slides_url(); 13 14 12 ?> 15 13 16 14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 17 15 18 <section> 16 <section> 19 17 <header class="row align-middle between section-heading section-heading--with-space"> 20 18 <h1 class="section-heading_title h2"><?php the_title(); ?></h1> … … 27 25 wp_link_pages( 28 26 array( 29 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wporg- forums' ),27 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wporg-learn' ), 30 28 'after' => '</div>', 31 29 ) … … 36 34 <div class="lp-details"> 37 35 <ul> 38 <?php 39 foreach( wporg_get_custom_taxonomies( get_the_ID() ) as $detail ) { 40 if( !empty( $detail[ 'values' ] ) ) { 41 include( locate_template( 'template-parts/component-taxonomy-item.php' ) ); 42 } 36 <?php 37 foreach ( wporg_get_custom_taxonomies( get_the_ID() ) as $detail ) { 38 if ( ! empty( $detail['values'] ) ) { 39 include locate_template( 'template-parts/component-taxonomy-item.php' ); 43 40 } 41 } 44 42 ?> 45 43 </ul> … … 47 45 <ul class="lp-links"> 48 46 49 <?php if ( $slides_url ) : ?>47 <?php if ( $slides_url ) : ?> 50 48 <li> 51 <a href="<?php echo $slides_url; ?>" target="_blank"><span class="dashicons dashicons-admin-page"></span> <?php _e( 'View Lesson Plan Slides' ); ?></a>49 <a href="<?php echo esc_url( $slides_url ); ?>" target="_blank"><span class="dashicons dashicons-admin-page"></span> <?php esc_html_e( 'View Lesson Plan Slides', 'wporg-learn' ); ?></a> 52 50 </li> 53 51 <?php endif; ?> 54 52 55 <?php if ( $download_url ) : ?>53 <?php if ( $download_url ) : ?> 56 54 <li> 57 <a href="<?php echo $download_url; ?>"><span class="dashicons dashicons-download"></span> <?php _e( 'Download Lesson Slides' ); ?></a>55 <a href="<?php echo esc_url( $download_url ); ?>"><span class="dashicons dashicons-download"></span> <?php esc_html_e( 'Download Lesson Slides', 'wporg-learn' ); ?></a> 58 56 </li> 59 57 <?php endif; ?> 60 58 61 59 <!-- <li> 62 <a href="#" target="_blank"><span class="dashicons dashicons-admin-post"></span> <?php _e( 'Print Lesson Plan' ); ?></a>60 <a href="#" target="_blank"><span class="dashicons dashicons-admin-post"></span> <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?></a> 63 61 </li> --> 64 62 </ul> 65 63 66 64 <div class="lp-suggestion"> 67 <h2 class="lp-suggestion_title h4"><?php _e( 'Suggestions' ); ?></h2>68 <p><?php _e( 'Found a typo, grammar error,or outdated screenshot?' ); ?></p>69 <p><?php _e( 'Used this lesson plan in your event and have some suggestions?' ); ?></p>70 <a href="https://wordcampcentral.survey.fm/learn-wordpress-workshop-application"><?php _e( 'Let us know!' ); ?></a>65 <h2 class="lp-suggestion_title h4"><?php esc_html_e( 'Suggestions', 'wporg-learn' ); ?></h2> 66 <p><?php esc_html_e( 'Found a typo, grammar error,or outdated screenshot?', 'wporg-learn' ); ?></p> 67 <p><?php esc_html_e( 'Used this lesson plan in your event and have some suggestions?', 'wporg-learn' ); ?></p> 68 <a href="https://wordcampcentral.survey.fm/learn-wordpress-workshop-application"><?php esc_html_e( 'Let us know!', 'wporg-learn' ); ?></a> 71 69 </div> 72 70 </div>
Note: See TracChangeset
for help on using the changeset viewer.