Skip to content

Commit

Permalink
added/changed custom corners lib and calls to add the necessary divs
Browse files Browse the repository at this point in the history
  • Loading branch information
urs_hunkler committed May 9, 2007
1 parent c07a4e0 commit eb1ed65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
require_once($CFG->libdir.'/blocklib.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once('pagelib.php');

if (!empty($THEME->customcorners)) {
require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
}

require_login();

Expand Down Expand Up @@ -46,11 +50,14 @@

if(blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) {
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';
}

echo '<td valign="top" id="middle-column">';
if (!empty($THEME->customcorners)) print_custom_corners_start();

/// The main overview in the middle of the page

Expand Down Expand Up @@ -82,13 +89,16 @@
echo '<br />...';
}

if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';

$blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210);

if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) {
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="right-column">';
if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';
}

Expand Down

0 comments on commit eb1ed65

Please sign in to comment.