=== TTLive ===
Contributors: finalan
Donate link:
Tags: 
Requires at least: 3.0.1
Tested up to: 3.4.1
Stable tag: 0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A simple wordpress plugin to get the data from the ttlive-system and display in your wp-post or wp-page with shortcode.

== Description ==

A simple wordpress plugin to get the data from the ttlive-system and display in your wp-post or wp-page with shortcode.

Tischtennislive is a german online sport result system (http://www.tischtennislive.de). TTLive-Plugin help you, to show current team results on your WP-Page or WP-Posts. 

Mit Hilfe dieses Plugins kann man die aktuellen Ergebnisse und Daten vom Tischtennislive-System ziehen und auf seiner eigenen Vereinsseite darstellen.

Es können die Elemente Mannschaft, Spielplan, Tabelle und 14Tage angezeigt werden. Dabei aktualisiert dieses Plugin regelmäßig die Daten und speichert die entsprechende XML-Datei.

== Installation ==

1. Download and unzip `ttlive`-zip-file
2. Upload `ttlive`-directory to the `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Set base url in admin settings/options.
5. Place `[ttlive]` shortcode in your posts or pages. Use parameter to select which data you will show.

Parameters:
`elementname` - Rueckgabe-Element --> mögliche Werte: Mannschaft, Spielplan, Tabelle oder 14Tage
`mannschaft_id` - TTLive Mannschaft ID
`staffel_id` - TTLive Staffel ID
`tableclassname` - css-Klassenname der Tabelle
`own_team` -  Name des eigenen Teams
`teamalias` - noch ohne Funktion
`showleague` - Nur für die Tabelle: Ueberschrift-Anzeige der Liga (default: 1)
`showmatchecount` - Nur für die Tabelle: Anzahl der gemachten Spiele (default: 1)
`showsets` - Nur für die Tabelle:  Anzahl der gewonnenen/verlorenen Saetze (default: 1)
`showgames` - Nur für die Tabelle:  Anzahl der gewonnenen/verlorenen Spiele (default: 1)
`aufstiegsplatz` - Nur für die Tabelle:  Aufstiegsplaetze bis (default: 2)
`abstiegsplatz` - Nur für die Tabelle:  Abstiegsplaetze ab (default: 9)
`display_type` - Nur für die 14Tage: die letzten 14Tage (0 - default) oder die naechsten 14Tage (1)		
`refresh` - Anzahl Stunden bis die Daten erneut vom Live-System aktualisiert werden sollen

Examples with base url (http://bettv.tischtennislive.de):
`[ttlive elementname="Mannschaft" mannschaft_id="25340" staffel_id="3904"]`
`[ttlive elementname="Spielplan" own_team="SV Berliner Brauerei" mannschaft_id="25340" staffel_id="3904" tableclassname="TTLiveSpielplan"]`
`[ttlive elementname="Tabelle" own_team="SV Berliner Brauereien e.V." mannschaft_id="25340" staffel_id="3904" tableclassname="TTLiveTabelle" aufstiegsplatz=3]`
`[ttlive elementname="14Tage" tableclassname="TTLive14Tage" display_type=0]`
`[ttlive elementname="14Tage" tableclassname="TTLive14Tage" display_type=1]`

== Frequently Asked Questions ==

= Where i can i find this plugin in action? =

Check the [plugin homepage] (http://www.svbb-tischtennis.de/).

== Screenshots ==

no screenshots available

== Changelog ==

= 0.1 =
* Initial release
