<?php
/*
Plugin Name: Dashboard Widget Example
Plugin URI: http://developersmind.com/2010/06/16/writing-a-wordpress-dashboard-widget/
Description: Example plugin that shows how to create a WordPress Dashboard Widget. For details, look at <a href="http://developersmind.com/2010/06/16/writing-a-wordpress-dashboard-widget/">this</a> post.
Version: 1.0
Author: Pete Mall
Author URI: http://developersmind.com/
License: GPL2
*/

if( !class_exists( 'DevMind_DashboardWidget') ) {
	class DevMind_DashboardWidget {
		function devmind_dashboard_widget() {
			echo '<p><a href="http://wordpress.org/">WordPress</a> is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time.</p>';
		}

		function devmind_add_dashboard_widget() {
			wp_add_dashboard_widget( 'devmind-custom-widget', 'About WordPress', array( 'DevMind_DashboardWidget', 'devmind_dashboard_widget' ) );
		}		
	}
	add_action( 'wp_dashboard_setup', array( 'DevMind_DashboardWidget', 'devmind_add_dashboard_widget' ) );
}
?>
