1a53179d by Kevin Burton

had to use jQuery to move admin header into the body tag

1 parent 49933487
......@@ -7,14 +7,14 @@ class Actions {
public static function admin_print_styles() {
_enqueue_style('branding-style', Tools\url('css/tenzing.css', __FILE__));
}
public static function admin_head() {
global $current_user;
get_currentuserinfo();
include('views/header.php');
}
public static function admin_footer() {
include('views/footer.php');
}
......
<div id="TzBrandingHeader">
<div id="TzBrandingHeader_UtilityMenu">
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)){
echo($current_user->user_firstname);
} else {
echo($current_user->user_login);
}
?></a>
| <a href="<?php echo get_settings('siteurl');?>">Home</a>
| <a href="<?php echo _logout_url(); ?>">Log Out</a>
</div>
</div>
\ No newline at end of file
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('body').prepend('<div id="TzBrandingHeader"><div id="TzBrandingHeader_UtilityMenu">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)){ echo($current_user->user_firstname); } else { echo($current_user->user_login);} ?></a> | <a href="<?php echo get_settings('siteurl');?>">Home</a> | <a href="<?php echo _logout_url(); ?>">Log Out</a></div></div>');
});
</script>
\ No newline at end of file
......