'Nachrichten:',
'news' => '5',
'chars' => '30',
);
}
// RSS Objekt
$daten = '
Aktion Libero
Sportblogs gegen Homophobie im Fußball
de
http://aktion-libero.de/?feed=rss2
Wed, 16 Nov 2011 00:00:00 GMT
-
Homepage
Website der Aktion
http://www.aktion-libero.de
';
$rss = @simplexml_load_file('http://aktion-libero.de/?feed=rss2');
if($rss === false){
$rss = simplexml_load_string($daten);
echo $after_widget;
}
?>
channel->item as $i) {
if($max_news > 0 AND $cnt >= $max_news){
break;
}
?>
-
title;
$length = strlen($title);
if($length > $max_length){
$title = substr($title, 0, $max_length)." ...";
}
?>
=$title?>
'Nachrichten:',
'news' => '5',
'chars' => '30',
);
}
$pfad = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));
echo $before_widget;
echo $before_title;
echo $after_title;
echo '
Sportblogs gegen Homophobie im Fußball
';
echo ''.$options['title'].'
';
libero();
echo $after_widget;
}
function libero_control()
{
$options = get_option("widget_libero");
if (!is_array($options)){
$options = array(
'title' => 'Neu:',
'news' => '5',
'chars' => '30',
);
}
if($_POST['libero-Submit'])
{
$options['title'] = htmlspecialchars($_POST['libero-WidgetTitle']);
$options['news'] = htmlspecialchars($_POST['libero-NewsCount']);
$options['chars'] = htmlspecialchars($_POST['libero-CharCount']);
update_option("widget_libero", $options);
}
?>
Dieses Widget zeigt aktuelle Nachrichten der »Aktion Libero | Sportblogs gegen Homophobie im Fußball«.