mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Help/About: Add a “Get Involved” tab to the About page.
This aims to make all the various ways of contributing to open-source WordPress project more discoverable, as well as make it easier to find an area that aligns with new contributor’s skills and interests. Props oglekler, jpantani, SeReedMedia, ryelle, marybaum, karmatosed, eidolonnight, mt_suzette, Shelob9, desrosj, cathibosco1, jenmylo, nacin, helen, joostdevalk, hugobaeta, TacoVerdo, swissspidy, markoheijnen, lukecavanagh, boemedia, bridgetwillard, jeffmora, davidmusnik, mehdi01, johnbillion, fierevere, tobifjellner, richtabor, meher, courane01, webcommsat, audrasjb, mukesh27, davidbaumwald, costdev, joedolson, robinwpdeveloper, estelaris, mohiuddinomran, SergeyBiryukov. See #23348. Built from https://develop.svn.wordpress.org/trunk@56220 git-svn-id: http://core.svn.wordpress.org/trunk@55732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
05f19b1ed7
commit
300e0cd38f
@ -40,6 +40,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
|
||||
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
||||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section">
|
||||
|
116
wp-admin/contribute.php
Normal file
116
wp-admin/contribute.php
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/**
|
||||
* Contribute administration panel.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Get Involved' );
|
||||
|
||||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
<div class="wrap about__container">
|
||||
|
||||
<div class="about__header">
|
||||
<div class="about__header-title">
|
||||
<h1>
|
||||
<?php _e( 'Get Involved' ); ?>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="about__header-text">
|
||||
<?php _e( 'Be the future of WordPress' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
||||
<a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a>
|
||||
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
|
||||
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
||||
<a href="contribute.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section has-2-columns is-wider-right">
|
||||
<div class="column about__image">
|
||||
<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="" />
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<p><?php _e( 'Do you use WordPress for work, for personal projects, or even just for fun? You can help shape the long-term success of the open source project that powers millions of websites around the world.' ); ?></p>
|
||||
<p><?php _e( 'Join the WordPress contributor community and connect with others who are passionate about maintaining a free and open web.' ); ?></p>
|
||||
|
||||
<ul>
|
||||
<li><?php _e( 'Be part of a global open source community' ); ?></li>
|
||||
<li><?php _e( 'Apply your skills or learn some new ones' ); ?></li>
|
||||
<li><?php _e( 'Grow your network and make new friends' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Find your team' ); ?></h2>
|
||||
<p><?php _e( 'Finding the area that aligns with your skills and interests is the first step toward meaningful contribution. With more than 20 Make WordPress teams working on different parts of the open-source WordPress project, there’s a place for everyone, no matter what your skill set is.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section has-2-columns is-wider-left">
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'No-Code Contribution' ); ?></h3>
|
||||
<p><?php _e( 'WordPress may thrive on technical contributions, but you don’t have to code to contribute. Here are some of the ways you can make an impact without writing a single line of code:' ); ?></p>
|
||||
<ul>
|
||||
<li><?php _e( '<strong>Share</strong> your knowledge in the WordPress support forums' ); ?></li>
|
||||
<li><?php _e( '<strong>Write</strong> or improve documentation for WordPress' ); ?></li>
|
||||
<li><?php _e( '<strong>Translate</strong> WordPress into your local language' ); ?></li>
|
||||
<li><?php _e( '<strong>Create</strong> and improve WordPress educational materials' ); ?></li>
|
||||
<li><?php _e( '<strong>Promote</strong> the WordPress project to your community' ); ?></li>
|
||||
<li><?php _e( '<strong>Take</strong> photos for or help curate the WordPress Photos Directory' ); ?></li>
|
||||
<li><?php _e( '<strong>Organize</strong> or participate in local WordPress Meetups and WordCamps' ); ?></li>
|
||||
<li><?php _e( '<strong>Lend</strong> your creative imagination to the WordPress UI design' ); ?></li>
|
||||
<li><?php _e( '<strong>Edit</strong> videos and add captions to WordPress.tv' ); ?></li>
|
||||
<li><?php _e( '<strong>Explore</strong> ways to reduce the environmental impact of millions of websites' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="column">
|
||||
<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="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="about__section has-2-columns is-wider-right">
|
||||
<div class="column">
|
||||
<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="" />
|
||||
</div>
|
||||
<div class="column is-vertically-aligned-center">
|
||||
<h3><?php _e( 'Code-based Contribution' ); ?></h3>
|
||||
<p><?php _e( 'If you do code, or want to learn how, you can contribute technically in numerous ways:' ); ?></p>
|
||||
<ul>
|
||||
<li><?php _e( '<strong>Find</strong> and report bugs in the WordPress core software' ); ?></li>
|
||||
<li><?php _e( '<strong>Test</strong> new releases and proposed features for the block editor' ); ?></li>
|
||||
<li><?php _e( '<strong>Write</strong> and submit patches to fix bugs or help build new features' ); ?></li>
|
||||
<li><?php _e( '<strong>Contribute</strong> to the code, improve the UX, and test the WordPress app' ); ?></li>
|
||||
</ul>
|
||||
<p><?php _e( 'WordPress embraces new technologies, while being committed to backward compatibility. The WordPress project uses the following languages and libraries:' ); ?></p>
|
||||
<ul>
|
||||
<li><?php _e( 'Core and Block Editor: HTML, CSS, PHP, SQL, JavaScript, and React' ); ?></li>
|
||||
<li><?php _e( 'WordPress app: Kotlin, Java, Swift, Objective-C, Vue, Python, and TypeScript' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="about__section is-feature has-subtle-background-color">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Help Make WordPress Better' ); ?></h2>
|
||||
<p><?php _e( 'Whether you speak at a local meetup, provide your perspective on a feature proposal, or submit a bug report, your contributions will make a difference.' ); ?></p>
|
||||
<p class="aligncenter"><a href="https://make.wordpress.org/contribute/" target="_blank"><?php _e( 'Find your team →' ); ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
require_once ABSPATH . 'wp-admin/admin-footer.php';
|
@ -44,6 +44,7 @@ $credits = wp_credits();
|
||||
<a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
|
||||
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
||||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section has-1-column has-gutters">
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
22.0 - About Pages
|
||||
|
||||
1.0 Global: About, Credits, Freedoms, Privacy
|
||||
1.0 Global: About, Credits, Freedoms, Privacy, Get Involved
|
||||
1.1 Layout
|
||||
1.2 Typography & Elements
|
||||
1.3 Header
|
||||
@ -43,20 +43,22 @@
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
1.0 - Global: About, Credits, Freedoms, Privacy
|
||||
1.0 - Global: About, Credits, Freedoms, Privacy, Get Involved
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
.about-php,
|
||||
.credits-php,
|
||||
.freedoms-php,
|
||||
.privacy-php {
|
||||
.privacy-php,
|
||||
.contribute-php {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.about-php #wpcontent,
|
||||
.credits-php #wpcontent,
|
||||
.freedoms-php #wpcontent,
|
||||
.privacy-php #wpcontent {
|
||||
.privacy-php #wpcontent,
|
||||
.contribute-php #wpcontent {
|
||||
background: #fff;
|
||||
padding: 0 24px;
|
||||
}
|
||||
@ -65,7 +67,8 @@
|
||||
.about-php.auto-fold #wpcontent,
|
||||
.credits-php.auto-fold #wpcontent,
|
||||
.freedoms-php.auto-fold #wpcontent,
|
||||
.privacy-php.auto-fold #wpcontent {
|
||||
.privacy-php.auto-fold #wpcontent,
|
||||
.contribute-php.auto-fold #wpcontent {
|
||||
padding-right: 24px;
|
||||
}
|
||||
}
|
||||
@ -575,8 +578,9 @@
|
||||
}
|
||||
|
||||
.credits-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1,
|
||||
.privacy-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1 {
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 960px - 1200px. */
|
||||
font-size: clamp(3rem, 10vw - 3rem, 4.5rem);
|
||||
}
|
||||
@ -647,8 +651,9 @@
|
||||
}
|
||||
|
||||
.credits-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1,
|
||||
.privacy-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1 {
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 600px - 960px. */
|
||||
font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem);
|
||||
}
|
||||
@ -685,13 +690,12 @@
|
||||
.about__header {
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__header,
|
||||
.credits-php .about__header,
|
||||
.freedoms-php .about__header,
|
||||
.privacy-php .about__header,
|
||||
.freedoms-php .about__header {
|
||||
.contribute-php .about__header {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
|
2
wp-admin/css/about-rtl.min.css
vendored
2
wp-admin/css/about-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
22.0 - About Pages
|
||||
|
||||
1.0 Global: About, Credits, Freedoms, Privacy
|
||||
1.0 Global: About, Credits, Freedoms, Privacy, Get Involved
|
||||
1.1 Layout
|
||||
1.2 Typography & Elements
|
||||
1.3 Header
|
||||
@ -42,20 +42,22 @@
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
1.0 - Global: About, Credits, Freedoms, Privacy
|
||||
1.0 - Global: About, Credits, Freedoms, Privacy, Get Involved
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
.about-php,
|
||||
.credits-php,
|
||||
.freedoms-php,
|
||||
.privacy-php {
|
||||
.privacy-php,
|
||||
.contribute-php {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.about-php #wpcontent,
|
||||
.credits-php #wpcontent,
|
||||
.freedoms-php #wpcontent,
|
||||
.privacy-php #wpcontent {
|
||||
.privacy-php #wpcontent,
|
||||
.contribute-php #wpcontent {
|
||||
background: #fff;
|
||||
padding: 0 24px;
|
||||
}
|
||||
@ -64,7 +66,8 @@
|
||||
.about-php.auto-fold #wpcontent,
|
||||
.credits-php.auto-fold #wpcontent,
|
||||
.freedoms-php.auto-fold #wpcontent,
|
||||
.privacy-php.auto-fold #wpcontent {
|
||||
.privacy-php.auto-fold #wpcontent,
|
||||
.contribute-php.auto-fold #wpcontent {
|
||||
padding-left: 24px;
|
||||
}
|
||||
}
|
||||
@ -574,8 +577,9 @@
|
||||
}
|
||||
|
||||
.credits-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1,
|
||||
.privacy-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1 {
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 960px - 1200px. */
|
||||
font-size: clamp(3rem, 10vw - 3rem, 4.5rem);
|
||||
}
|
||||
@ -646,8 +650,9 @@
|
||||
}
|
||||
|
||||
.credits-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1,
|
||||
.privacy-php .about__header-title h1,
|
||||
.freedoms-php .about__header-title h1 {
|
||||
.contribute-php .about__header-title h1 {
|
||||
/* Fluid font size scales on browser size 600px - 960px. */
|
||||
font-size: clamp(3rem, 6.67vw - 0.5rem, 4.5rem);
|
||||
}
|
||||
@ -684,13 +689,12 @@
|
||||
.about__header {
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
.about__header,
|
||||
.credits-php .about__header,
|
||||
.freedoms-php .about__header,
|
||||
.privacy-php .about__header,
|
||||
.freedoms-php .about__header {
|
||||
.contribute-php .about__header {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
|
2
wp-admin/css/about.min.css
vendored
2
wp-admin/css/about.min.css
vendored
File diff suppressed because one or more lines are too long
@ -41,6 +41,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
|
||||
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
||||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section is-feature">
|
||||
|
@ -35,6 +35,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
||||
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
|
||||
<a href="privacy.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Privacy' ); ?></a>
|
||||
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
|
||||
</nav>
|
||||
|
||||
<div class="about__section has-2-columns is-wider-right">
|
||||
|
@ -123,10 +123,13 @@ function wp_admin_bar_render() {
|
||||
function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
||||
if ( current_user_can( 'read' ) ) {
|
||||
$about_url = self_admin_url( 'about.php' );
|
||||
$contribute_url = self_admin_url( 'contribute.php' );
|
||||
} elseif ( is_multisite() ) {
|
||||
$about_url = get_dashboard_url( get_current_user_id(), 'about.php' );
|
||||
$contribute_url = get_dashboard_url( get_current_user_id(), 'contribute.php' );
|
||||
} else {
|
||||
$about_url = false;
|
||||
$contribute_url = false;
|
||||
}
|
||||
|
||||
$wp_logo_menu_args = array(
|
||||
@ -159,6 +162,18 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
||||
);
|
||||
}
|
||||
|
||||
if ( $contribute_url ) {
|
||||
// Add contribute link.
|
||||
$wp_admin_bar->add_node(
|
||||
array(
|
||||
'parent' => 'wp-logo',
|
||||
'id' => 'contribute',
|
||||
'title' => __( 'Get Involved' ),
|
||||
'href' => $contribute_url,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Add WordPress.org link.
|
||||
$wp_admin_bar->add_node(
|
||||
array(
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-beta4-56219';
|
||||
$wp_version = '6.3-beta4-56220';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user