Skip to content

Commit

Permalink
Adds the Polylang Pro plugin to Learn.WordPress.org (#3049)
Browse files Browse the repository at this point in the history
* Adds the Polylang Pro plugin to Learn.WordPress.org

See #2284

* Add Polylang Pro to build

* Reconfigure gitignore for build directories

* Add polylang pro frontend assets

---------

Co-authored-by: Adam Wood <[email protected]>
  • Loading branch information
jonathanbossenger and adamwoodnz authored Dec 3, 2024
1 parent 366ba58 commit e7303ed
Show file tree
Hide file tree
Showing 714 changed files with 87,192 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
mv wp-content/mu-plugins/pub/class-validator.php $RUNNER_TEMP
mv wp-content/mu-plugins/pub/locales.php $RUNNER_TEMP
mv wp-content/mu-plugins/pub/wporg-learn-cli.php $RUNNER_TEMP
mv wp-content/plugins/polylang-pro $RUNNER_TEMP
mv wp-content/plugins/sensei-pro $RUNNER_TEMP
mv wp-content/plugins/wporg-learn $RUNNER_TEMP
mv wp-content/themes/pub/wporg-learn-2024 $RUNNER_TEMP
Expand All @@ -69,6 +70,7 @@ jobs:
mv $RUNNER_TEMP/class-validator.php wp-content/mu-plugins/pub
mv $RUNNER_TEMP/locales.php wp-content/mu-plugins/pub
mv $RUNNER_TEMP/wporg-learn-cli.php wp-content/mu-plugins/pub
mv $RUNNER_TEMP/polylang-pro wp-content/plugins
mv $RUNNER_TEMP/sensei-pro wp-content/plugins
mv $RUNNER_TEMP/wporg-learn wp-content/plugins
mv $RUNNER_TEMP/wporg-learn-2024 wp-content/themes/pub
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
/wp-content/*
/wp-content/mu-plugins/*
/wp-content/mu-plugins/pub/*
/wp-content/mu-plugins/pub/locale-switcher/build
/wp-content/plugins/*
/wp-content/themes/*
/wp-content/themes/pub/*
Expand All @@ -33,9 +32,9 @@
!/wp-content/plugins
!/wp-content/plugins/wporg-learn
!/wp-content/plugins/sensei-pro
!/wp-content/plugins/polylang-pro
!/wp-content/plugins/polylang-pro/css/build/
!/wp-content/plugins/polylang-pro/js/build/
!/wp-content/themes
!/wp-content/themes/pub
!/wp-content/themes/pub/wporg-learn-2024

# Ignore subfolders in our custom code.
/wp-content/plugins/wporg-learn/build
674 changes: 674 additions & 0 deletions wp-content/plugins/polylang-pro/LICENSE

Large diffs are not rendered by default.

2,325 changes: 2,325 additions & 0 deletions wp-content/plugins/polylang-pro/changelog.txt

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions wp-content/plugins/polylang-pro/css/build/admin-export-import.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/* Metaboxes holder in Strings translations screen */
.languages_page_mlang_strings .metabox-holder > div {
display: flex;
}
.languages_page_mlang_strings .metabox-holder > div > div {
flex-grow: 1;
}
.languages_page_mlang_strings .metabox-holder > div > div:nth-child(2n) {
margin-left: 1rem;
}
.languages_page_mlang_strings .metabox-holder > div > div.closed {
border:0;
background: none;
}
.languages_page_mlang_strings .metabox-holder > div > div.closed .postbox-header{
border: 1px solid #ccd0d4;
background: #fff;
}

#pll-export-strings-box.postbox .submit, /* Override WordPress styles */
#pll-import-translations-box.postbox .submit {
float: none;
padding: 0;
}

#export-string-translation .pll-translation-flag {
margin: auto 10px auto 7px;
}

#export-string-translation label,
#export-string-translation label[for="pll-select-format"] span,
#import-translation label {
display: block;
margin: 0.35em 0 0.5em;
}

.pll-legend {
display: block;
padding: 2px 0;
color: #1d2327;
font-weight: 400;
text-shadow: none;
margin: 0.35em 0 0.5em;
}

/* Narrow devices */
@media screen and ( max-width: 782px ) {
/* Metaboxes holder in Strings translations screen */
.languages_page_mlang_strings .metabox-holder > div {
flex-direction: column;
}
.languages_page_mlang_strings .metabox-holder > div > div:nth-child(2n) {
margin-left: 0;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e7303ed

Please sign in to comment.