2003-06-01 03:47:29 -04:00
|
|
|
<?php
|
2008-08-11 16:26:31 -04:00
|
|
|
/**
|
|
|
|
* Dashboard Administration Panel
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Bootstrap */
|
2007-09-03 19:32:58 -04:00
|
|
|
require_once('admin.php');
|
2006-11-18 18:12:39 -05:00
|
|
|
|
2008-08-11 16:26:31 -04:00
|
|
|
/** Load WordPress dashboard API */
|
2008-03-24 16:36:46 -04:00
|
|
|
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
2008-02-02 02:57:51 -05:00
|
|
|
|
|
|
|
wp_dashboard_setup();
|
|
|
|
|
2008-08-11 16:26:31 -04:00
|
|
|
/**
|
|
|
|
* Display dashboard widget custom JavaScript.
|
|
|
|
*
|
|
|
|
* @since unknown
|
|
|
|
*/
|
2006-11-18 18:12:39 -05:00
|
|
|
function index_js() {
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
2008-04-02 12:22:53 -04:00
|
|
|
jQuery(function($) {
|
|
|
|
var ajaxWidgets = {
|
|
|
|
dashboard_incoming_links: 'incominglinks',
|
|
|
|
dashboard_primary: 'devnews',
|
|
|
|
dashboard_secondary: 'planetnews',
|
|
|
|
dashboard_plugins: 'plugins'
|
|
|
|
};
|
|
|
|
$.each( ajaxWidgets, function(i,a) {
|
|
|
|
var e = jQuery('#' + i + ' div.dashboard-widget-content').not('.dashboard-widget-control').find('.widget-loading');
|
|
|
|
if ( e.size() ) { e.parent().load('index-extra.php?jax=' + a); }
|
|
|
|
} );
|
|
|
|
});
|
2006-11-18 18:12:39 -05:00
|
|
|
</script>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
add_action( 'admin_head', 'index_js' );
|
2007-06-01 21:01:57 -04:00
|
|
|
|
|
|
|
wp_enqueue_script( 'jquery' );
|
2008-08-05 13:06:42 -04:00
|
|
|
wp_enqueue_script( 'plugin-install' );
|
2008-05-21 20:06:41 -04:00
|
|
|
wp_admin_css( 'dashboard' );
|
2008-08-05 13:06:42 -04:00
|
|
|
wp_admin_css( 'plugin-install' );
|
2008-08-04 17:01:09 -04:00
|
|
|
add_thickbox();
|
2006-11-18 18:12:39 -05:00
|
|
|
|
2007-09-03 19:32:58 -04:00
|
|
|
$title = __('Dashboard');
|
2006-11-18 02:31:29 -05:00
|
|
|
$parent_file = 'index.php';
|
2004-12-18 19:10:10 -05:00
|
|
|
require_once('admin-header.php');
|
2003-06-01 03:47:29 -04:00
|
|
|
|
2004-12-19 02:26:43 -05:00
|
|
|
$today = current_time('mysql', 1);
|
2004-12-18 19:10:10 -05:00
|
|
|
?>
|
2003-06-01 03:47:29 -04:00
|
|
|
|
2004-12-18 19:10:10 -05:00
|
|
|
<div class="wrap">
|
2008-03-10 01:47:07 -04:00
|
|
|
<div id="dashboard-widgets-wrap">
|
|
|
|
|
2008-02-02 02:57:51 -05:00
|
|
|
<?php wp_dashboard(); ?>
|
2007-12-20 15:23:30 -05:00
|
|
|
|
2008-03-10 01:47:07 -04:00
|
|
|
|
|
|
|
</div><!-- dashboard-widgets-wrap -->
|
|
|
|
|
2008-02-02 02:57:51 -05:00
|
|
|
</div><!-- wrap -->
|
2004-02-02 16:54:32 -05:00
|
|
|
|
2008-02-02 02:57:51 -05:00
|
|
|
<?php require('./admin-footer.php'); ?>
|