2003-06-01 09:47:29 +02:00
|
|
|
<?php
|
2008-08-11 22:26:31 +02:00
|
|
|
/**
|
|
|
|
* Dashboard Administration Panel
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Bootstrap */
|
2007-09-04 01:32:58 +02:00
|
|
|
require_once('admin.php');
|
2006-11-19 00:12:39 +01:00
|
|
|
|
2008-08-11 22:26:31 +02:00
|
|
|
/** Load WordPress dashboard API */
|
2008-03-24 21:36:46 +01:00
|
|
|
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
2008-02-02 08:57:51 +01:00
|
|
|
|
|
|
|
wp_dashboard_setup();
|
|
|
|
|
2008-08-11 22:26:31 +02:00
|
|
|
/**
|
|
|
|
* Display dashboard widget custom JavaScript.
|
|
|
|
*
|
|
|
|
* @since unknown
|
|
|
|
*/
|
2006-11-19 00:12:39 +01:00
|
|
|
function index_js() {
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
2008-04-02 18:22:53 +02: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-19 00:12:39 +01:00
|
|
|
</script>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
add_action( 'admin_head', 'index_js' );
|
2007-06-02 03:01:57 +02:00
|
|
|
|
|
|
|
wp_enqueue_script( 'jquery' );
|
2008-08-05 19:06:42 +02:00
|
|
|
wp_enqueue_script( 'plugin-install' );
|
2008-05-22 02:06:41 +02:00
|
|
|
wp_admin_css( 'dashboard' );
|
2008-08-05 19:06:42 +02:00
|
|
|
wp_admin_css( 'plugin-install' );
|
2008-08-04 23:01:09 +02:00
|
|
|
add_thickbox();
|
2006-11-19 00:12:39 +01:00
|
|
|
|
2007-09-04 01:32:58 +02:00
|
|
|
$title = __('Dashboard');
|
2006-11-18 08:31:29 +01:00
|
|
|
$parent_file = 'index.php';
|
2004-12-19 01:10:10 +01:00
|
|
|
require_once('admin-header.php');
|
2003-06-01 09:47:29 +02:00
|
|
|
|
2004-12-19 08:26:43 +01:00
|
|
|
$today = current_time('mysql', 1);
|
2004-12-19 01:10:10 +01:00
|
|
|
?>
|
2003-06-01 09:47:29 +02:00
|
|
|
|
2004-12-19 01:10:10 +01:00
|
|
|
<div class="wrap">
|
2008-03-10 06:47:07 +01:00
|
|
|
<div id="dashboard-widgets-wrap">
|
|
|
|
|
2008-02-02 08:57:51 +01:00
|
|
|
<?php wp_dashboard(); ?>
|
2007-12-20 21:23:30 +01:00
|
|
|
|
2008-03-10 06:47:07 +01:00
|
|
|
|
|
|
|
</div><!-- dashboard-widgets-wrap -->
|
|
|
|
|
2008-02-02 08:57:51 +01:00
|
|
|
</div><!-- wrap -->
|
2004-02-02 22:54:32 +01:00
|
|
|
|
2008-02-02 08:57:51 +01:00
|
|
|
<?php require('./admin-footer.php'); ?>
|