function ub_url($extended)
{
    global $UB_url;
    return ub_get_url_valid_shema($UB_url) . $extended;
}
    function stylesheet()
    {
        global $current_site;
        $login_image_old = ub_get_option('ub_login_image_url', false);
        $login_image_id = ub_get_option('ub_login_image_id', false);
        $login_image_size = ub_get_option('ub_login_image_size', false);
        $login_image_width = ub_get_option('ub_login_image_width', false);
        $login_image_height = ub_get_option('ub_login_image_height', false);
        $login_image = ub_get_option('ub_login_image', false);
        if (isset($login_image_old) && trim($login_image_old) !== '') {
            $login_image = $login_image_old;
        } else {
            if ($login_image_id) {
                if (is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('ultimate-branding/ultimate-branding.php')) {
                    switch_to_blog(1);
                    $login_image_src = wp_get_attachment_image_src($login_image_id, $login_image_size, $icon = false);
                    restore_current_blog();
                } else {
                    $login_image_src = wp_get_attachment_image_src($login_image_id, $login_image_size, $icon = false);
                }
                $login_image = $login_image_src[0];
                $width = $login_image_src[1];
                $height = $login_image_src[2];
            } else {
                if ($login_image) {
                    if ($login_image_width && $login_image_height) {
                        $width = $login_image_width;
                        $height = $login_image_height;
                    } else {
                        list($width, $height) = getimagesize($this->get_absolute_url($login_image));
                    }
                } else {
                    $response = wp_remote_head(admin_url() . 'images/wordpress-logo.svg');
                    if (!is_wp_error($response) && !empty($response['response']['code']) && $response['response']['code'] == '200') {
                        //support for 3.8+
                        $login_image = admin_url() . 'images/wordpress-logo.svg';
                    } else {
                        $login_image = admin_url() . 'images/wordpress-logo.png';
                    }
                }
            }
        }
        $login_image = ub_get_url_valid_shema($login_image);
        ?>
        <style type="text/css">
            .login h1 a {
                background-image: url("<?php 
        echo $login_image;
        ?>
");
                background-size: <?php 
        echo $width;
        ?>
px <?php 
        echo $height;
        ?>
px;
                background-position: center top;
                background-repeat: no-repeat;
                color: rgb(153, 153, 153);
                height: <?php 
        echo $height;
        ?>
px;
                font-size: 20px;
                font-weight: 400;
                line-height: 1.3em;
                margin: 0px auto 25px;
                padding: 0px;
                text-decoration: none;
                width: <?php 
        echo $width;
        ?>
px;
                text-indent: -9999px;
                outline: 0px none;
                overflow: hidden;
                display: block;
            }
        </style>
        <?php 
    }