Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

_ added the div framework

_ added the ids for the layout table with the 3 cells
  • Loading branch information...
commit 8c336db1825b3d6e07d1ad6946f046939ab2070a 1 parent 35a6dcc
urs_hunkler authored
Showing with 17 additions and 11 deletions.
  1. +17 −11 index.php
View
28 index.php
@@ -62,6 +62,8 @@
'<meta name="description" content="'. s(strip_tags($site->summary)) .'" />',
true, '', $loginstring . '<br />' . $langmenu);
+ echo '<div id="entry-page" class="entry">'; // entry wrapper start
+
$editing = $PAGE->user_is_editing();
$pageblocks = blocks_get_by_page($PAGE);
@@ -70,7 +72,7 @@
if (!empty($blockaction) && confirm_sesskey()) {
if (!empty($blockid)) {
blocks_execute_action($PAGE, $pageblocks, strtolower($blockaction), intval($blockid));
-
+
}
else if (!empty($instanceid)) {
$instance = blocks_find_instance($instanceid, $pageblocks);
@@ -94,23 +96,23 @@
?>
-<table width="100%" border="0" cellspacing="5" cellpadding="5">
+<table width="100%" border="0" cellspacing="5" cellpadding="5" id="layout-table">
<tr>
<?PHP
if(blocks_have_content($pageblocks[BLOCK_POS_LEFT]) || $editing) {
- echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;">';
+ echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;" id="left-column">';
blocks_print_group($PAGE, $pageblocks[BLOCK_POS_LEFT]);
echo '</td>';
}
- echo '<td style="vertical-align: top;">';
-
-
+ echo '<td style="vertical-align: top;" id="middle-column">';
+
+
/// Print Section
if ($site->numsections > 0) {
print_simple_box_start('center', '100%', $THEME->cellcontent, 5, 'sitetopic');
-
+
/// If currently moving a file then show the current clipboard
if (ismoving($site->id)) {
$stractivityclipboard = strip_tags(get_string('activityclipboard', '', addslashes($USER->activitycopyname)));
@@ -169,12 +171,12 @@
} else {
$headertext = $newsforum->name;
}
-
+
if ($site->newsitems) { //print forums only when needed
print_heading_block($headertext);
print_spacer(8,1);
forum_print_latest_discussions($newsforum->id, $site->newsitems);
- }
+ }
break;
case FRONTPAGECOURSELIST:
@@ -210,7 +212,7 @@
// The right column
if(blocks_have_content($pageblocks[BLOCK_POS_RIGHT]) || $editing || isadmin()) {
- echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">';
+ echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;" id="right-column">';
if (isadmin()) {
echo '<div align="center">'.update_course_icon($site->id).'</div>';
echo '<br />';
@@ -226,4 +228,8 @@
</tr>
</table>
-<?php print_footer('home'); // Please do not modify this line ?>
+<?php
+ echo '</div>'; // entry wrapper end
+
+ print_footer('home'); // Please do not modify this line
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.