Changeset 13893 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-lesson-plan.php
- Timestamp:
- 07/10/2024 06:17:54 AM (17 months ago)
- 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 12 12 ?> 13 13 14 <!-- wp:group {" align":"full","className":"wporg-learn-sidebar-meta-info","layout":{"type":"constrained"}} -->15 <div class="wp-block-group alignfullwporg-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"> 16 16 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"> 21 68 <!-- 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"} --> 22 69 <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> 27 73 </div> 28 74 <!-- /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 51 79 <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} --> 52 80 <div class="wp-block-buttons"> 53 81 <!-- 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"} --> 54 82 <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( 'Pr int 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&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' ); ?> 57 85 </a> 58 86 </div> … … 60 88 </div> 61 89 <!-- /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; ?>75 90 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&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 -->85 91 </div> 86 <!-- /wp: buttons-->92 <!-- /wp:group --> 87 93 88 94 <!-- wp:pattern {"slug":"wporg-learn-2024/sidebar-details"} /-->
Note: See TracChangeset
for help on using the changeset viewer.