4bf8d834 by Kevin Burton

Added Branding component

1 parent 142c134e
<?php
add_action('admin_print_styles', 'load_styles');
function load_styles() {
_enqueue_style('branding-style', plugins_url('css/tenzing.css', __FILE__));
}
add_action('admin_head','custom_header',11);
function custom_header() {
global $plugin_url;
global $current_user;
include('views/header.php');
}
add_action('admin_footer', 'custom_footer');
function custom_footer() {
include('views/footer.php');
}
add_action('login_head', 'custom_login',11);
function custom_login() {
global $plugin_url;
echo "
<style type='text/css'>
#login {
background: #3b0d32 url('".$plugin_url."images/tenzing.gif') top right no-repeat;
padding-top:70px;
}
#login {}
.login #nav a {
color:#fff !important;
color:#fff;
}
#login h1 {
display:none;
}
#login form {
-moz-border-radius: 0px;
-khtml-border-radius: 0;
-webkit-border-radius: 0;
-moz-box-shadow:none;
-webkit-box-shadow: none;
-khtml-box-shadow: none;
box-shadow: none;
border-radius: 0px;
border: none;
background : transparent;
margin-left:0px;
}
form { margin-left:0px;}
form {
padding: 0px 16px 40px;
}
#login_error, .message {
-moz-border-radius: 0px;
border:none;
margin: 0 8px 16px 8px;
border:1px solid #f7bd55;
background-color:#b197ad;
}
.updated, .login .message {
background-color:#b197ad;
color:#fff;
}
label {
color: #f7bd55;
font-size:11px;
}
#nav {
text-shadow:none;
text-shadow:0px;
margin:0;
padding:16px;
padding-top:0px;
}
html {background-color:#3b0d32;}
body.login {
border-top-color:#3b0d32;
}
p#backtoblog { display:block; }
</style>
";
}
?>
\ No newline at end of file
/* hide the default */
/**
* TENZING COLOURS:
*
* ORANGES:
* light: #fce4c0
* medium: #fadfb3
* dark: #f7bd55
*
* PURPLES:
* light: #b197ad
* medium: #855d7e
* dark: #3b0d32
*
* ACCENTS:
* blue: #71aed7
* gray: #ebebeb
*
*/
#wphead { display:none; }
#TzBrandingHeader {
background-color:#3B0D32;
color:#fff;
height:75px;
background: #3B0D32 url(../images/tenzing.gif) top right no-repeat;
}
#TzBrandingHeader_UtilityMenu {
font-size:11px;
padding: 18px 0 0 25px;
}
#TzBrandingHeader_UtilityMenu a { color: #fce4c0; text-decoration:none; }
#TzBrandingHeader_UtilityMenu a:hover { color: #f7bd55; text-decoration:underline;}
#footer { display:none;}
#TzBrandingFooter {
background-color:#3B0D32;
color:#f7bd55;
padding:5px 10px;
font-size:11px;
clear:both;
position:relative;
margin-top: -28px;
}
#TzBrandingFooter a { color:#fff; text-decoration:none; }
\ No newline at end of file
<div id="TzBrandingFooter">
&copy; 2010 <a href="http://www.gotenzing.com">Tenzing Communications Inc.</a>
</div>
\ No newline at end of file
<div id="TzBrandingHeader">
<div id="TzBrandingHeader_UtilityMenu">
Tenzing Content Management System v1.0<br />
Howdy,
<a href="<?php echo get_settings('siteurl');?>/wp-admin/profile.php"><?php
if (isset($current_user->user_firstname)){
get_currentuserinfo(); echo($current_user->user_firstname);
} else {
get_currentuserinfo(); echo($current_user->user_login);
}
?></a> | <a href="<?php echo wp_logout_url(); ?>">Log Out</a>
</div>
</div>
\ No newline at end of file