# KIT Wordpress Theme
Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres.

[![](https://git.scc.kit.edu/saai/web-wordpress-kit/-/raw/master/kit/screenshot.png)](https://git.scc.kit.edu/saai/web-wordpress-kit/-/raw/master/kit/screenshot.png)

## Features

- [x] Responsive interface, mobile friendly
- [ ] Support for internationalization

## Maintainers
* [Jonas Heinrich](https://git.scc.kit.edu/ubezi)

## Installation

 * Titel: "saai | Archiv für Architektur und Ingenieurbau"
 * Einrichtung Wordpress
   * URL-Format: Einstellungen -> Permalinks -> Einstellen auf "Beitragsname" -> Übernehmen
   * Footer Menü
     * Design -> Menü
     * Name des Menüs: "Footer Menü"
     * Seiten: FAQ, Impressum, Datenschutz
     * Klicken auf Menü erstellen
     * Position im Theme: Footer Menü
    * Suchseite anlegen https://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php
    * Custom logo, custom theme color
    * Einstellungen -> Permalinks
      * Benutzerdefiniert: "/%category%/%postname%/"
      * Speichern
  * Plugins: WP-Multilang
 * **From the appstore:** The most recent and stable version of the app can be found in the [official appstore](https://apps.nextcloud.com/apps/radio).
 * **Using git:** In your `nextcloud/apps/` directory, run `git clone https://git.project-insanity.org/onny/nextcloud-app-radio.git radio`. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app.
 * **Using the zip archive:** Download the latest [tar.bz2 archive](https://git.project-insanity.org/onny/nextcloud-app-radio/repository/archive.tar.bz2?ref=master), extract the directory inside your `nextcloud/apps/` directory, and rename it to `radio`. For stable releases, you can also download one of the [releases](https://git.project-insanity.org/onny/nextcloud-app-radio/) tar.bz2 archives. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app.
 * **Using package manager:** For ArchLinux, there is an [AUR package](https://aur.archlinux.org/packages/nextcloud-app-radio-git/) available.

## Development
Generate or update language file:
```
make generate_pot
```

## Testing
Can be easily tested using Docker:
```
make docker_up
```
The Wordpress instance is then available in the local network at http://localhost:8080/ . If you are using nftables firewall, consider a [migration to iptables-nft](https://wiki.archlinux.org/index.php/Nftables#Working_with_Docker) to keep Docker working.

## Reporting bugs
You can report bugs in the public gitlab repository [here](https://git.project-insanity.org/onny/nextcloud-app-radio/issues) and for discussion you can find a section for the app in the offical Nextcloud forums [here](https://help.nextcloud.com/c/apps/radio).

## Adding translations
For now only German translations are provided, so please submit your translations if possible :) It's really easy, just `git clone` this repo and copy the translation files in `l10n` according to your locale. Merge requests go to [this radio repository](https://git.project-insanity.org/onny/nextcloud-app-radio).

## Adding radio stations
This app uses a public and open database of radio stations as its backend, so any station you add in [radio-browser.info](http://www.radio-browser.info/) (no account required), will be also available in this app. Feel free to contribute :)

## Credits
* [radio-browser.info](http://www.radio-browser.info/) database api as backend for this app
* Python example code to query stream metadata, took from [here](https://anton.logvinenko.name/en/blog/how-to-get-title-from-audio-stream-with-python.html).

## Donation
If you like this app and want to support my work, you can donate to this Bitcoin address:
```
19mpmuNczGDgdxaBLBn3REEpQLPPcJHZB6
```
