On 1.3 I used to be able to:
- Customise the footer (eg remove the "Contact administrator for assistance").
- Add custom logo at the top (g_logo_image doesn't seem to work anymore)
Moderators: Developer, Contributor
Code: Select all
function html_body_end()
Code: Select all
function html_body_begin()
Code: Select all
jQuery( document ).ready( function(){
# 1 -> get the project name from the dropdown list
var project_name = $( "#dropdown-toggle" ).text();
# 2 -> PHP function trim() to delete any blank before and after the project_name
var m_project_name = $.trim( project_name ) + "";
var logo_url_project = "/mantisbt/images/" + m_project_name.toLowerCase() + ".png";
# 3 -> make sure it's LowerCase, and rename your custom logo with the project name (i. e. : myproject.png in yourmantisroot/images)
$( "#mantis-logo" ).attr( 'src', logo_url_project );
$( "#mantis-logo" ).attr( 'alt', '' );
});
Code: Select all
function footer() {
echo '<script src="' . plugin_file( "logo_by_project.js" ) . '"></script>';
}