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 { ...@@ -7,14 +7,14 @@ class Actions {
7 public static function admin_print_styles() { 7 public static function admin_print_styles() {
8 _enqueue_style('branding-style', Tools\url('css/tenzing.css', __FILE__)); 8 _enqueue_style('branding-style', Tools\url('css/tenzing.css', __FILE__));
9 } 9 }
10 10
11 public static function admin_head() { 11 public static function admin_head() {
12 global $current_user; 12 global $current_user;
13 get_currentuserinfo(); 13 get_currentuserinfo();
14 14
15 include('views/header.php'); 15 include('views/header.php');
16 } 16 }
17 17
18 public static function admin_footer() { 18 public static function admin_footer() {
19 include('views/footer.php'); 19 include('views/footer.php');
20 } 20 }
......
1 <div id="TzBrandingHeader">
2 <div id="TzBrandingHeader_UtilityMenu">
3 Tenzing CMS built on WordPress<br />
4 Howdy,
5 <a href="<?php echo get_settings('siteurl');?>/wp-admin/profile.php"><?php
6 if (isset($current_user->user_firstname)){
7 echo($current_user->user_firstname);
8 } else {
9 echo($current_user->user_login);
10 }
11 ?></a>
12 | <a href="<?php echo get_settings('siteurl');?>">Home</a>
13 | <a href="<?php echo _logout_url(); ?>">Log Out</a>
14 </div>
15 </div>
...\ No newline at end of file ...\ No newline at end of file
1 <script type="text/javascript">
2 jQuery(document).ready(function() {
3 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>');
4 });
5 </script>
...\ No newline at end of file ...\ No newline at end of file
......