/** * @Package: WordPress Plugin * @Subpackage: Ultra WordPress Admin Theme * @Since: Ultra 1.0 * @WordPress Version: 4.0 or above * This file is part of Ultra WordPress Admin Theme Plugin. */ function ultra_custom_login() { global $ultraadmin; $ultraadmin = ultraadmin_network($ultraadmin); global $ultra_css_ver; $url = plugins_url('/', __FILE__) . '../' . $ultra_css_ver . '/ultra-login.css'; wp_deregister_style('ultra-login'); wp_register_style('ultra-login', $url); wp_enqueue_style('ultra-login'); echo "\n<style type='text/css'>"; /*text, backgrounds, link color*/ echo ultra_css_background("body, #wp-auth-check-wrap #wp-auth-check", "login-background") . "\n"; echo ultra_css_background(".login form", "login-form-background") . "\n"; echo ultra_link_color(".login #backtoblog a, .login #nav a, .login a", "login-link-color") . "\n"; echo ultra_css_color(".login, .login form label, .login form, .login .message", "login-text-color") . "\n"; /*login button*/ echo ultra_css_bgcolor(".login.wp-core-ui .button-primary", "login-button-bg") . "\n"; echo ultra_css_bgcolor(".login.wp-core-ui .button-primary:hover, .login.wp-core-ui .button-primary:focus", "login-button-hover-bg") . "\n"; echo ultra_css_color(".login.wp-core-ui .button-primary", "login-button-text-color") . "\n"; /*form input fields - text and checkbox*/ echo ultra_css_bgcolor(".login form .input, .login form input[type=checkbox], .login input[type=text]", "login-input-bg-color", $ultraadmin['login-input-bg-opacity'] == "" ? "0.5" : $ultraadmin['login-input-bg-opacity']) . "\n"; echo ultra_css_bgcolor(".login form .input:hover, .login form input[type=checkbox]:hover, .login input[type=text]:hover, .login form .input:focus, .login form input[type=checkbox]:focus, .login input[type=text]:focus", "login-input-bg-color", $ultraadmin['login-input-bg-hover-opacity'] == "" ? "0.8" : $ultraadmin['login-input-bg-hover-opacity']) . "\n"; echo ultra_css_color(".login form .input, .login form input[type=checkbox], .login input[type=text]", "login-input-text-color") . "\n"; echo ultra_css_color(".login.wp-core-ui input[type=checkbox]:checked:before", "login-input-text-color") . "\n"; /*form input fields - other fields - for future use*/ echo ultra_css_bgcolor("input[type=checkbox], input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=radio], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea", "login-input-bg-color", $ultraadmin['login-input-bg-opacity'] == "" ? "0.5" : $ultraadmin['login-input-bg-opacity']) . "\n"; echo ultra_css_color("input[type=checkbox], input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=radio], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea", "login-input-text-color") . "\n"; /*login error message*/ echo ultra_css_bgcolor(".login #login_error, .login .message", "login-input-bg-color", $ultraadmin['login-input-bg-opacity'] == "" ? "0.5" : $ultraadmin['login-input-bg-opacity']) . "\n"; echo ultra_css_color(" .login .message, .login .message a, .login #login_error, .login #login_error a", "login-input-text-color") . "\n"; /*login logo*/ $logo_url = ""; if (isset($ultraadmin['login-logo']['url']) && $ultraadmin['login-logo']['url'] != "") { $logo_url = $ultraadmin['login-logo']['url']; } else { $logo_url = $ultraadmin['logo']['url']; } echo '.login h1 a { background-image: url("' . $logo_url . '");}'; echo "</style>\n"; /* echo '.login{color: '.$ultraadmin['login-link-color']['regular'].'}'; echo '.login.wp-core-ui .button-primary{ height: 34px; line-height: 28px; border-radius : 0px; padding: 0 12px 2px; border-color: transparent; -webkit-box-shadow: none; box-shadow: none; -ms-box-shadow: none; -moz-box-shadow: none; -o-shadow: none; }'; echo ".login.wp-core-ui input[type=checkbox]{ box-shadow: none; -ms-box-shadow: none; -moz-box-shadow: none; -o-shadow: none; border-color: " . $ultraadmin['separator-color'] . " }"; if (isset($ultraadmin['login-logo']['url']) && $ultraadmin['login-logo']['url'] != "") { $logo_url = $ultraadmin['login-logo']['url']; } else { $logo_url = $ultraadmin['logo']['url']; } echo '.login h1 a { background-image: url("' . $logo_url . '");' . 'background-size: contain;min-height: 88px;width:auto;}'; */ }
echo $ultrastr . "{" . $ultra_fonts['menu_font_css'] . "}"; $ultrastr = " .wp-core-ui .button, .wp-core-ui .button-secondary," . ".wp-core-ui .button-primary," . ".upload-plugin .install-help, .upload-theme .install-help," . ".wordfenceWrap input[type='button'], .wordfenceWrap input[type='submit']"; echo $ultrastr . "{" . $ultra_fonts['button_font_css'] . "}"; /*--------------------------------------------- Layout & Typography Section ---------------------------------------------*/ echo " \n/* -- Page BG -- */\n"; echo ultra_css_background("html, #ws_menu_editor .ws_editbox", "page-bg", "1.0") . "\n"; echo " \n/* -- Heading -- */\n"; $ultrastr = " h1,h2,h3,h4,h5,h6, .wrap h2 , .welcome-panel .about-description"; echo ultra_css_color($ultrastr, "heading-color", "1.0") . "\n"; echo " \n/* -- body text -- */\n"; $ultrastr = " body, p," . "#dashboard_right_now li a:before, #dashboard_right_now li span:before, .welcome-panel .welcome-icon:before," . "#misc-publishing-actions label[for=post_status]:before, #post-body #visibility:before, #post-body .misc-pub-revisions:before, .curtime #timestamp:before, span.wp-media-buttons-icon:before," . ".misc-pub-section, input[type=radio]:checked+label:before, .view-switch>a:before," . ".no-plugin-results , .no-plugin-results a," . ".upload-plugin .install-help, .upload-theme .install-help," . ".form-wrap p, p.description," . "#screen-meta-links a, .contextual-help-tabs .active a"; echo ultra_css_color($ultrastr, "body-text-color", "1.0") . "\n"; echo " \n/* -- link color -- */\n"; echo ultra_link_color("a, .no-plugin-results a", "link-color") . "\n"; /*--------------------------------------------- Logo ---------------------------------------------*/ //echo ultra_logo(); /*--------------------------------------------- Primary Color - Pick theme ---------------------------------------------*/ echo " \n/* -- primary -- */\n"; $primary_color_str = ".nav-tab, .nav-tab-active, .nav-tab-active:hover , .nav-tab:hover, input[type=checkbox]:checked:before," . "a.post-format-icon:hover:before, a.post-state-format:hover:before," . ".view-switch a.current:before," . ".theme-browser .theme.add-new-theme:focus span:after, .theme-browser .theme.add-new-theme:hover span:after," . ".theme-browser .theme.add-new-theme span:after," . ".nav-tab-active, .nav-tab-active:hover," . ".filter-links .current," . ".filter-links li>a:focus, .filter-links li>a:hover, .show-filters .filter-links a.current:focus, .show-filters .filter-links a.current:hover," . ".upload-plugin .wp-upload-form .button," . ".upload-plugin .wp-upload-form .button:disabled"; echo ultra_css_color($primary_color_str, "primary-color", "1.0") . "\n"; $primary_bgcolor_str = ".highlight, .highlight a, input[type=radio]:checked:before," . "#edit-slug-box .edit-slug.button, #edit-slug-box #view-post-btn .button," . ".post-com-count:hover:after, .post-com-count:hover span," . ".tablenav .tablenav-pages a:focus, .tablenav .tablenav-pages a:hover," . ".media-item .bar," . ".theme-browser .theme .more-details," . ".theme-browser .theme.add-new-theme:focus:after, .theme-browser .theme.add-new-theme:hover:after," . ".widgets-chooser li.widgets-chooser-selected," . ".plugin-card .plugin-card-bottom," . ".pace .pace-progress, #ws_menu_editor a.ws_button:hover," . "#ws_menu_editor .ws_main_container .ws_container"; echo ultra_css_bgcolor($primary_bgcolor_str, "primary-color", "1.0") . "\n"; $primary_border_str = "input[type=checkbox]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime-local]:focus, input[type=datetime]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=password]:focus, input[type=radio]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=text]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus," . "input[type=checkbox]:hover, input[type=color]:hover, input[type=date]:hover, input[type=datetime-local]:hover, input[type=datetime]:hover, input[type=email]:hover, input[type=month]:hover, input[type=number]:hover, input[type=password]:hover, input[type=radio]:hover, input[type=search]:hover, input[type=tel]:hover, input[type=text]:hover, input[type=time]:hover, input[type=url]:hover, input[type=week]:hover, select:hover, textarea:hover," . "#titlediv #title:focus, #titlediv #title:hover," . ".attachment-preview .thumbnail:hover," . ".media-frame.mode-grid .attachment.details:focus .attachment-preview," . ".media-frame.mode-grid .attachment:focus .attachment-preview," . ".media-frame.mode-grid .selected.attachment:focus .attachment-preview," . ".drag-drop.drag-over #drag-drop-area," . ".theme-browser .theme:focus," . "#available-widgets .widget-top:hover, #widgets-left .widget-in-question .widget-top, #widgets-left .widget-top:hover, .widgets-chooser ul, div#widgets-right .widget-top:hover," . ".widget-inside, .widget.open .widget-top, div#widgets-right .widgets-holder-wrap.widget-hover," . ".filter-links .current," . ".plugin-card:hover," . ".contextual-help-tabs .active"; echo ultra_css_border_color($primary_border_str, "primary-color", "1.0", "all") . "\n"; echo ".has-dfw .quicktags-toolbar{border-color:" . $ultraadmin['primary-color'] . " !important;}";