Changeset 11323 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/content-single.php
- Timestamp:
- 11/11/2021 03:53:36 AM (3 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
r11300 r11323 29 29 ?> 30 30 </div> 31 <aside class="lp-sidebar">32 <div class="lp-details">33 <ul>34 <?php35 foreach ( wporg_learn_get_lesson_plan_taxonomy_data( get_the_ID() ) as $detail ) {36 if ( ! empty( $detail['value'] ) ) {37 include locate_template( 'template-parts/component-taxonomy-item.php' );38 }39 }40 ?>41 </ul>42 31 43 <ul class="lp-links"> 44 <?php if ( $post->slides_view_url ) : ?> 45 <li> 46 <a href="<?php echo esc_attr( $post->slides_view_url ); ?>" target="_blank"> 47 <span class="dashicons dashicons-admin-page"></span> 48 <?php esc_html_e( 'View Lesson Plan Slides', 'wporg-learn' ); ?> 49 </a> 50 </li> 51 <?php endif; ?> 52 <?php if ( $post->slides_download_url ) : ?> 53 <li> 54 <a href="<?php echo esc_attr( $post->slides_download_url ); ?>"> 55 <span class="dashicons dashicons-download"></span> 56 <?php esc_html_e( 'Download Lesson Slides', 'wporg-learn' ); ?> 57 </a> 58 </li> 59 <?php endif; ?> 60 <!-- <li> 61 <a href="#" target="_blank"> 62 <span class="dashicons dashicons-admin-post"></span> 63 <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?> 64 </a> 65 </li> --> 66 </ul> 67 <div class="lp-print"> 68 <p><a href="#" onclick="window.print();"><?php esc_html_e( 'Print view', 'wporg-learn' ); ?></a></p> 69 </div> 70 <div class="lp-suggestion"> 71 <h2 class="lp-suggestion_title h4"><?php esc_html_e( 'Suggestions', 'wporg-learn' ); ?></h2> 72 <p><?php esc_html_e( 'Found a typo, grammar error,or outdated screenshot?', 'wporg-learn' ); ?></p> 73 <p><?php esc_html_e( 'Used this lesson plan in your event and have some suggestions?', 'wporg-learn' ); ?></p> 74 <a href="https://learn.wordpress.org/report-content-errors/"><?php esc_html_e( 'Let us know!', 'wporg-learn' ); ?></a> 75 </div> 76 </div> 77 </aside> 32 <?php 33 /** 34 * Read in passed context and render sidebar. 35 */ 36 switch ( get_post_type() ) { 37 case 'lesson-plan': 38 get_sidebar( 'lesson-plan' ); 39 break; 40 case 'course': 41 get_sidebar( 'course' ); 42 break; 43 } 44 ?> 78 45 </div> 79 46 </section>
Note: See TracChangeset
for help on using the changeset viewer.