Ticket #23348: 23348.5.diff
File 23348.5.diff, 10.0 KB (added by , 20 months ago) |
---|
-
src/wp-admin/about.php
diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index b52873425d9c..19c4a5d47f48 100644
a b 40 40 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 41 41 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> 42 42 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> 43 <a href="contribute.php" class="nav-tab"><?php _e( 'Contribute' ); ?></a> 43 44 </nav> 44 45 45 46 <div class="about__section"> -
new file src/wp-admin/contribute.php
diff --git a/src/wp-admin/contribute.php b/src/wp-admin/contribute.php new file mode 100644 index 000000000000..bcb4eb1c0ec5
- + 1 <?php 2 /** 3 * Contribute administration panel. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 /** WordPress Administration Bootstrap */ 10 require_once __DIR__ . '/admin.php'; 11 12 // Used in the HTML title tag. 13 $title = __( 'Contribute' ); 14 15 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); 16 17 require_once ABSPATH . 'wp-admin/admin-header.php'; 18 ?> 19 <div class="wrap about__container"> 20 21 <div class="about__header"> 22 <div class="about__header-title"> 23 <h1> 24 <?php _e( 'Contribute' ); ?> 25 </h1> 26 </div> 27 28 <div class="about__header-text"> 29 <?php _e( 'Take part in WordPress development' ); ?> 30 </div> 31 </div> 32 33 <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>"> 34 <a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a> 35 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 36 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> 37 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> 38 <a href="contribute.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Contribute' ); ?></a> 39 </nav> 40 41 <div class="about__section has-2-columns is-wider-right"> 42 <div class="column about__image"> 43 <img src="data:image/svg+xml,%3Csvg width='436' height='436' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" /> 44 </div> 45 <div class="column is-vertically-aligned-center"> 46 <p><?php _e( 'You can contribute to WordPress development in lots of ways, to share your ideas and collaborate on subjects close to your heart. You might find yourself trying out many different roles and possibilities, and you will almost always be learning continuously and meeting people who share a passion for WordPress' ); ?></p> 47 48 <p> 49 <?php 50 printf( 51 /* translators: %s: Number of Make teams */ 52 __( 'Make WordPress has more than %s teams you can join. Each one has multiple working groups and separate projects.' ), 53 20 54 ); 55 ?> 56 </p> 57 </div> 58 </div> 59 60 <div class="about__section"> 61 <div class="column"> 62 <h2 class="is-smaller-heading"><?php _e( 'Eager to find a team you will enjoy?' ); ?></h2> 63 <p><?php _e( 'What do you like best? Or have some experience with? It's great to start there. But you can always take time to look around and explore the possibilities, both before stepping in to contribute and later, when you have been on a team for a while. The choice is yours, and either way, you can learn a lot.' ); ?></p> 64 </div> 65 </div> 66 67 <div class="about__section has-2-columns"> 68 <div class="column is-vertically-aligned-center"> 69 <ul> 70 <li><?php _e( 'Choose a team' ); ?></li> 71 <li><?php _e( 'Follow its Make blog (https://make.wordpress.org/yourteam) to see how you can participate' ); ?></li> 72 <li><?php _e( 'Attend team meetings' ); ?></li> 73 <li><?php _e( 'Ask for a Good First issue to solve' ); ?></li> 74 </ul> 75 </div> 76 <div class="column"> 77 <img src="data:image/svg+xml,%3Csvg width='436' height='218' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" /> 78 </div> 79 80 <div class="column"> 81 <img src="data:image/svg+xml,%3Csvg width='436' height='300' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" /> 82 </div> 83 <div class="column is-vertically-aligned-center"> 84 <h3 class="is-smaller-heading"><?php _e( 'Non-technical areas' ); ?></h3> 85 <ul> 0 86 <li><a href="<?php _e( '#' ); ?>"><?php _e( 'Translate strings for WordPress and related sites' ); ?></a></li> 1 87 <li><a href="<?php _e( '#' ); ?>"><?php _e( 'Submit photography to the Photo Directory' ); ?></a></li> 2 88 <li><a href="<?php _e( '#' ); ?>"><?php _e( 'Help someone on the Support forum' ); ?></a></li> 3 89 <li><a href="<?php _e( '#' ); ?>"><?php _e( 'Translate WordPress News articles into your native language' ); ?></a></li> 4 90 <li><?php _e( 'Test WordPress before releases, checking new features and fixes' ); ?></li> 5 91 </ul> 92 </div> 93 94 <div class="column is-vertically-aligned-center"> 95 <h3 class="is-smaller-heading"><?php _e( 'Technical areas' ); ?></h3> 96 <ul> 97 <li><?php _e( 'Pick your favourite language or library:' ); ?> 98 <ul> 99 <li><?php _e( 'HTML, CSS, PHP, JavaScript and React for the Core of the CMS and the Block Editor (Gutenberg project' ); ?></li> 100 <li><?php _e( 'Kotlin, Java, Swift, Objective-C, Vue, Python, TypeScript for mobile apps' ); ?></li> 101 </ul> 102 </li> 103 <li><?php _e( 'Choose what you want to do: testing, making patches, writing and editing documentation' ); ?></li> 104 </ul> 105 </div> 106 <div class="column"> 107 <img src="data:image/svg+xml,%3Csvg width='436' height='280' viewbox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='%231d35b4' /%3E%3C/svg%3E" alt="" /> 108 </div> 109 110 </div> 111 112 <div class="about__section"> 113 <div class="column aligncenter"> 114 <p><a href="https://make.wordpress.org/contribute/" target="_blank"><?php _e( 'Discover your Make WordPress team' ); ?></a></p> 115 </div> 116 </div> 117 118 </div> 119 <?php 120 require_once ABSPATH . 'wp-admin/admin-footer.php'; -
src/wp-admin/credits.php
diff --git a/src/wp-admin/credits.php b/src/wp-admin/credits.php index 39cb9ede2619..21e2d968d255 100644
a b 44 44 <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a> 45 45 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> 46 46 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> 47 <a href="contribute.php" class="nav-tab"><?php _e( 'Contribute' ); ?></a> 47 48 </nav> 48 49 49 50 <div class="about__section has-1-column has-gutters"> -
src/wp-admin/css/about.css
diff --git a/src/wp-admin/css/about.css b/src/wp-admin/css/about.css index 733bddc4e689..3b8e1d33235a 100644
a b 48 48 .about-php, 49 49 .credits-php, 50 50 .freedoms-php, 51 .contribute-php, 51 52 .privacy-php { 52 53 background: #fff; 53 54 } … … 55 56 .about-php #wpcontent, 56 57 .credits-php #wpcontent, 57 58 .freedoms-php #wpcontent, 59 .contribute-php #wpcontent, 58 60 .privacy-php #wpcontent { 59 61 background: #fff; 60 62 padding: 0 24px; … … 64 66 .about-php.auto-fold #wpcontent, 65 67 .credits-php.auto-fold #wpcontent, 66 68 .freedoms-php.auto-fold #wpcontent, 69 .contribute-php.auto-fold #wpcontent, 67 70 .privacy-php.auto-fold #wpcontent { 68 71 padding-left: 24px; 69 72 } … … 575 578 576 579 .credits-php .about__header-title h1, 577 580 .privacy-php .about__header-title h1, 581 .contribute-php .about__header-title h1, 578 582 .freedoms-php .about__header-title h1 { 579 583 /* Fluid font size scales on browser size 960px - 1200px. */ 580 584 font-size: clamp(3rem, 10vw - 3rem, 4.5rem); … … 647 651 648 652 .credits-php .about__header-title h1, 649 653 .privacy-php .about__header-title h1, 654 .contribute-php .about__header-title h1, 650 655 .freedoms-php .about__header-title h1 { 651 656 /* Fluid font size scales on browser size 600px - 960px. */ 652 657 font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem); … … 684 689 .about__header { 685 690 min-height: auto; 686 691 } 687 }688 692 689 @media screen and (max-width: 480px) {690 693 .about__header, 691 694 .credits-php .about__header, 692 695 .privacy-php .about__header, 696 .contribute-php .about__header, 693 697 .freedoms-php .about__header { 694 698 background-image: none; 695 699 } -
src/wp-admin/freedoms.php
diff --git a/src/wp-admin/freedoms.php b/src/wp-admin/freedoms.php index 2d742958e1aa..2ee50ae0bafb 100644
a b 41 41 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 42 42 <a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a> 43 43 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> 44 <a href="contribute.php" class="nav-tab"><?php _e( 'Contribute' ); ?></a> 44 45 </nav> 45 46 46 47 <div class="about__section is-feature"> -
src/wp-includes/admin-bar.php
diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php index 4792822d5960..42077b724a7d 100644
a b function wp_admin_bar_render() { 122 122 */ 123 123 function wp_admin_bar_wp_menu( $wp_admin_bar ) { 124 124 if ( current_user_can( 'read' ) ) { 125 $about_url = self_admin_url( 'about.php' ); 125 $about_url = self_admin_url( 'about.php' ); 126 $contribute_url = self_admin_url( 'contribute.php' ); 126 127 } elseif ( is_multisite() ) { 127 $about_url = get_dashboard_url( get_current_user_id(), 'about.php' ); 128 $about_url = get_dashboard_url( get_current_user_id(), 'about.php' ); 129 $contribute_url = get_dashboard_url( get_current_user_id(), 'contribute.php' ); 128 130 } else { 129 $about_url = false; 131 $about_url = false; 132 $contribute_url = false; 130 133 } 131 134 132 135 $wp_logo_menu_args = array( … … function wp_admin_bar_wp_menu( $wp_admin_bar ) { 198 201 'href' => __( 'https://wordpress.org/support/forum/requests-and-feedback' ), 199 202 ) 200 203 ); 204 205 if ( $contribute_url ) { 206 // Add contribute link. 207 $wp_admin_bar->add_node( 208 array( 209 'parent' => 'wp-logo-external', 210 'id' => 'contribute', 211 'title' => __( 'Contribute' ), 212 'href' => $contribute_url, 213 ) 214 ); 215 } 201 216 } 202 217 203 218 /**