A podPress Widget
settings['podcastFeedURL'] != get_settings('rss2_url')) {
?>
\n";
if($options['itunes']) {
echo '
'."\n";
}
if($options['podcast']) {
echo '
'."\n";
}
if($options['blog']) {
echo '
'."\n";
}
echo "\n";
echo $after_widget;
}
// Tell Dynamic Sidebar about our new widget and its control
register_sidebar_widget(array('Feed Buttons', 'widgets'), 'podPress_feedButtons');
register_widget_control(array('Feed Buttons', 'widgets'), 'podPress_feedButtons_control');
function podPress_xspfPlayer_control() {
$options = $newoptions = get_option('widget_podPressXspfPlayer');
if ( $_POST["podPressXspfPlayer-submit"] ) {
$newoptions['useSlimPlayer'] = isset($_POST['podPressXspfPlayer-useSlimPlayer']);
$newoptions['title'] = strip_tags(stripslashes($_POST["podPressXspfPlayer-title"]));
}
if ( $options != $newoptions ) {
$options = $newoptions;
update_option('widget_podPressXspfPlayer', $options);
}
$useSlimPlayer = $options['useSlimPlayer'] ? 'checked="checked"' : '';
if(!isset($options['title'])) {
$options['title'] = __('Podcast Player');
}
$title = htmlspecialchars($options['title'], ENT_QUOTES);
?>
A podPress Widget
'."\n";
echo ' '."\n";
echo ''."\n";
} elseif(1==2) {
// } elseif(true) {
echo ''."\n";
/*
echo ''."\n";
*/
} else {
echo ''."\n";
}
echo $after_widget;
}
// Tell Dynamic Sidebar about our new widget and its control
register_sidebar_widget(array('XSPF Player', 'widgets'), 'podPress_xspfPlayer');
register_widget_control(array('XSPF Player', 'widgets'), 'podPress_xspfPlayer_control');