Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #11995 - Merge patch for adding id's and classes to layout elements
with some minor changes. Added a content wrapper also.

Contributed-by: Brandon Jackson <brandonscottjackson@gmail.com
Signed-off-by: Daryn Warriner <daryn@iivip.com>
  • Loading branch information
Daryn Warriner committed Aug 13, 2010
1 parent 5409ebc commit 0c379c9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions core/html_api.php
Expand Up @@ -230,7 +230,7 @@ function html_page_top2() {
}
}
print_menu();

echo '<div id="content">', "\n";
event_signal( 'EVENT_LAYOUT_CONTENT_BEGIN' );
}

Expand Down Expand Up @@ -273,7 +273,7 @@ function html_page_bottom1( $p_file = null ) {
}

event_signal( 'EVENT_LAYOUT_CONTENT_END' );

echo '</div>', "\n";
if( config_get( 'show_footer_menu' ) ) {
echo '<br />';
print_menu();
Expand Down Expand Up @@ -452,6 +452,7 @@ function html_head_end() {
*/
function html_body_begin() {
echo '<body>', "\n";
echo '<div id="mantis">', "\n";

event_signal( 'EVENT_LAYOUT_BODY_BEGIN' );
}
Expand Down Expand Up @@ -496,11 +497,11 @@ function html_top_banner() {
$t_align = 'left';
}

echo '<div align="', $t_align, '">';
echo '<div id="banner" align="', $t_align, '">';
if( $t_show_url ) {
echo '<a href="', config_get( 'logo_url' ), '">';
echo '<a id="logo-link" href="', config_get( 'logo_url' ), '">';
}
echo '<img border="0" alt="Mantis Bug Tracker" src="' . helper_mantis_url( config_get( 'logo_image' ) ) . '" />';
echo '<img border="0" id="logo-image" alt="Mantis Bug Tracker" src="' . helper_mantis_url( config_get( 'logo_image' ) ) . '" />';
if( $t_show_url ) {
echo '</a>';
}
Expand All @@ -521,7 +522,7 @@ function html_login_info() {
$t_now = date( config_get( 'complete_date_format' ) );
$t_realname = current_user_get_field( 'realname' );

echo '<table class="hide">';
echo '<table class="hide" id="login-info">';
echo '<tr>';
echo '<td class="login-info-left">';
if( current_user_is_anonymous() ) {
Expand Down Expand Up @@ -722,6 +723,7 @@ function html_footer( $p_file = null ) {
}

echo "</div>\n";

}

/**
Expand All @@ -731,6 +733,8 @@ function html_footer( $p_file = null ) {
function html_body_end() {
event_signal( 'EVENT_LAYOUT_BODY_END' );

echo '</div>', "\n";

echo '</body>', "\n";
}

Expand Down Expand Up @@ -772,7 +776,7 @@ function print_menu() {
$t_protected = current_user_get_field( 'protected' );
$t_current_project = helper_get_current_project();

echo '<table class="width100" cellspacing="0">';
echo '<table class="main-menu-container width100" cellspacing="0">';
echo '<tr>';
echo '<td class="menu">';
$t_menu_options = array();
Expand Down

0 comments on commit 0c379c9

Please sign in to comment.