Making WordPress.org


Ignore:
Timestamp:
08/13/2020 11:43:14 PM (5 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/1accd3db38a60230689bdc157f9e82081d35d163...38e7793fd20434d72ca898988d017ba2009fb677

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  
    88 */
    99
    10 
    11 $slides_url = wporg_get_slides_url();
     10$slides_url   = wporg_get_slides_url();
    1211$download_url = wporg_get_download_slides_url();
    13 
    1412?>
    1513
    1614<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1715
    18     <section>   
     16    <section>
    1917        <header class="row align-middle between section-heading section-heading--with-space">
    2018            <h1 class="section-heading_title h2"><?php the_title(); ?></h1>
     
    2725                wp_link_pages(
    2826                    array(
    29                         'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wporg-forums' ),
     27                        'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wporg-learn' ),
    3028                        'after'  => '</div>',
    3129                    )
     
    3634                <div class="lp-details">
    3735                    <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' );
    4340                            }
     41                        }
    4442                        ?>
    4543                    </ul>
     
    4745                    <ul class="lp-links">
    4846
    49                     <?php if( $slides_url ) : ?>
     47                    <?php if ( $slides_url ) : ?>
    5048                        <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>
    5250                        </li>
    5351                    <?php endif; ?>
    5452
    55                     <?php if( $download_url ) : ?>
     53                    <?php if ( $download_url ) : ?>
    5654                        <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>
    5856                        </li>
    5957                    <?php endif; ?>
    6058           
    6159                        <!-- <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>
    6361                        </li> -->
    6462                    </ul>
    6563
    6664                    <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>
    7169                    </div>
    7270                </div>
Note: See TracChangeset for help on using the changeset viewer.