Permalink
Browse files

add screenshots and also gide comment-menu

  • Loading branch information...
1 parent 9800fe4 commit 7ee747a66caa19c7b27f7ae278abd1057ece457c @bueltge committed Jun 2, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 remove-comments-absolute.php
  2. BIN screenshot-1.png
  3. BIN screenshot-2.png
@@ -36,6 +36,7 @@ public function __construct () {
add_filter( 'pings_open', array( $this, 'close_comments', 10, 2 ) );
add_action( 'admin_init', array( $this, 'remove_comments' ) );
+ add_filter( 'add_menu_classes', array( $this, 'add_menu_classes' ) );
add_action( 'admin_head', array( $this, 'remove_comments_areas' ) );
@@ -101,11 +102,20 @@ public function remove_comments () {
}
// remove dashboard meta box for recents comments
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
-
+ // unset comments
+ unset( $GLOBALS['menu'][25] );
// unset menuentry Discussion
unset( $GLOBALS['submenu']['options-general.php'][25] );
}
+ // add class for last menu entry
+ function add_menu_classes ($menu) {
+ $mc = count($menu);
+ echo $mc;
+ $menu[20][4] .= ' menu-top-last';
+ return $menu;
+ }
+
public function remove_comments_areas () {
?>
<script type="text/javascript">
@@ -127,4 +137,4 @@ public function admin_bar_render () {
} // end class
} // end if class exists
-?>
+?>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ee747a

Please sign in to comment.