Read-only mirror of https://github.com/opendata-swiss/wp-app-showcase — opendata.swiss. Issues & pull requests at the source.
  • PHP 86.8%
  • Shell 13.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan Oderbolz e2e67b35ed Use GPL template
2016-12-20 10:58:27 +01:00
languages update translations files 2016-12-19 10:46:55 +01:00
post-types fix typo 2016-12-09 10:48:00 +01:00
.gitignore Initial import 2015-08-17 11:23:24 +02:00
.gitlab-ci.yml Initial import 2015-08-17 11:23:24 +02:00
.travis.yml run composer install before build script 2016-12-09 15:08:33 +01:00
app-showcase.php initialize capabilities directly in plugin 2016-12-09 10:23:46 +01:00
build.sh fix typo 2016-12-09 15:43:19 +01:00
code_standard.xml Initial import 2015-08-17 11:23:24 +02:00
compile_translation_files.sh Add translations and change textdomain to ogdch-app 2016-11-17 10:25:56 +01:00
composer.json Initial import 2015-08-17 11:23:24 +02:00
composer.lock Initial import 2015-08-17 11:23:24 +02:00
extract_messages.sh Add translations and change textdomain to ogdch-app 2016-11-17 10:25:56 +01:00
LICENSE.txt Use GPL template 2016-12-20 10:58:27 +01:00
README.md add build status image to readme 2016-12-09 15:53:07 +01:00

wp-app-showcase

Build Status

WordPress plugin to create an app showcase of OpenData-projects

Requirements

  • CMB2 plugin must be installed

Installation

Just activate the plugin in the WordPress plugin administration.

If you have the wp-ckan-backend plugin activated in your instance you will automatically get an autocomplete feature to select related datasets while creating/editing apps.

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

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