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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-11-16 11:32:01 +01:00
assets Use updated ogdch_counts route from CKAN backend 2020-07-06 16:53:29 +02:00
languages Add missed translations for showcases 2020-08-03 18:24:03 +02:00
ninja-forms/templates add bootstrap classes to ninjaforms template 2017-12-15 11:54:49 +01:00
partials setup piwik tracking 2017-02-09 09:23:11 +01:00
.gitignore add newsletter button to the footer 2020-05-14 11:14:06 +02:00
.gitlab-ci.yml Add simple build for code style 2015-07-31 23:53:15 +02:00
.gitmodules add wp-bootstrap-navwalker as submodule 2016-06-17 08:44:02 +02:00
.travis.yml Remove outdated PHP versions 2019-10-08 18:16:06 +02:00
404.php replace wrong esc_attr_e with esc_html_e 2018-01-23 13:27:33 +01:00
archive-app.php replace wrong esc_attr_e with esc_html_e 2018-01-23 13:27:33 +01:00
archive.php Initial commit 2015-06-19 10:07:34 +02:00
build.sh enable travis build 2016-12-09 15:48:26 +01:00
code_standard.xml remove unused missing_translations file (Yay!) 2017-12-15 11:43:35 +01:00
compile_translation_files.sh add script to compile translation files 2015-12-14 17:01:01 +01:00
composer.json Expose API function for CKAN and call Twitter API for count 2015-09-23 16:09:15 +02:00
composer.lock Expose API function for CKAN and call Twitter API for count 2015-09-23 16:09:15 +02:00
extract_messages.sh Update translations 2016-11-17 13:42:17 +01:00
footer.php remove faq links form footer after faq page has been removed 2020-09-14 09:23:14 +02:00
front-page.php fix API-handbook-URL 2020-11-16 11:26:52 +01:00
functions.php remove unused ninja forms filter 2017-12-20 17:19:14 +01:00
gulpfile.js Add jquery-ui-autocomplete for search autosuggest 2018-10-31 16:52:29 +01:00
header.php replace wrong esc_attr_e with esc_html_e 2018-01-23 13:27:33 +01:00
index.php removed unused index code 2015-09-24 17:35:38 +02:00
LICENSE.txt Use GPL template 2016-12-20 10:59:13 +01:00
package.json update npm modules / use libsass instead of ruby-sass 2016-10-10 18:17:12 +02:00
page.php changed look of page-header 2015-10-02 09:26:09 +02:00
README.md add build status image to readme 2016-12-09 15:57:31 +01:00
screenshot.png update theme screenshot 2015-11-13 10:58:55 +01:00
search.php Initial commit 2015-06-19 10:07:34 +02:00
sidebar.php Initial commit 2015-06-19 10:07:34 +02:00
single-app.php changed look of page-header 2015-10-02 09:26:09 +02:00
single.php removed unused template implementations 2015-09-24 17:37:27 +02:00
style.css Update theme metadata 2016-11-17 14:23:46 +01:00
taxonomy.php removed unused template implementations 2015-09-24 17:37:27 +02:00

wp-ogdch-theme

Build Status

WordPress theme for OGD-CH

Development

  1. Install composer if it isn't installed system wide:

    $ curl -sS https://getcomposer.org/installer | php
    
  2. Run php composer.phar install to install dependencies

  3. add wordpress-standard to phpcs: ./bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs

  4. 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