b6849213 by Chris Boden

Organized Branding file

1 parent 4bf8d834
<?php
add_action('admin_print_styles', 'load_styles');
class Branding {
public static function make() {
add_actions('Branding_Actions');
}
}
function load_styles() {
class Branding_Actions {
public static function admin_print_styles() {
_enqueue_style('branding-style', plugins_url('css/tenzing.css', __FILE__));
}
}
add_action('admin_head','custom_header',11);
function custom_header() {
global $plugin_url;
public static function admin_head() {
global $current_user;
get_currentuserinfo();
include('views/header.php');
}
}
add_action('admin_footer', 'custom_footer');
function custom_footer() {
public static function admin_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;
public static function login_head() {
echo '<link rel="stylesheet" type="text/css" href="' . plugins_url('css/tz_login.css', __FILE__) . '" />';
}
}
#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>
";
}
Branding::make();
?>
\ No newline at end of file
......
#login {
background: #3b0d32 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; }
\ No newline at end of file
<div id="TzBrandingHeader">
<div id="TzBrandingHeader_UtilityMenu">
Tenzing Content Management System v1.0<br />
Tenzing CMS built on WordPress<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);
echo($current_user->user_firstname);
} else {
get_currentuserinfo(); echo($current_user->user_login);
echo($current_user->user_login);
}
?></a> | <a href="<?php echo wp_logout_url(); ?>">Log Out</a>
</div>
......