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
32d48127
authored
2013-10-11 10:19:59 -0400
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Auto-fix line endings in a few files
1 parent
a2c6c1cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
76 deletions
com/Branding/Branding.php
com/Notifications/views/form.php
com/Branding/Branding.php
View file @
32d4812
<?php
namespace
Tz\WordPress\Tools\Branding
;
use
Tz\WordPress\Tools
;
require_once
(
'wp-admin-menu-classes.php'
);
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-admin-uploadify'
,
Tools\url
(
'uploadify/jquery.uploadify.v2.1.4.js'
,
__FILE__
),
Array
(
'jquery'
,
'swfobject'
));
}
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
'© '
.
date
(
'Y'
)
.
' Tenzing Communications Inc.'
;
}
public
static
function
login_head
()
{
echo
'<link rel="stylesheet" type="text/css" href="'
.
Tools\url
(
'css/tz_login.css'
,
__FILE__
)
.
'" />'
;
}
public
static
function
admin_menu
()
{
rename_admin_menu_section
(
'Posts'
,
'Publications'
);
swap_admin_menu_sections
(
'CBV Options'
,
'Publications'
);
}
}
//Tools\add_actions(__NAMESPACE__ . '\Actions');
<?php
namespace
Tz\WordPress\Tools\Branding
;
use
Tz\WordPress\Tools
;
require_once
(
'wp-admin-menu-classes.php'
);
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-admin-uploadify'
,
Tools\url
(
'uploadify/jquery.uploadify.v2.1.4.js'
,
__FILE__
),
Array
(
'jquery'
,
'swfobject'
));
}
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
'© '
.
date
(
'Y'
)
.
' Tenzing Communications Inc.'
;
}
public
static
function
login_head
()
{
echo
'<link rel="stylesheet" type="text/css" href="'
.
Tools\url
(
'css/tz_login.css'
,
__FILE__
)
.
'" />'
;
}
public
static
function
admin_menu
()
{
rename_admin_menu_section
(
'Posts'
,
'Publications'
);
swap_admin_menu_sections
(
'CBV Options'
,
'Publications'
);
}
}
//Tools\add_actions(__NAMESPACE__ . '\Actions');
?>
\ No newline at end of file
...
...
com/Notifications/views/form.php
View file @
32d4812
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment