Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * MODO DE USAR:
- * PLUGAR O CÓDIGO NO ARQUIVO FUNCTIONS.PHP DO THEME
- *
- */
- /* CORES DIFERENCIADAS NA LISTAGEM DOS POSTS */
- function posts_status_color() {
- ?>
- <style>
- .status-draft { background: #C5C5C5 !important; }
- .status-pending { background: #87C5D6 !important; }
- .status-future { background: #C6EBF5 !important; }
- .status-private { background: #F2D46F; }
- </style>
- <?php
- }
- add_action('admin_footer','posts_status_color');
- /* APLICA ISTO AQUI E DÁ UM CONFERE NA PÁGINA DE OPÇÕES DE QUALQUER WOO THEME */
- function fixed_woo_theme_menu() {
- echo <<<HTML
- <style type="text/css">
- #woo_container #header {display:none;}
- #woo_container #content {margin-left: 189px;}
- #woo_container #woo-nav {position: fixed;}
- #wooform-reset { margin-left: 180px }
- </style>
- HTML;
- }
- if ( ( isset($_GET['page']) ) && ( $_GET['page'] == 'woothemes' ) ) add_action('admin_head', 'fixed_woo_theme_menu', 999);
- /* MESMA COISA, PRA ELEGANT THEMES - AQUI TEM UM PROBLEMINHA Q VC VAI VER NO E-PANEL */
- if ( ( isset($_GET['page']) ) && ( $_GET['page'] == 'core_functions.php' ) ) add_action('admin_head', 'fixed_elegant_theme_menu', 999); // Insert CSS in <head>
- function fixed_elegant_theme_menu() {
- echo <<<HTML
- <style type="text/css">
- #epanel-content ul#epanel-mainmenu {float:left;position:fixed;left:175px;top:212px}
- #epanel-logo {display:none}/*position:fixed;left:263px;top:130px}*/
- #epanel-bottom {background:none;width:200px;top:512px;position:fixed}
- #footer {display:none;visibility:hidden}
- #panel-wrap {
- min-height: 640px;
- }
- </style>
- HTML;
- }
- // END OF FILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement