<?
/*
Plugin Name: WP Subtitle
Plugin URI: http://www.husani.com/ventures/wordpress-plugins/wp-subtitle/
Description: Add a subtitle to pages and posts.  Place &lt;?=the_subtitle()?&gt; where you'd like the subtitle to appear.  Similar to the_title, you can pass before, after, and display arguments.  Documentation included in this plugin's readme file.  Get help at <a href="http://forums.husani.com/forum/wp-subtitle/" target="_blank">support forums</a> and sign up for the <a href="http://www.husani.com/ventures/wordpress-plugins/wp-subtitle/mailing-list/" target="_blank">mailing list</a> to receive updates and news about WP Subtitle.  By <a href="http://www.husani.com" target="_blank">Husani Oakley</a>.
Author
Version: 1.0
*/

/*  Copyright 2009  Husani Oakley  (email : wordpressplugins@husani.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

/**
 * query db and echo page/post subtitle, if any
 */
function wps_get_the_subtitle(){
  global $post;
  echo get_post_meta($post->ID, "wps_subtitle", true);
}

/** HOOKS */
add_action('admin_menu', 'wps_addPanelXHTML');
add_action('save_post', 'wps_saveSubtitle');

/** FUNCTIONS FOR HOOKS */

/**
 * display xhtml for subtitle panel
 */
function wps_addPanelXHTML(){
  if( function_exists( 'add_meta_box' )) {
    add_meta_box('wps_panel', 'Page Subtitle', 'wps_showSubtitlePanel', 'page', 'normal', 'high');
    add_meta_box('wps_panel', 'Post Subtitle', 'wps_showSubtitlePanel', 'post', 'normal', 'high');
  } else {
    add_action('dbx_page_advanced', 'wps_showSubtitlePanelOld');
    add_action('dbx_post_advanced', 'wps_showSubtitlePanelOld');
  }
  //include css if admin
  if(is_admin()){
    add_action('admin_print_styles', 'wps_addPanelCSS');
  }
}

/**
 * include CSS for subtitle panel
 */
function wps_addPanelCSS(){
  $css = WP_PLUGIN_URL . '/wp-subtitle/admin/css/panel.css';
  wp_register_style('wps_css', $css);
  wp_enqueue_style( 'wps_css');
}

/**
 * include XHTML for form inside panel
 */
function wps_showSubtitlePanel(){
  include ABSPATH . PLUGINDIR . "/wp-subtitle/admin/panel.inc.php";
}

/**
 * for pre-2.5, include shell for panel
 */
function wps_showSubtitlePanelOld(){
  include ABSPATH . PLUGINDIR . "/wp-subtitle/admin/compat_panel.inc.php";
}

/**
 * store subtitle content in db as custom field
 */
function wps_saveSubtitle($post_id){
  //verify
  if (!wp_verify_nonce( $_POST['wps_noncename'], 'wp-subtitle')) {
    return $post_id;
  }
  if ('page' == $_POST['post_type']){
    if (!current_user_can('edit_page', $post_id)){
      return $post_id;
    }
  } else {
    if (!current_user_can('edit_post', $post_id)){
      return $post_id;
    }
  }
  //save data
  if(!update_post_meta($post_id, "wps_subtitle", $_POST["wps_subtitle"])){
    add_post_meta($post_id, "wps_subtitle", $_POST["wps_subtitle"]);
  }
}

/**
 * return subtitle from post inside The Loop
 */
function the_subtitle($before="", $after="", $display=true){
  global $post;
  $subtitle = $before . get_post_meta($post->ID, "wps_subtitle", true) . $after;
  if($display){
    echo $subtitle;
  } else {
    return $subtitle;
  }
}

/**
 * return (or display) subtitle from post with ID passed as argument
 */
function get_the_subtitle($id, $before="", $after="", $display=true){
  $subtitle = $before . get_post_meta($id, "wps_subtitle", true) . $after;
  if($display){
    echo $subtitle;
  } else {
    return $subtitle;
  }
}


