4bf8d834 by Kevin Burton

Added Branding component

1 parent 142c134e
1 <?php
2 add_action('admin_print_styles', 'load_styles');
3
4 function load_styles() {
5 _enqueue_style('branding-style', plugins_url('css/tenzing.css', __FILE__));
6
7 }
8
9 add_action('admin_head','custom_header',11);
10 function custom_header() {
11 global $plugin_url;
12 global $current_user;
13
14 include('views/header.php');
15 }
16
17 add_action('admin_footer', 'custom_footer');
18 function custom_footer() {
19 include('views/footer.php');
20 }
21
22 add_action('login_head', 'custom_login',11);
23 function custom_login() {
24 global $plugin_url;
25 echo "
26 <style type='text/css'>
27
28 #login {
29 background: #3b0d32 url('".$plugin_url."images/tenzing.gif') top right no-repeat;
30 padding-top:70px;
31 }
32
33 #login {}
34
35 .login #nav a {
36 color:#fff !important;
37 color:#fff;
38 }
39
40 #login h1 {
41 display:none;
42 }
43
44
45 #login form {
46 -moz-border-radius: 0px;
47 -khtml-border-radius: 0;
48 -webkit-border-radius: 0;
49 -moz-box-shadow:none;
50 -webkit-box-shadow: none;
51 -khtml-box-shadow: none;
52 box-shadow: none;
53 border-radius: 0px;
54 border: none;
55 background : transparent;
56 margin-left:0px;
57
58 }
59 form { margin-left:0px;}
60 form {
61 padding: 0px 16px 40px;
62 }
63
64 #login_error, .message {
65 -moz-border-radius: 0px;
66 border:none;
67 margin: 0 8px 16px 8px;
68 border:1px solid #f7bd55;
69 background-color:#b197ad;
70 }
71 .updated, .login .message {
72 background-color:#b197ad;
73 color:#fff;
74 }
75
76 label {
77 color: #f7bd55;
78 font-size:11px;
79 }
80
81 #nav {
82 text-shadow:none;
83 text-shadow:0px;
84 margin:0;
85 padding:16px;
86 padding-top:0px;
87 }
88
89 html {background-color:#3b0d32;}
90
91 body.login {
92 border-top-color:#3b0d32;
93
94 }
95
96 p#backtoblog { display:block; }
97
98 </style>
99
100
101 ";
102 }
103
104 ?>
...\ No newline at end of file ...\ No newline at end of file
1 /* hide the default */
2
3 /**
4 * TENZING COLOURS:
5 *
6 * ORANGES:
7 * light: #fce4c0
8 * medium: #fadfb3
9 * dark: #f7bd55
10 *
11 * PURPLES:
12 * light: #b197ad
13 * medium: #855d7e
14 * dark: #3b0d32
15 *
16 * ACCENTS:
17 * blue: #71aed7
18 * gray: #ebebeb
19 *
20 */
21
22
23 #wphead { display:none; }
24
25 #TzBrandingHeader {
26 background-color:#3B0D32;
27 color:#fff;
28 height:75px;
29 background: #3B0D32 url(../images/tenzing.gif) top right no-repeat;
30 }
31 #TzBrandingHeader_UtilityMenu {
32 font-size:11px;
33 padding: 18px 0 0 25px;
34 }
35 #TzBrandingHeader_UtilityMenu a { color: #fce4c0; text-decoration:none; }
36 #TzBrandingHeader_UtilityMenu a:hover { color: #f7bd55; text-decoration:underline;}
37
38 #footer { display:none;}
39 #TzBrandingFooter {
40 background-color:#3B0D32;
41 color:#f7bd55;
42 padding:5px 10px;
43 font-size:11px;
44
45 clear:both;
46 position:relative;
47 margin-top: -28px;
48 }
49 #TzBrandingFooter a { color:#fff; text-decoration:none; }
...\ No newline at end of file ...\ No newline at end of file
1 <div id="TzBrandingFooter">
2 &copy; 2010 <a href="http://www.gotenzing.com">Tenzing Communications Inc.</a>
3 </div>
...\ No newline at end of file ...\ No newline at end of file
1 <div id="TzBrandingHeader">
2 <div id="TzBrandingHeader_UtilityMenu">
3 Tenzing Content Management System v1.0<br />
4 Howdy,
5 <a href="<?php echo get_settings('siteurl');?>/wp-admin/profile.php"><?php
6 if (isset($current_user->user_firstname)){
7 get_currentuserinfo(); echo($current_user->user_firstname);
8 } else {
9 get_currentuserinfo(); echo($current_user->user_login);
10 }
11 ?></a> | <a href="<?php echo wp_logout_url(); ?>">Log Out</a>
12 </div>
13 </div>
...\ No newline at end of file ...\ No newline at end of file