Making WordPress.org


Ignore:
Timestamp:
11/20/2020 12:07:27 AM (6 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

​https://github.com/WordPress/learn/compare/a6529c2090ca8a1dcc9e36e27460f6cbb84e02ef...2c9bbc5fc4eefb1f1a367f7bb8afcd3da6ef32b0

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

    r10192 r10458  
    88 */
    99
    10 $slides_url   = wporg_get_slides_url();
    11 $download_url = wporg_get_download_slides_url();
    1210?>
    1311
    … …  
    4442
    4543                                        <ul class="lp-links">
    46 
    47                                         <?php if ( $slides_url ) : ?>
    48                                                 <li>
    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>
    50                                                 </li>
    51                                         <?php endif; ?>
    52 
    53                                         <?php if ( $download_url ) : ?>
    54                                                 <li>
    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>
    56                                                 </li>
    57                                         <?php endif; ?>
    58                        
     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; ?>
    5960                                                <!-- <li>
    60                                                         <a href="#" target="_blank"><span class="dashicons dashicons-admin-post"></span> <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?></a>
     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>
    6165                                                </li> -->
    6266                                        </ul>
Note: See TracChangeset for help on using the changeset viewer.