A wordpress plugin that displays pirate parties as a widget, datasource is the PPI-rest-api.
- Author: Peter Grassberger
- License: MIT
Flag Icons: lipis/flag-icon-css
- Activate plugin.
- Add Widget to Sidebar.
- user
[pirate-party id="ppat"]
shorcode in post. - Full shortcode options:
[pirate-party id="ppat" show-logo="1" show-native-name="1" show-membershipsshow-website="1" show-facebook="0" show-twitter="1" show-googleplus="0" show-youtube="0"]
. show-all="1"
overwrites all show options and sets them to1
.
- Install VirtualBox and Vagrant.
- Run
vagrant up
. - Open
http://localhost:8080/
in your browser.
- Install Wordpress on a webserver.
- Move files to
*wordpress-install-dir*/wp-content/plugins/wp-pirate-parties
- (You can remove the Vagrantfile).
- Activate the plugin.
- Add the Widget to the Sidebar.
Run
xgettext --from-code=utf-8 -k_e -k_x -k__ -o languages/wp-pirate-parties.pot $(find . -name "*.php")
.
To create .mo files run
msgfmt -o wp-pirate-parties-de_DE.mo wp-pirate-parties-de_DE.po