mirror of
https://github.com/opendata-swiss/wp-ogdch-theme.git
synced 2026-08-26 12:24:18 +00:00
Read-only mirror of https://github.com/opendata-swiss/wp-ogdch-theme — opendata.swiss. Issues & pull requests at the source.
- CSS 55.5%
- SCSS 17.6%
- PHP 17.4%
- JavaScript 6.2%
- HTML 2.9%
- Other 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| assets | ||
| languages | ||
| ninja-forms/templates | ||
| partials | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitmodules | ||
| .travis.yml | ||
| 404.php | ||
| archive-app.php | ||
| archive.php | ||
| build.sh | ||
| code_standard.xml | ||
| compile_translation_files.sh | ||
| composer.json | ||
| composer.lock | ||
| extract_messages.sh | ||
| footer.php | ||
| front-page.php | ||
| functions.php | ||
| gulpfile.js | ||
| header.php | ||
| index.php | ||
| LICENSE.txt | ||
| package.json | ||
| page.php | ||
| README.md | ||
| screenshot.png | ||
| search.php | ||
| sidebar.php | ||
| single-app.php | ||
| single.php | ||
| style.css | ||
| taxonomy.php | ||
wp-ogdch-theme
WordPress theme for OGD-CH
Development
-
Install composer if it isn't installed system wide:
$ curl -sS https://getcomposer.org/installer | php -
Run
php composer.phar installto install dependencies -
add wordpress-standard to phpcs:
./bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs -
Install theme dependencies
$ cd content/themes/ogdch/ $ npm install
To check the code style, run the build script:
$ ./build.sh
This script runs on Travis CI as well for every push.
Extract messages / Compile translation files
Run the following script to extract messages from php-files and generate a new wp-ogdch-theme.pot file:
$ ./extract_messages.sh
To compile all .po files to .mo files use the following script:
$ ./compile_translation_files.sh
Run tests
To check the code style, run the build script:
$ ./build.sh
This script runs on GitLab CI as well for every pull request.
Compile theme resources
$ gulp sass
$ gulp scripts
or watch changes
$ cd ogdch.dev/content/themes/ogdch/
$ gulp watch