Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1a53179d
authored
2010-07-02 13:55:42 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
had to use jQuery to move admin header into the body tag
1 parent
49933487
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
17 deletions
com/Branding/Branding.php
com/Branding/views/header.php
com/Branding/Branding.php
View file @
1a53179
...
...
@@ -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'
);
}
...
...
com/Branding/views/header.php
View file @
1a53179
<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
...
...
Please
register
or
sign in
to post a comment