Auto-fix line endings in a few files
Showing
2 changed files
with
76 additions
and
76 deletions
| 1 | <?php | 1 | <?php |
| 2 | namespace Tz\WordPress\Tools\Branding; | 2 | namespace Tz\WordPress\Tools\Branding; |
| 3 | use Tz\WordPress\Tools; | 3 | use Tz\WordPress\Tools; |
| 4 | 4 | ||
| 5 | require_once('wp-admin-menu-classes.php'); | 5 | require_once('wp-admin-menu-classes.php'); |
| 6 | 6 | ||
| 7 | call_user_func(function() { | 7 | call_user_func(function() { |
| 8 | Tools\add_actions(__NAMESPACE__ . '\Actions'); | 8 | Tools\add_actions(__NAMESPACE__ . '\Actions'); |
| 9 | }); | 9 | }); |
| 10 | 10 | ||
| 11 | class Actions { | 11 | class Actions { |
| 12 | 12 | ||
| 13 | public static function admin_print_styles() { | 13 | public static function admin_print_styles() { |
| 14 | _enqueue_style('branding-style', Tools\url('css/tenzing.css', __FILE__)); | 14 | _enqueue_style('branding-style', Tools\url('css/tenzing.css', __FILE__)); |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | public static function admin_print_scripts() { | 17 | public static function admin_print_scripts() { |
| 18 | _enqueue_script('jquery-alerts', Tools\url('jquery_alerts/jquery.alerts.js', __FILE__), Array('jquery'), '1.1'); | 18 | _enqueue_script('jquery-alerts', Tools\url('jquery_alerts/jquery.alerts.js', __FILE__), Array('jquery'), '1.1'); |
| 19 | _enqueue_script('colorbox', Tools\url('scripts/jquery.colorbox.js', __FILE__), Array('jquery')); | 19 | _enqueue_script('colorbox', Tools\url('scripts/jquery.colorbox.js', __FILE__), Array('jquery')); |
| 20 | 20 | ||
| 21 | _enqueue_script('date', Tools\url('scripts/date.js', __FILE__)); | 21 | _enqueue_script('date', Tools\url('scripts/date.js', __FILE__)); |
| 22 | _enqueue_script('jquery-datepicker', Tools\url('scripts/jquery.datePicker.js', __FILE__), Array('jquery','date')); | 22 | _enqueue_script('jquery-datepicker', Tools\url('scripts/jquery.datePicker.js', __FILE__), Array('jquery','date')); |
| 23 | _enqueue_script('jquery-admin-uploadify', Tools\url('uploadify/jquery.uploadify.v2.1.4.js', __FILE__), Array('jquery','swfobject')); | 23 | _enqueue_script('jquery-admin-uploadify', Tools\url('uploadify/jquery.uploadify.v2.1.4.js', __FILE__), Array('jquery','swfobject')); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | public static function admin_head() { | 26 | public static function admin_head() { |
| 27 | ?> | 27 | ?> |
| 28 | <style type="text/css" media="screen"> | 28 | <style type="text/css" media="screen"> |
| 29 | #toplevel_page_cbvreport .wp-menu-image a img { display:none; } | 29 | #toplevel_page_cbvreport .wp-menu-image a img { display:none; } |
| 30 | #toplevel_page_cbvreport .wp-menu-image { | 30 | #toplevel_page_cbvreport .wp-menu-image { |
| 31 | background: url(<?php echo Tools\url('cpt-icons/table.png', __FILE__) ?>) no-repeat 6px -17px !important; | 31 | background: url(<?php echo Tools\url('cpt-icons/table.png', __FILE__) ?>) no-repeat 6px -17px !important; |
| 32 | } | 32 | } |
| 33 | #toplevel_page_cbvreport:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { | 33 | #toplevel_page_cbvreport:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { |
| 34 | background-position:6px 7px!important; | 34 | background-position:6px 7px!important; |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | #toplevel_page_cbv_options .wp-menu-image a img { display:none; } | 37 | #toplevel_page_cbv_options .wp-menu-image a img { display:none; } |
| 38 | #toplevel_page_cbv_options .wp-menu-image { | 38 | #toplevel_page_cbv_options .wp-menu-image { |
| 39 | background: url(<?php echo Tools\url('cpt-icons/switch.png', __FILE__) ?>) no-repeat 6px -17px !important; | 39 | background: url(<?php echo Tools\url('cpt-icons/switch.png', __FILE__) ?>) no-repeat 6px -17px !important; |
| 40 | } | 40 | } |
| 41 | #toplevel_page_cbv_options:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { | 41 | #toplevel_page_cbv_options:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { |
| 42 | background-position:6px 7px!important; | 42 | background-position:6px 7px!important; |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | 46 | ||
| 47 | </style> | 47 | </style> |
| 48 | <?php | 48 | <?php |
| 49 | 49 | ||
| 50 | 50 | ||
| 51 | /* | 51 | /* |
| 52 | global $current_user; | 52 | global $current_user; |
| 53 | get_currentuserinfo(); | 53 | get_currentuserinfo(); |
| 54 | 54 | ||
| 55 | include('views/header.php'); | 55 | include('views/header.php'); |
| 56 | */ | 56 | */ |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | public static function admin_footer_text() { | 59 | public static function admin_footer_text() { |
| 60 | echo '© ' . date('Y') . ' Tenzing Communications Inc.'; | 60 | echo '© ' . date('Y') . ' Tenzing Communications Inc.'; |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | public static function login_head() { | 63 | public static function login_head() { |
| 64 | echo '<link rel="stylesheet" type="text/css" href="' . Tools\url('css/tz_login.css', __FILE__) . '" />'; | 64 | echo '<link rel="stylesheet" type="text/css" href="' . Tools\url('css/tz_login.css', __FILE__) . '" />'; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | public static function admin_menu() { | 67 | public static function admin_menu() { |
| 68 | rename_admin_menu_section('Posts','Publications'); | 68 | rename_admin_menu_section('Posts','Publications'); |
| 69 | swap_admin_menu_sections('CBV Options','Publications'); | 69 | swap_admin_menu_sections('CBV Options','Publications'); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | //Tools\add_actions(__NAMESPACE__ . '\Actions'); | 75 | //Tools\add_actions(__NAMESPACE__ . '\Actions'); |
| 76 | 76 | ||
| 77 | ?> | 77 | ?> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment