Making WordPress.org


Ignore:
Timestamp:
07/10/2024 06:17:54 AM (17 months ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@83e59bf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-lesson-plan.php

    r13891 r13893  
    1212?>
    1313
    14 <!-- wp:group {"align":"full","className":"wporg-learn-sidebar-meta-info","layout":{"type":"constrained"}} -->
    15 <div class="wp-block-group alignfull wporg-learn-sidebar-meta-info">
     14<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"className":"wporg-learn-sidebar-meta-info","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
     15<div class="wp-block-group wporg-learn-sidebar-meta-info">
    1616
    17     <?php if ( $current_post->slides_view_url || $current_post->slides_download_url ) : ?>
    18         <!-- wp:buttons {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","justifyContent":"center"}} -->
    19         <div class="wp-block-buttons">
    20             <?php if ( $current_post->slides_view_url ) : ?>
     17    <!-- wp:group {"layout":{"type":"constrained"}} -->
     18    <div class="wp-block-group">
     19
     20        <?php if ( $current_post->slides_view_url || $current_post->slides_download_url ) : ?>
     21            <!-- wp:buttons {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","justifyContent":"center"}} -->
     22            <div class="wp-block-buttons">
     23                <?php if ( $current_post->slides_view_url ) : ?>
     24                    <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-fill","fontSize":"normal","fontFamily":"inter"} -->
     25                    <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-fill has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
     26                        <a class="wp-block-button__link has-text-align-center wp-element-button" href="<?php echo esc_attr( $current_post->slides_view_url ); ?>" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
     27                            <?php esc_html_e( 'View slides', 'wporg-learn' ); ?>
     28                            <span aria-hidden="true" class="wp-exclude-emoji">↗</span>
     29                        </a>               
     30                    </div>
     31                    <!-- /wp:button -->
     32                <?php endif; ?>
     33                <?php if ( $current_post->slides_view_url && $current_post->slides_download_url ) : ?>
     34                    <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"margin":{"bottom":"40px"},"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-text","fontSize":"normal","fontFamily":"inter"} -->
     35                    <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-text has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
     36                        <a class="wp-block-button__link has-text-align-center wp-element-button" href="<?php echo esc_attr( $current_post->slides_download_url ); ?>" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
     37                            <?php esc_html_e( 'Download slides', 'wporg-learn' ); ?>
     38                            <span aria-hidden="true" class="wp-exclude-emoji">↗</span>
     39                        </a>               
     40                    </div>
     41                    <!-- /wp:button -->
     42                <?php elseif ( $current_post->slides_download_url ) : ?>
     43                    <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-fill","fontSize":"normal","fontFamily":"inter"} -->
     44                    <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-fill has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
     45                        <a class="wp-block-button__link has-text-align-center wp-element-button" href="<?php echo esc_attr( $current_post->slides_download_url ); ?>" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
     46                            <?php esc_html_e( 'Download slides', 'wporg-learn' ); ?>
     47                            <span aria-hidden="true" class="wp-exclude-emoji">↗</span>
     48                        </a>               
     49                    </div>
     50                    <!-- /wp:button -->
     51                <?php endif; ?>
     52            </div>
     53            <!-- /wp:buttons -->
     54            <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
     55            <div class="wp-block-buttons">
     56                <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-outline","fontSize":"normal","fontFamily":"inter"} -->
     57                <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-outline has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
     58                    <a class="wp-block-button__link has-text-align-center wp-element-button" onclick="window.print()" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
     59                        <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?>
     60                    </a>
     61                </div>
     62                <!-- /wp:button -->
     63            </div>
     64            <!-- /wp:buttons -->
     65        <?php else : ?>
     66            <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
     67            <div class="wp-block-buttons">
    2168                <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-fill","fontSize":"normal","fontFamily":"inter"} -->
    2269                <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-fill has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    23                     <a class="wp-block-button__link has-text-align-center wp-element-button" href="<?php echo esc_attr( $current_post->slides_view_url ); ?>" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    24                         <?php esc_html_e( 'View slides', 'wporg-learn' ); ?>
    25                         <span aria-hidden="true" class="wp-exclude-emoji">↗</span>
    26                     </a>               
     70                    <a class="wp-block-button__link has-text-align-center wp-element-button" onclick="window.print()" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
     71                        <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?>
     72                    </a>
    2773                </div>
    2874                <!-- /wp:button -->
    29             <?php endif; ?>
    30             <?php if ( $current_post->slides_view_url && $current_post->slides_download_url ) : ?>
    31                 <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"margin":{"bottom":"40px"},"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-text","fontSize":"normal","fontFamily":"inter"} -->
    32                 <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-text has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    33                     <a class="wp-block-button__link has-text-align-center wp-element-button" href="<?php echo esc_attr( $current_post->slides_download_url ); ?>" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    34                         <?php esc_html_e( 'Download slides', 'wporg-learn' ); ?>
    35                         <span aria-hidden="true" class="wp-exclude-emoji">↗</span>
    36                     </a>               
    37                 </div>
    38                 <!-- /wp:button -->
    39             <?php elseif ( $current_post->slides_download_url ) : ?>
    40                 <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-fill","fontSize":"normal","fontFamily":"inter"} -->
    41                 <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-fill has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    42                     <a class="wp-block-button__link has-text-align-center wp-element-button" href="<?php echo esc_attr( $current_post->slides_download_url ); ?>" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    43                         <?php esc_html_e( 'Download slides', 'wporg-learn' ); ?>
    44                         <span aria-hidden="true" class="wp-exclude-emoji">↗</span>
    45                     </a>               
    46                 </div>
    47                 <!-- /wp:button -->
    48             <?php endif; ?>
    49         </div>
    50         <!-- /wp:buttons -->
     75            </div>
     76            <!-- /wp:buttons -->
     77        <?php endif; ?>
     78
    5179        <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
    5280        <div class="wp-block-buttons">
    5381            <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-outline","fontSize":"normal","fontFamily":"inter"} -->
    5482            <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-outline has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    55                 <a class="wp-block-button__link has-text-align-center wp-element-button" onclick="window.print()" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    56                     <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?>
     83                <a class="wp-block-button__link has-text-align-center wp-element-button" href="https://wordpress.org/playground/demo/?step=playground&amp;theme=twentytwentythree" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
     84                    <?php esc_html_e( 'Practice on a private demo site', 'wporg-learn' ); ?>
    5785                </a>
    5886            </div>
     
    6088        </div>
    6189        <!-- /wp:buttons -->
    62     <?php else : ?>
    63         <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
    64         <div class="wp-block-buttons">
    65             <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-fill","fontSize":"normal","fontFamily":"inter"} -->
    66             <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-fill has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    67                 <a class="wp-block-button__link has-text-align-center wp-element-button" onclick="window.print()" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    68                     <?php esc_html_e( 'Print Lesson Plan', 'wporg-learn' ); ?>
    69                 </a>
    70             </div>
    71             <!-- /wp:button -->
    72         </div>
    73         <!-- /wp:buttons -->
    74     <?php endif; ?>
    7590
    76     <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
    77     <div class="wp-block-buttons">
    78         <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-outline","fontSize":"normal","fontFamily":"inter"} -->
    79         <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-outline has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    80             <a class="wp-block-button__link has-text-align-center wp-element-button" href="https://wordpress.org/playground/demo/?step=playground&amp;theme=twentytwentythree" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    81                 <?php esc_html_e( 'Practice on a private demo site', 'wporg-learn' ); ?>
    82             </a>
    83         </div>
    84         <!-- /wp:button -->
    8591    </div>
    86     <!-- /wp:buttons -->
     92    <!-- /wp:group -->
    8793
    8894    <!-- wp:pattern {"slug":"wporg-learn-2024/sidebar-details"} /-->
Note: See TracChangeset for help on using the changeset viewer.