greenpeace / planet4-gpch-plugin-blocks
Provides Planet4 content blocks specific to Greenpeace Switzerland
Installs: 2 144
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 1
Open Issues: 6
Type:wordpress-plugin
- dev-master
- v1.35
- v1.34
- v1.33
- v1.32
- v1.31
- v1.30
- v1.29
- v1.28
- v1.27
- v1.26
- v1.25
- v1.24
- v1.23
- v1.22
- v1.21
- v1.20
- v1.19
- v1.18
- v1.17
- v1.16
- v1.15
- v1.14
- v1.13
- v1.12
- v1.11
- v1.10
- v1.9
- v1.8
- v1.7
- v1.6
- v1.5
- v1.4
- v1.3
- v1.2
- v1.1
- v1.0.26
- v1.0.0
- v0.1.44
- v0.1.43
- v0.1.42
- v0.1.41
- v0.1.40
- v0.1.39
- v0.1.38
- v0.1.37
- v0.1.36
- v0.1.35
- v0.1.34
- v0.1.33
- v0.1.32
- v0.1.31
- v0.1.30
- v0.1.28
- v0.1.27
- v0.1.25
- v0.1.24
- v0.1.23
- v0.1.22
- v0.1.21
- v0.1.20
- v0.1.19
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.2
- v0.0.1
- dev-dependabot/npm_and_yarn/multi-cf87d80143
- dev-dependabot/npm_and_yarn/multi-d66d039ac5
- dev-dependabot/npm_and_yarn/multi-9423f4c335
- dev-dependabot/npm_and_yarn/multi-5b2fc84489
- dev-dependabot/npm_and_yarn/axios-1.7.5
- dev-dependabot/npm_and_yarn/webpack-5.94.0
- dev-develop
- dev-release/v1.36
- dev-release/v1.35
- dev-feature/p2p-block-bugfix
- dev-release/v1.34
- dev-feature/P4-30-P2P-block-update
- dev-release/v1.33
- dev-feature/663-visual-identity-update
- dev-feature/v1.33
- dev-release/v1.32
- dev-feature/674-fix-p2p-email-sender
- dev-release/v1.31
- dev-feature/670-counter-block-bugfix
- dev-release/v1.30
- dev-feature/667-tag-rename
- dev-release/v1.29
- dev-feature/666-fix-sentry-issues
- dev-feature/655-fix-sentry
- dev-release/v1.28
- dev-release/v1.27
- dev-feature/650-multiplier-field
- dev-release/v1.26
- dev-feature/633-events-without-time
- dev-feature/624-remove-jquery
- dev-release/v1.25
- dev-feature/626-replace-deprecated-hooks
- dev-feature/623-update-dependencies
- dev-feature/483-remove-old-accordion
- dev-feature/622-donation-progress-tamaro
- dev-feature/618-color-scheme-change
This package is auto-updated.
Last update: 2025-01-27 15:28:59 UTC
README
Content Blocks, specific to the GPCH installation of Planet4.
Install
Install dependencies:
npm install --save-dev
composer install --ignore-platform-reqs
Coding Standards
Any new code added is required to implement Wordpress coding standards
Javascript: Use JSHint
Set JSHint to use .jshintrc provided in this repository.
Example for PHPStorm:
- Settings -> Languages & Frameworks -> Javascript -> Code Quality Tools -> JSHint
- ☑ Enable
- ☑ Use config files
- Location: ☑ Default
Build
Make sure your files are formatted correctly:
npm run format
Make sure your files pass ESLint with the provided config:
npm run lint:js
Build files for production:
npm run build
Build styles:
sass assets/css/source/style.scss assets/css/style.css --style=compressed
Autoloader
To generate autoload files, run
composer dump-autoload
Translations
- Generate .pot files: Use wp-cli or PoEdit. PoEdit is the preferred option as it reads strings from all files including Twig templates.
- Create the .po and .mo files for each language using Poedit
- Transform the po files into additional JSON for use with Javascript.
Example: wp i18n make-json planet4-gpch-plugin-blocks-de_CH.po --no-purge
Then rename the files to use the handle instead of the auto generated md5 string in the filename.