Skip to content

Commit

Permalink
Blog: The display of post is different when editing. Blank area on le…
Browse files Browse the repository at this point in the history
…ft side of post #7988
  • Loading branch information
jason-platts authored and sammarshallou committed Sep 10, 2013
1 parent b3894fe commit c6ba428
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
13 changes: 2 additions & 11 deletions allposts.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@

$PAGEWILLCALLSKIPMAINDESTINATION = true; // OU accessibility feature.

// The left column ...
$hasleft = !empty($CFG->showblocksonmodpages);
// The right column, BEFORE the middle-column.
if (isloggedin() and !isguestuser()) {
list($oublog, $oubloginstance) = oublog_get_personal_blog($USER->id);
Expand All @@ -131,15 +129,8 @@
// Must be called after add_fake_blocks.
echo $OUTPUT->header();
// Start main column.
$classes='';
$classes.=$hasleft ? 'has-left-column ' : '';
$classes.='has-right-column ';
$classes=trim($classes);
if ($classes) {
print '<div id="middle-column" class="'.$classes.'">';
} else {
print '<div id="middle-column">';
}
print '<div id="middle-column" class="has-right-column">';

print skip_main_destination();

// Print blog posts.
Expand Down
6 changes: 0 additions & 6 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@
float:right;
}

#page-mod-oublog-view #middle-column.has-left-column,
#page-mod-oublog-viewpost #middle-column.has-left-column,
#page-mod-oublog-allposts #middle-column.has-left-column {
margin-left:13em;
}

.oublog-userpic {
float: left;
width: 70px;
Expand Down
14 changes: 2 additions & 12 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
$editing = $PAGE->user_is_editing();

// The left column ...
$hasleft = !empty($CFG->showblocksonmodpages) || $editing;
$hasleft = !empty($CFG->showblocksonmodpages);
// The right column, BEFORE the middle-column.
if (!$hideunusedblog) {
global $USER, $CFG;
Expand Down Expand Up @@ -307,17 +307,7 @@
echo $OUTPUT->header();

// Start main column.
$classes='';

$classes.=$hasleft ? 'has-left-column ' : '';
$classes.='has-right-column ';

$classes=trim($classes);
if ($classes) {
print '<div id="middle-column" class="'.$classes.'">';
} else {
print '<div id="middle-column">';
}
print '<div id="middle-column" class="has-right-column">';

echo $OUTPUT->skip_link_target();

Expand Down

0 comments on commit c6ba428

Please sign in to comment.