Logo by Project
Posted: 13 Feb 2013, 00:30
hi all,
at the moment i am not that familar with git so please excuse me that i share my little hack by this old school way.
but anyway, maybe it´s helpful for somebody.
changing the html_api.php in this way
and adding several lines like this in your config_inc.php:
allow you to see individual logos by project (id)
regards,
micha
at the moment i am not that familar with git so please excuse me that i share my little hack by this old school way.
but anyway, maybe it´s helpful for somebody.
changing the html_api.php in this way
Code: Select all
function html_top_banner() {
$t_page = config_get( 'top_include_page' );
$t_logo_image = config_get( 'logo_image' );
if( auth_is_user_authenticated() ) {
$t_project_id = helper_get_current_project();
if ($t_project_id) {
if (config_is_set( 'logo_image'."_".$t_project_id )) {
$t_logo_image = config_get( 'logo_image'."_".$t_project_id);
} else {
$t_logo_image = config_get( 'logo_image' );
}
}
}Code: Select all
$g_logo_image_13 = 'images/project_logo_13.png';
$g_logo_image_15 = 'images/project_logo_15.png';
$g_logo_image_30 = 'images/project_logo_30.png';regards,
micha