'http://yoast.com/', 'feed_link' => 'http://yoast.com/feed/', 'edit_link' => 'options.php' ) );
}
// Modifies the array of dashboard widgets and adds this plugin's
function add_widget( $widgets ) {
global $wp_registered_widgets;
if ( !isset($wp_registered_widgets['yoast_posts']) ) return $widgets;
array_splice( $widgets, 2, 0, 'yoast_posts' );
return $widgets;
}
function widget($args = array()) {
$show = get_option('show_yoast_widget');
if ($show != 'noshow') {
if (is_array($args))
extract( $args, EXTR_SKIP );
echo $before_widget.$before_title.$widget_name.$after_title;
echo '
';
include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss('http://feeds2.feedburner.com/joostdevalk');
if ($rss) {
$items = array_slice($rss->items, 0, 2);
if (empty($items))
echo '