?><?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beton on Fire</title>
	<atom:link href="http://www.betononfire.de/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.betononfire.de</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 14 Jul 2016 08:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<div id='fb-root'></div>
					<script>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/de_DE/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>Sigulda Teaser 2016</title>
		<link>http://www.betononfire.de/?p=957&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=957&#038;lang=en#comments</comments>
		<pubDate>Thu, 14 Jul 2016 08:14:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=957</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.betononfire.de/?feed=rss2&amp;lang=de">Deutsch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=957&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting ready for SOCHI 2016</title>
		<link>http://www.betononfire.de/?p=953&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=953&#038;lang=en#comments</comments>
		<pubDate>Thu, 14 Jul 2016 08:00:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=953</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.betononfire.de/?feed=rss2&amp;lang=de">Deutsch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=953&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sigulda Teaser 2015</title>
		<link>http://www.betononfire.de/?p=945&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=945&#038;lang=en#comments</comments>
		<pubDate>Wed, 20 Apr 2016 11:19:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=945</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.betononfire.de/?feed=rss2&amp;lang=de">Deutsch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=945&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Altenberg 2015</title>
		<link>http://www.betononfire.de/?p=940&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=940&#038;lang=en#comments</comments>
		<pubDate>Wed, 20 Apr 2016 11:09:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=940</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.betononfire.de/?feed=rss2&amp;lang=de">Deutsch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=940&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Altenberg 2014 &#8211; Get ready for 2015 =)</title>
		<link>http://www.betononfire.de/?p=930&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=930&#038;lang=en#comments</comments>
		<pubDate>Wed, 10 Jun 2015 20:38:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=930</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://www.betononfire.de/?feed=rss2&amp;lang=de">Deutsch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=930&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Altenberg 2013</title>
		<link>http://www.betononfire.de/?p=841&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=841&#038;lang=en#comments</comments>
		<pubDate>Mon, 24 Mar 2014 18:50:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=841</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe src="//player.vimeo.com/video/85826810" width="500" height="281" frameborder="0" title="SEBA Beton On Fire 2013&#039; Altenberg, Germany" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=841&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La Plagne 2013</title>
		<link>http://www.betononfire.de/?p=837&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=837&#038;lang=en#comments</comments>
		<pubDate>Mon, 24 Mar 2014 18:49:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=837</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe src="//player.vimeo.com/video/86402673" width="500" height="281" frameborder="0" title="SEBA Beton On Fire 2013&#039; La Plagne, France" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=837&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La Plagne 2012</title>
		<link>http://www.betononfire.de/?p=696&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=696&#038;lang=en#comments</comments>
		<pubDate>Tue, 04 Sep 2012 19:38:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=696</guid>
		<description><![CDATA[SEBA Beton On Fire 2012 &#8216; LA PLAGNE &#8216; from SEBASKATES on Vimeo.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/48378877" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/48378877">SEBA Beton On Fire 2012 &#8216; LA PLAGNE &#8216;</a> from <a href="http://vimeo.com/user5009810">SEBASKATES</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=696&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Altenberg 2012</title>
		<link>http://www.betononfire.de/?p=682&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=682&#038;lang=en#comments</comments>
		<pubDate>Mon, 02 Jul 2012 14:41:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=682</guid>
		<description><![CDATA[SEBA Beton On Fire 2012 Altenberg, Germany&#8217; from SEBASKATES on Vimeo.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/43817890" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/43817890">SEBA Beton On Fire 2012 Altenberg, Germany&#8217;</a> from <a href="http://vimeo.com/user5009810">SEBASKATES</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=682&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Results 2012</title>
		<link>http://www.betononfire.de/?p=491&#038;lang=en</link>
		<comments>http://www.betononfire.de/?p=491&#038;lang=en#comments</comments>
		<pubDate>Tue, 03 Apr 2012 16:14:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.betononfire.de/?p=491</guid>
		<description><![CDATA[Final Result Inline &#8211; Beton 2012 Altenberg Round 3 1 GER AUERSWALD, Philipp 1:20.30 2 SUI GUIGNET, Romain 1:22.96 3 GER NOERL, Moritz 1:23.93 4 FRA VARIN, Nicolas 1:24.39 5 FRA BUXIN, Cedric 1:25.49 6 SUI BRAUN, Kilian 1:25.89 7 SUI ESTOPPEY, Jonathan 1:26.06 8 FRA POIRIER, Mathieu 1:29.70 9 FRA PINTO, Greg 1:30.84 10 [...]]]></description>
			<content:encoded><![CDATA[<table cellspacing="0">
<tr>
<td>
<h2><strong>Final Result Inline &#8211; Beton 2012 Altenberg</strong></h2>
<h2></h2>
<p><strong>Round 3</strong><br />
1  GER AUERSWALD, Philipp                   1:20.30<br />
2  SUI GUIGNET, Romain                       1:22.96<br />
3  GER NOERL, Moritz                           1:23.93<br />
4  FRA VARIN, Nicolas                          1:24.39<br />
5  FRA BUXIN, Cedric                           1:25.49<br />
6  SUI BRAUN, Kilian                            1:25.89<br />
7  SUI ESTOPPEY, Jonathan                  1:26.06<br />
8  FRA POIRIER, Mathieu                      1:29.70<br />
9  FRA PINTO, Greg                             1:30.84<br />
10  GER QUINGER, Falko                       1:48.57</p>
<p><strong>Round 2</strong></p>
<p>11  SUI AMAR, Mehdi                              1:30.99<br />
12  FRA TEISSIER, Jean                          1:31.66<br />
13  LIC WANGER, Johannes                      1:35.45<br />
14  FRA CARON, Fabien                           1:43.40<br />
15  SUI GONZALES, Daniel                       1:46.64</p>
<p><strong>Round 1</strong></p>
<p>16  FRA COTTINET, Florent                     1:47.27<br />
17  FRA BOUCHET, Cyril                          1:51.69<br />
18  FRA PHILIPPOTEAU, Marjorie               1:53.40</p>
<h2></h2>
<h2><strong>Final Result Longboard</strong><strong> &#8211; Beton 2012 Altenberg</strong></h2>
<h2></h2>
<p>1 RSA MALHERBE Benjamin                 1:00.86<br />
2 GER OLPP Hartmut                         1:02.60<br />
3 GER STRASSER Danny                    1:02.93<br />
4 GER HASS Benjamin                       1:06.33<br />
5 SUI RÜFLI Stefan                          1:06.42<br />
6 FRA CHOMMY Seb                         1:08.24<br />
7 RSA DUSS Alex                             1:14.59<br />
8 SUI CANTIENI Samy                      1:16.41
</td>
<table cellspacing="0">
<tr>
<td>
<h2><strong>Final Result Inline &#8211; Beton 2012 La Plagne</strong></h2>
<h2></h2>
<p>1 DANIEL LADURNER AUT 1:00.220<br />
2 PHILIPP AUERSWALD GER 1:02.180<br />
3 ROMAIN GUIGNET SUI 1:02.550<br />
4 NICOLAS VARIN FRA 1:04.070<br />
5 JONATHAN ESTOPPEY SUI 1:04.710<br />
6 CEDRIC BUXIN FRA 1:04.780<br />
7 ALEX ZWEILI SUI 1:05.600<br />
8 DAVID PARENT FRA 1:05.700<br />
9 FALKO QUINGER GER 1:06.070<br />
10 JUAN REY SUI 1:07.140<br />
11 DAVID LENOIR SUI 1:09.780<br />
12 CHRISTIAN MONTAVON SUI 1:09.810<br />
13 GEOFFROY DUBREIL SUI 1:09.870<br />
14 MEHDI AMAR SUI 1:10.280<br />
15 JOHANNES WANGER FL 1:10.460<br />
16 MATHIEU BRICHET FRA 1:08.080<br />
17 GREGOIRE PINTO FRA 1:11.590<br />
18 MATHIEU POIRIER FRA 1:12.310<br />
19 JEAN TEISSIER FRA 1:12.580<br />
20 SEBASTIEN RASTEGAR FRA 1:12.580<br />
21 KEVIN QUINTIN FRA 1:12.840<br />
22 SILVANO PUPPIN SUI 1:12.910<br />
23 STEPHANE RITTER SUI 1:13.590<br />
24 STEPHANE BOUCHET FRA 1:15.820<br />
25 RICHARD HERRONNEAUX FRA 1:16.340<br />
26 RONAN BROUSSE FRA 1:16.490<br />
27 FLORENT COTTINET FRA 1:20.040<br />
28 MORITZ NOERL GER 1:26.010<br />
29 DANIEL GONZALES SUI 1:44.560 </p>
<h2><strong>Final Result Longboard</strong><strong> &#8211; Beton 2012 La Plagne</strong></h2>
<h2></h2>
<p>1 SAMUEL GERBER FRA 1:09.430<br />
2 SEBASTIEN CHOMMY FRA 1:12.720<br />
3 DANNY STRASSER GER 1:13.210<br />
4 DYLAN RUMO SUI 1:17.540<br />
5 FLORIAN SCHWAB SUI DNF<br />
6 BENJAMIN HASS GER 1:27.300
</td>
<td width=30px></td>
<td>
<h2><strong>&gt;&gt;Final-Tour-Standing:</strong></h2>
<h2></h2>
<p><strong>Inline: Points:</strong></p>
<h2></h2>
<p>1 PHILIPP AUERSWALD GER 569<br />
2 ROMAIN GUIGNET SUI 519<br />
3 NICOLAS VARIN FRA 476<br />
4 CEDRIC BUXIN FRA  442<br />
5 JONATHAN ESTOPPEY SUI 433<br />
6 MORITZ NOERL GER 398<br />
7 FALKO QUINGER GER 385<br />
8 MATHIEU POIRIER FRA 363<br />
9 GREGOIRE PINTO FRA 359<br />
10 MEHDI AMAR SUI 358<br />
11 JOHANNES WANGER FL 346<br />
12 JEAN TEISSIER FRA 342<br />
13 DANIEL GONZALES SUI 317<br />
14 FLORENT COTTINET FRA 316<br />
15 DANIEL LADURNER AUT 300<br />
16 KILIAN BRAUN SUI  216<br />
17 ALEX ZWEILI SUI 207<br />
18 DAVID PARENT FRA 201<br />
19 JUAN REY SUI 190<br />
20 DAVID LENOIR SUI 185<br />
21 CHRISTIAN MONTAVON SUI  181<br />
22 GEOFFROY DUBREIL SUI 176<br />
23 FABIEN CARON FRA 173<br />
24 MATHIEU BRICHET FRA 167<br />
25 CYRIL BOUCHET FRA 164 164<br />
26 MARJORIE PHLIPPOTEAU FRA 162<br />
27 SEBASTIEN RASTEGAR FRA 159<br />
28 KEVIN QUINTIN FRA 157<br />
29 SILVANO PUPPIN SUI 156<br />
30 STEPHANE RITTER SUI 154<br />
31 STEPHANE BOUCHET FRA 153<br />
32 RICHARD HERRONNEAUX FRA 151<br />
33 RONAN BROUSSE FRA 150</p>
<h2></h2>
<p><strong>Longboard: Points:</strong></p>
<h2></h2>
<p>1 DANNY STRASSER GER 500<br />
2 SEBASTIEN CHOMMY FRA  485<br />
3 BENJAMIN HASS GER 454<br />
5 BENJAMIN MALHERBE RSA 300<br />
4 SAMUEL GERBER FRA 300<br />
6 HARTMUT OLPP GER  269<br />
7 DYLAN RUMO SUI 238<br />
8 FLORIAN SCHWAB SUI 226<br />
8 STEFAN RÜFLI SUI 226<br />
10 ALEX DUSS RSA  207<br />
11 SAMY CANTIENI SUI 201</p>
</td>
</tr>
</table>
<p><br/><br />
<br/></p>
<p>(Equal points after both events&#8230;the best single result will count!!!) </p>
]]></content:encoded>
			<wfw:commentRss>http://www.betononfire.de/?feed=rss2&#038;p=491&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
