123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- if (!class_exists("plug_dashboard")) {
- class plug_dashboard {
- function __construct($ns) {
- $this->title = __("Dashboard","dagsopt");
- $this->pluginname = $ns->pluginname;
- $this->file = $ns->file;
- $this->ns = $ns;
- }
- function start(){
- add_action( 'wp_dashboard_setup' , array(&$this,'remove_dashboard_widgets'), 113 );
- }
-
- function remove_dashboard_widgets() {
- remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
- remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
- remove_meta_box( 'dashboard_browser_nag', 'dashboard', 'normal' );
- remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
- remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
- remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
- remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );
- }
-
- function Option($pre){
- //update_option ( $pre.'_width', $_POST [ $pre.'_width' ] );
-
-
- }
-
- function help(){
- ?>
- <?php echo(__("Clean dashboard in admin mode","dagsopt")) ?><br>
- <?php
- }
-
-
- function admin_line($pre){
- ?>
-
- <?php
- }
-
- }
- /*
- function example_dashboard_widget_function() {
- echo "Hello World, I'm a great Dashboard Widget";
- }
- function example_add_dashboard_widgets() {
- wp_add_dashboard_widget('example_dashboard_widget', 'Example Dashboard Widget', 'example_dashboard_widget_function');
- }
- add_action('wp_dashboard_setup', 'example_add_dashboard_widgets' );
- */
- global $plug_dashboard;
- $plug_dashboard = new plug_dashboard($this);
- $this->dagsopt['plug_dashboard'] = $plug_dashboard;
-
- }
|