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
b6849213
authored
2010-04-12 15:06:04 +0000
by
Chris Boden
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Organized Branding file
1 parent
4bf8d834
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
96 deletions
com/Branding/Branding.php
com/Branding/css/tz_login.css
com/Branding/views/header.php
com/Branding/Branding.php
View file @
b684921
<?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;
class
Branding
{
public
static
function
make
()
{
add_actions
(
'Branding_Actions'
);
}
}
class
Branding_Actions
{
public
static
function
admin_print_styles
()
{
_enqueue_style
(
'branding-style'
,
plugins_url
(
'css/tenzing.css'
,
__FILE__
));
}
#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
admin_head
()
{
global
$current_user
;
get_currentuserinfo
();
#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;
}
include
(
'views/header.php'
);
}
label {
color: #f7bd55;
font-size:11px;
}
public
static
function
admin_footer
()
{
include
(
'views/footer.php'
);
}
#nav {
text-shadow:none;
text-shadow:0px;
margin:0;
padding:16px;
padding-top:0px;
public
static
function
login_head
()
{
echo
'<link rel="stylesheet" type="text/css" href="'
.
plugins_url
(
'css/tz_login.css'
,
__FILE__
)
.
'" />'
;
}
}
html
{
background-color:#3b0d32;
}
body.login {
border-top-color:#3b0d32;
}
p#backtoblog { display:block; }
</style>
"
;
}
Branding
::
make
();
?>
\ No newline at end of file
...
...
com/Branding/css/tz_login.css
0 → 100644
View file @
b684921
#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
com/Branding/views/header.php
View file @
b684921
<div
id=
"TzBrandingHeader"
>
<div
id=
"TzBrandingHeader_UtilityMenu"
>
Tenzing C
ontent Management System v1.0
<br
/>
Tenzing C
MS 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>
...
...
Please
register
or
sign in
to post a comment