brasofilo

COLEÇÃO DE UTILIDADES WP

Nov 8th, 2011
146
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3.  * MODO DE USAR:
  4.  * PLUGAR O CÓDIGO NO ARQUIVO FUNCTIONS.PHP DO THEME
  5.  *
  6. */
  7.  
  8.  
  9. /* CORES DIFERENCIADAS NA LISTAGEM DOS POSTS */
  10. function posts_status_color() {
  11. ?>
  12.   <style>
  13.   .status-draft { background: #C5C5C5 !important; }
  14.   .status-pending { background: #87C5D6 !important; }
  15.   .status-future { background: #C6EBF5 !important; }
  16.   .status-private { background: #F2D46F; }
  17.   </style>
  18. <?php
  19. }
  20. add_action('admin_footer','posts_status_color');
  21.  
  22.  
  23. /* APLICA ISTO AQUI E DÁ UM CONFERE NA PÁGINA DE OPÇÕES DE QUALQUER WOO THEME */
  24. function fixed_woo_theme_menu() {
  25.     echo <<<HTML
  26.     <style type="text/css">
  27.     #woo_container #header {display:none;}
  28.     #woo_container #content {margin-left: 189px;}
  29.     #woo_container #woo-nav {position: fixed;}
  30.     #wooform-reset { margin-left: 180px }
  31.     </style>
  32. HTML;
  33. }
  34. if ( ( isset($_GET['page']) ) && ( $_GET['page'] == 'woothemes' ) ) add_action('admin_head', 'fixed_woo_theme_menu', 999);
  35.  
  36.  
  37. /* MESMA COISA, PRA ELEGANT THEMES - AQUI TEM UM PROBLEMINHA Q VC VAI VER NO E-PANEL */
  38. if ( ( isset($_GET['page']) ) && ( $_GET['page'] == 'core_functions.php' ) ) add_action('admin_head', 'fixed_elegant_theme_menu', 999); // Insert CSS  in <head>
  39. function fixed_elegant_theme_menu() {
  40.     echo <<<HTML
  41.     <style type="text/css">
  42.     #epanel-content ul#epanel-mainmenu {float:left;position:fixed;left:175px;top:212px}
  43.     #epanel-logo {display:none}/*position:fixed;left:263px;top:130px}*/
  44.     #epanel-bottom {background:none;width:200px;top:512px;position:fixed}
  45.     #footer {display:none;visibility:hidden}
  46.     #panel-wrap {
  47.     min-height: 640px;
  48.     }
  49.     </style>
  50. HTML;
  51. }
  52.  
  53. // END OF FILE
RAW Paste Data