Changeset 7367
- Timestamp:
- 07/03/2018 06:16:13 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/header-child-page.php
r7360 r7367 24 24 <p class="site-title"><a href="<?php echo esc_url( get_permalink( get_post()->post_parent ) ); ?>" rel="bookmark"><?php echo get_the_title( get_post()->post_parent ); ?></a></p> 25 25 26 <?php if ( ! empty( $menu_items ) ) : ?> 26 27 <nav id="site-navigation" class="main-navigation" role="navigation"> 27 28 <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg' ); ?>"></button> … … 46 47 </div> 47 48 </nav><!-- #site-navigation --> 49 <?php endif; ?> 48 50 </div><!-- .site-branding --> 49 51 </header><!-- #masthead --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-beta-nightly.php
r7362 r7367 1 1 <?php 2 2 /** 3 * Template Name: About -> Stats3 * Template Name: Download -> Beta/Nightly 4 4 * 5 * Page template for displaying the Statspage.5 * Page template for displaying the Beta/Nightly page. 6 6 * 7 7 * @package WordPressdotorg\MainTheme -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-source.php
r7362 r7367 1 1 <?php 2 2 /** 3 * Template Name: About -> S tats3 * Template Name: About -> Source Code 4 4 * 5 * Page template for displaying the S tatspage.5 * Page template for displaying the Source Code page. 6 6 * 7 7 * @package WordPressdotorg\MainTheme -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-releases.php
r7357 r7367 10 10 namespace WordPressdotorg\MainTheme; 11 11 12 if ( get_post()->post_parent ) { 13 $GLOBALS['menu_items'] = [ 14 'download/releases' => _x( 'Releases', 'Page title', 'wporg' ), 15 'download/beta-nightly' => _x( 'Beta/Nightly', 'Page title', 'wporg' ), 16 'download/counter' => _x( 'Counter', 'Page title', 'wporg' ), 17 'download/source' => _x( 'Source Code', 'Page title', 'wporg' ), 18 ]; 19 } 20 21 // Prevent Jetpack from looking for a non-existent featured image. 22 add_filter( 'jetpack_images_pre_get_images', function() { 23 return new \WP_Error(); 24 } ); 25 26 add_filter( 'body_class', function( $classes ) { 27 $classes[] = 'page-child'; 28 return $classes; 29 } ); 30 31 /* See inc/page-meta-descriptions.php for the meta description for this page. */ 32 12 33 if ( defined( 'IS_ROSETTA_NETWORK' ) && IS_ROSETTA_NETWORK ) { 13 34 $releases = $GLOBALS['rosetta']->rosetta->get_releases_breakdown(); … … 17 38 18 39 the_post(); 19 get_header( );40 get_header( 'child-page' ); 20 41 ?> 42 <main id="main" class="site-main col-12" role="main"> 21 43 22 <article id="post-<?php the_ID(); ?>" <?php post_class( 'col-12'); ?> role="main">23 <header class="entry-header">24 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>25 </header><!-- .entry-header -->44 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="main"> 45 <header class="entry-header"> 46 <?php the_title( '<h1 class="entry-title col-8">', '</h1>' ); ?> 47 </header><!-- .entry-header --> 26 48 27 <div class="entry-content"> 28 <p> 29 <strong><?php esc_html_e( 'This is an archive of every release we’ve done that we have a record of.', 'wporg' ); ?></strong><br /> 30 <?php 31 printf( 32 /* translators: Stable branch */ 33 wp_kses_post( __( 'None of these are safe to use, except the <strong>latest</strong> in the %s series, which is actively maintained.', 'wporg' ) ), 34 esc_html( WP_CORE_STABLE_BRANCH ) 35 ); 36 ?> 37 </p> 38 <p> 39 <?php 40 printf( 41 /* translators: Roadmap URL */ 42 wp_kses_post( __( 'Curious about which jazzers we highlighted for each release? <a href="%s">It’s on the roadmap</a>.', 'wporg' ) ), 43 esc_url( home_url( '/about/roadmap/' ) ) 44 ); 45 ?> 46 </p> 49 <div class="entry-content row"> 50 <section class="col-8"> 51 <p> 52 <?php esc_html_e( 'This is an archive of every release we’ve done that we have a record of.', 'wporg' ); ?><br /> 53 <?php 54 printf( 55 /* translators: Stable branch */ 56 wp_kses_post( __( 'None of these are safe to use, except the <strong>latest</strong> in the %s series, which is actively maintained.', 'wporg' ) ), 57 esc_html( WP_CORE_STABLE_BRANCH ) 58 ); 59 ?> 60 </p> 61 <p> 62 <?php 63 printf( 64 /* translators: Roadmap URL */ 65 wp_kses_post( __( 'Curious about which jazzers we highlighted for each release? <a href="%s">It’s on the roadmap</a>.', 'wporg' ) ), 66 esc_url( home_url( '/about/roadmap/' ) ) 67 ); 68 ?> 69 </p> 70 71 <?php 72 if ( ! empty( $releases ) ) : 73 if ( isset( $releases['latest'] ) ) : 74 ?> 75 <h3 id="latest"><?php esc_html_e( 'Latest release', 'wporg' ); ?></h3> 76 <table class="releases latest"> 77 <col width="15%" /> 78 <col width="25%" /> 79 <col width="15%" /> 80 <col width="15%" /> 81 <col width="15%" /> 82 <?php release_row( $releases['latest'] ); ?> 83 </table> 84 <?php 85 endif; 86 87 if ( ! empty( $releases['branches'] ) ) : 88 echo '<a name="older" id="older"></a>'; 89 90 foreach ( $releases['branches'] as $branch => $branch_release ) : 91 ?> 92 <h3> 93 <?php 94 printf( 95 /* translators: Version number. */ 96 esc_html__( '%s Branch', 'wporg' ), 97 esc_html( $branch ) 98 ); 99 ?> 100 </h3> 101 <table class="releases"> 102 <col width="15%" /> 103 <col width="25%" /> 104 <col width="15%" /> 105 <col width="15%" /> 106 <col width="15%" /> 107 <?php 108 foreach ( $branch_release as $release ) : 109 release_row( $release ); 110 endforeach; 111 ?> 112 </table> 113 <?php 114 endforeach; 115 endif; // Any branches. 116 117 if ( ! empty( $releases['betas'] ) ) : 118 ?> 119 <h3 id="betas"><?php esc_html_e( 'Beta & RC releases', 'wporg' ); ?></h3> 120 <p><?php esc_html_e( 'These were testing releases and are only available here for archival purposes.', 'wporg' ); ?></p> 121 <table id="beta" class="releases"> 122 <col width="15%" /> 123 <col width="25%" /> 124 <col width="15%" /> 125 <col width="15%" /> 126 <col width="15%" /> 127 <?php 128 foreach ( $releases['betas'] as $release ) : 129 release_row( $release ); 130 endforeach; 131 ?> 132 </table> 133 134 <?php 135 endif; // Any betas. 136 137 if ( ! empty( $releases['mu'] ) ) : 138 ?> 139 <h3 id="mu"><?php esc_html_e( 'MU releases', 'wporg' ); ?></h3> 140 <p><?php esc_html_e( 'WordPress MU releases made prior to MU being merged into WordPress 3.0', 'wporg' ); ?></p> 141 <table class="releases"> 142 <col width="15%" /> 143 <col width="30%" /> 144 <col width="15%" /> 145 <col width="15%" /> 146 <col width="15%" /> 147 <?php 148 foreach ( $releases['mu'] as $release ) : 149 release_row( $release ); 150 endforeach; 151 ?> 152 </table> 153 154 <?php 155 endif; // Any MUs. 156 else : // No releases. 157 echo '<p>' . esc_html__( 'There are no releases, yet.', 'wporg' ) . '</p>'; 158 endif; // if releases. 159 ?> 160 </section> 161 </div><!-- .entry-content --> 47 162 48 163 <?php 49 if ( ! empty( $releases ) ) : 50 if ( isset( $releases['latest'] ) ) : 51 ?> 52 <h3 id="latest"><?php esc_html_e( 'Latest release', 'wporg' ); ?></h3> 53 <table class="releases latest"> 54 <col width="15%" /> 55 <col width="25%" /> 56 <col width="15%" /> 57 <col width="15%" /> 58 <col width="15%" /> 59 <?php release_row( $releases['latest'] ); ?> 60 </table> 61 <?php 62 endif; 63 64 if ( ! empty( $releases['branches'] ) ) : 65 echo '<a name="older" id="older"></a>'; 66 67 foreach ( $releases['branches'] as $branch => $branch_release ) : 68 ?> 69 <h3> 70 <?php 71 printf( 72 /* translators: Version number. */ 73 esc_html__( '%s Branch', 'wporg' ), 74 esc_html( $branch ) 75 ); 76 ?> 77 </h3> 78 <table class="releases"> 79 <col width="15%" /> 80 <col width="25%" /> 81 <col width="15%" /> 82 <col width="15%" /> 83 <col width="15%" /> 84 <?php 85 foreach ( $branch_release as $release ) : 86 release_row( $release ); 87 endforeach; 88 ?> 89 </table> 90 <?php 91 endforeach; 92 endif; // Any branches. 93 94 if ( ! empty( $releases['betas'] ) ) : 95 ?> 96 <h3 id="betas"><?php esc_html_e( 'Beta & RC releases', 'wporg' ); ?></h3> 97 <p><?php esc_html_e( 'These were testing releases and are only available here for archival purposes.', 'wporg' ); ?></p> 98 <table id="beta" class="releases"> 99 <col width="15%" /> 100 <col width="25%" /> 101 <col width="15%" /> 102 <col width="15%" /> 103 <col width="15%" /> 104 <?php 105 foreach ( $releases['betas'] as $release ) : 106 release_row( $release ); 107 endforeach; 108 ?> 109 </table> 110 111 <?php 112 endif; // Any betas. 113 114 if ( ! empty( $releases['mu'] ) ) : 115 ?> 116 <h3 id="mu"><?php esc_html_e( 'MU releases', 'wporg' ); ?></h3> 117 <p><?php esc_html_e( 'WordPress MU releases made prior to MU being merged into WordPress 3.0', 'wporg' ); ?></p> 118 <table class="releases"> 119 <col width="15%" /> 120 <col width="30%" /> 121 <col width="15%" /> 122 <col width="15%" /> 123 <col width="15%" /> 124 <?php 125 foreach ( $releases['mu'] as $release ) : 126 release_row( $release ); 127 endforeach; 128 ?> 129 </table> 130 131 <?php 132 endif; // Any MUs. 133 else : // No releases. 134 echo '<p>' . esc_html__( 'There are no releases, yet.', 'wporg' ) . '</p>'; 135 endif; // if releases. 164 edit_post_link( 165 sprintf( 166 /* translators: %s: Name of current post */ 167 esc_html__( 'Edit %s', 'wporg' ), 168 the_title( '<span class="screen-reader-text">"', '"</span>', false ) 169 ), 170 '<footer class="entry-footer"><span class="edit-link">', 171 '</span></footer><!-- .entry-footer -->' 172 ); 136 173 ?> 137 </div><!-- .entry-content --> 138 139 <?php 140 edit_post_link( 141 sprintf( 142 /* translators: %s: Name of current post */ 143 esc_html__( 'Edit %s', 'wporg' ), 144 the_title( '<span class="screen-reader-text">"', '"</span>', false ) 145 ), 146 '<footer class="entry-footer"><span class="edit-link">', 147 '</span></footer><!-- .entry-footer -->' 148 ); 149 ?> 150 </article><!-- #post-## --> 174 </article><!-- #post-## --> 175 </main><!-- #main --> 151 176 152 177 <?php
Note: See TracChangeset
for help on using the changeset viewer.