Branding.php
2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
namespace Tz\WordPress\Tools\Branding;
use Tz\WordPress\Tools;
call_user_func(function() {
Tools\add_actions(__NAMESPACE__ . '\Actions');
});
class Actions {
public static function admin_print_styles() {
_enqueue_style('branding-style', Tools\url('css/tenzing.css', __FILE__));
}
public static function admin_print_scripts() {
_enqueue_script('jquery-alerts', Tools\url('jquery_alerts/jquery.alerts.js', __FILE__), Array('jquery'), '1.1');
_enqueue_script('colorbox', Tools\url('scripts/jquery.colorbox.js', __FILE__), Array('jquery'));
_enqueue_script('date', Tools\url('scripts/date.js', __FILE__));
_enqueue_script('jquery-datepicker', Tools\url('scripts/jquery.datePicker.js', __FILE__), Array('jquery','date'));
_enqueue_script('jquery-branding', Tools\url('scripts/branding.js', __FILE__), Array('jquery'));
}
public static function admin_head() {
?>
<style type="text/css" media="screen">
#toplevel_page_cbvreport .wp-menu-image a img { display:none; }
#toplevel_page_cbvreport .wp-menu-image {
background: url(<?php echo Tools\url('cpt-icons/table.png', __FILE__) ?>) no-repeat 6px -17px !important;
}
#toplevel_page_cbvreport:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image {
background-position:6px 7px!important;
}
#toplevel_page_cbv_options .wp-menu-image a img { display:none; }
#toplevel_page_cbv_options .wp-menu-image {
background: url(<?php echo Tools\url('cpt-icons/switch.png', __FILE__) ?>) no-repeat 6px -17px !important;
}
#toplevel_page_cbv_options:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image {
background-position:6px 7px!important;
}
</style>
<?php
/*
global $current_user;
get_currentuserinfo();
include('views/header.php');
*/
}
public static function admin_footer_text() {
echo '© 2010 Tenzing Communications Inc.';
}
public static function login_head() {
echo '<link rel="stylesheet" type="text/css" href="' . Tools\url('css/tz_login.css', __FILE__) . '" />';
}
}
//Tools\add_actions(__NAMESPACE__ . '\Actions');
?>