grunion_admin_css

The Jetpack by WordPress.com grunion admin css function.

Description

grunion_admin_css(); 

Usage

  1. if ( !function_exists( 'grunion_admin_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/contact-form/admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = grunion_admin_css(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/contact-form/admin.php  
  1. function grunion_admin_css() { 
  2. global $current_screen; 
  3. if ( ! in_array( $current_screen->id, array( 'edit-feedback', 'jetpack_page_omnisearch', 'dashboard_page_omnisearch' ) ) ) { 
  4. return; 
  5.  
  6. wp_enqueue_script( 'wp-lists' ); 
  7. ?> 
  8.  
  9. <style type='text/css'> 
  10. .add-new-h2, .view-switch, body.no-js .tablenav select[name^=action], body.no-js #doaction, body.no-js #do { 
  11. display: none 
  12.  
  13. .column-feedback_from img { 
  14. float:left; 
  15. margin-right:10px; 
  16. margin-top:3px; 
  17.  
  18. .widefat .column-feedback_from { 
  19. width: 17%; 
  20. .widefat .column-feedback_date { 
  21. width: 17%; 
  22.  
  23. .spam a { 
  24. color: #BC0B0B; 
  25.  
  26. .untrash a { 
  27. color: #D98500; 
  28.  
  29. .unspam a { 
  30. color: #D98500; 
  31.  
  32. #icon-edit.icon32-posts-feedback, #icon-post.icon32-posts-feedback { background: url("<?php echo GRUNION_PLUGIN_URL; ?>images/grunion-menu-big.png") no-repeat !important; } 
  33. @media only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { 
  34. #icon-edit.icon32-posts-feedback, #icon-post.icon32-posts-feedback { background: url("<?php echo GRUNION_PLUGIN_URL; ?>images/grunion-menu-big-2x.png") no-repeat !important; background-size: 30px 31px !important; } 
  35.  
  36. #icon-edit.icon32-posts-feedback { background-position: 2px 2px !important; } 
  37.  
  38. </style> 
  39.  
  40. <?php