From: Victor B. <vb...@us...> - 2005-04-29 04:31:45
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16565/core Modified Files: html_api.php Log Message: Added Mantis Logo to the top of the page when no custom top page is supplied. Index: html_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v retrieving revision 1.163 retrieving revision 1.164 diff -u -d -r1.163 -r1.164 --- html_api.php 29 Apr 2005 03:36:34 -0000 1.163 +++ html_api.php 29 Apr 2005 04:31:22 -0000 1.164 @@ -270,6 +270,16 @@ if ( !is_blank( $t_page ) && file_exists( $t_page ) && !is_dir( $t_page ) ) { include( $t_page ); + } else { + if ( strstr( $_SERVER['PHP_SELF'], 'login_page' ) !== false ) { + $t_align = 'center'; + } else { + $t_align = 'left'; + } + + echo '<div align="', $t_align, '">'; + echo '<a href="http://www.mantisbt.org" title="Mantis Bugtracker"><img border="0" width="238" height="78" alt="Mantis Bugtracker" src="images/mantis_logo.gif" /></a>'; + echo '</div>'; } } @@ -403,7 +413,7 @@ } echo '</td><td><div align="right">'; - echo '<a href="http://www.mantisbt.org"><img src="images/mantis_logo_button.gif" width="88" height="35" alt="Power by Mantis Bugtracker" border="0" /></a>'; + echo '<a href="http://www.mantisbt.org" title="Powered by Mantis Bugtracker"><img src="images/mantis_logo_button.gif" width="88" height="35" alt="Power by Mantis Bugtracker" border="0" /></a>'; echo '</div></td></tr></table>'; } |