PHPackages                             greenpeace/planet4-child-theme-switzerland - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. greenpeace/planet4-child-theme-switzerland

ActiveWordpress-theme

greenpeace/planet4-child-theme-switzerland
==========================================

Child theme for the swiss website in the Planet 4 project.

v2.0.49(1mo ago)22.6k[5 PRs](https://github.com/greenpeace/planet4-child-theme-switzerland/pulls)GPL-3.0+PHPCI failing

Since Mar 29Pushed 1mo ago9 watchersCompare

[ Source](https://github.com/greenpeace/planet4-child-theme-switzerland)[ Packagist](https://packagist.org/packages/greenpeace/planet4-child-theme-switzerland)[ RSS](/packages/greenpeace-planet4-child-theme-switzerland/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (318)Used By (0)

Greenpeace Planet 4 Child Theme for GP Switzerland
==================================================

[](#greenpeace-planet-4-child-theme-for-gp-switzerland)

Child theme for the Planet 4 Wordpress project. The related master theme’s code lives at:

.

Please check the master theme code for more information.

Development
-----------

[](#development)

### Coding standards

[](#coding-standards)

Using mostly WordPress coding standards, with a few exceptions.

Make sure to use the configured code linters for PHP, JS, CSS and Markdown. See [package.json](package.json) for the commands.

### Stylesheets

[](#stylesheets)

Three stylesheets are generated using SCSS:

```
sass src/scss/style.scss style.css --style=compressed
sass src/scss/editor-style.scss admin/css/editor-style.css --style=compressed
```

### Translations

[](#translations)

1. Export a pot file using wp-cli (Don't use WPML for the .pot file, it will not contain the references where the strings are used). When used inside the dev environment: `npx wp-env run cli wp i18n make-pot wp-content/themes/planet4-child-theme-switzerland/ wp-content/themes/planet4-child-theme-switzerland/languages/planet4-child-theme-switzerland.pot`

If your most up to date translation is in WPML:

1. Scan the theme using for new translation strings using WPML. Make sure the scanning of Javascript is enabled if you need to find strings in JS.
2. Update the translations in WPML string translation
3. Export .po files for each language from WPML and save them to the theme's /languages folder: 3.1 Go to WPML String Translation 3.2 Filter by the translation domain you want to export 3.3 Select all strings 3.4 Export a .po file without translations and a separate one for each language. The export functionality is below the strings table.
4. Update the po files to also contain the references to where the strings are used using POEdit: 4.1 Open each .po file in POEdit 4.2 Go to Translation -&gt; Update from .pot file and select the .pot file exported in 1. 4.3 Save

If your most up to date translations are in .po files, use the same process, but don't overwrite the .po files from WPML

5. Generate the JSON files needed to translate strings in JS files: `npx wp-env run cli wp i18n make-json wp-content/themes/planet4-child-theme-switzerland/languages/`
6. Rename the generated JSON files. The hashes are not needed, but make sure the language code is exactly the same as the language. So for us `de_CH`, `fr_FR` and `it_CH`. `de` for example doesn't work as a fallback. A valid name is for example: `planet4-child-theme-switzerland-de_CH-planet4-child-theme-switzerland-food-quiz-view-script`

PHPStorm settings
-----------------

[](#phpstorm-settings)

### File watchers for SCSS

[](#file-watchers-for-scss)

File &gt; Settings &gt; Tools &gt; File Watchers

#### Main style.css

[](#main-stylecss)

**File Type:** SCSS Style Sheet

**Scope:** Create a scope that:

- Includes `src/scss`
- Excludes `/src/scss/editor-style.scss`

**Program:** sass

**Arguments:**

`--no-cache --update $FileName$:$ProjectFileDir$/$FileNameWithoutExtension$.css --style compressed`

**Output paths to refresh:**

`$ProjectFileDir$/$FileNameWithoutExtension$.css`

#### editor-style.css

[](#editor-stylecss)

**File Type:** SCSS Style Sheet

**Scope:** Create a scope that:

- Includes `src/scss`
- Excludes `/src/scss/style.scss`

**Program:** sass

**Arguments:**`--no-cache --update $FileName$:$ProjectFileDir$/admin/css/$FileNameWithoutExtension$.css --style compressed`

**Output paths to refresh:**`$ProjectFileDir$/admin/css/$FileNameWithoutExtension$.css`

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance90

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 87.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

237

Last Release

48d ago

Major Versions

v0.1.35 → v1.0.02019-07-22

v0.1.39 → v1.0.402020-05-19

v1.0.156 → v2.0.02024-07-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/73b0188184085e27029f0917c76dbc21e87c206c01909c3e931d53adf0bb3b3c?d=identicon)[sagarsdeshmukh](/maintainers/sagarsdeshmukh)

![](https://avatars.githubusercontent.com/u/939357?v=4)[Nikos Roussos](/maintainers/comzeradd)[@comzeradd](https://github.com/comzeradd)

![](https://avatars.githubusercontent.com/u/71187640?v=4)[Planet 4 Bot](/maintainers/planet-4)[@planet-4](https://github.com/planet-4)

---

Top Contributors

[![stduerre](https://avatars.githubusercontent.com/u/46678842?v=4)](https://github.com/stduerre "stduerre (1464 commits)")[![stefanduerrenberger](https://avatars.githubusercontent.com/u/76908?v=4)](https://github.com/stefanduerrenberger "stefanduerrenberger (179 commits)")[![sxtyfrty](https://avatars.githubusercontent.com/u/20201610?v=4)](https://github.com/sxtyfrty "sxtyfrty (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![Inwerpsel](https://avatars.githubusercontent.com/u/7604138?v=4)](https://github.com/Inwerpsel "Inwerpsel (1 commits)")[![koyan](https://avatars.githubusercontent.com/u/2528229?v=4)](https://github.com/koyan "koyan (1 commits)")

### Embed Badge

![Health badge](/badges/greenpeace-planet4-child-theme-switzerland/health.svg)

```
[![Health](https://phpackages.com/badges/greenpeace-planet4-child-theme-switzerland/health.svg)](https://phpackages.com/packages/greenpeace-planet4-child-theme-switzerland)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
