Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed #2 when set to right of image, captions are displayed above com…
…ments.
  • Loading branch information
John committed Dec 29, 2012
1 parent 7c2927a commit 8f11b7b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions view.php
Expand Up @@ -184,8 +184,6 @@
}
if ($slideshow->filename == 1){
echo '<p>'.$captionstring.'<p>';
} else if ($slideshow->filename == 3){
echo '<table cellpadding="5"><tr><td valign="top">';
}

// display main picture, with link to next page and plain text for alt and title tags
Expand All @@ -210,8 +208,6 @@
if ($slideshow->filename == 2){
$margin_top = $CFG->slideshow_maxheight + 20;
echo '<p style="margin: ' . $margin_top . 'px 0 0 0;">'.$captionstring.'</p>';
} else if ($slideshow->filename == 3){
echo '</td><td valign="top"><p>'.$captionstring.'</td></tr></table>';
}

if ($slideshow->layout == 2){
Expand Down Expand Up @@ -268,6 +264,9 @@

// Comments column.
echo '<div style="float: left; width: 350px; margin: 70px 0 0 20px;">';
if($slideshow->filename == 3) {
echo '<p>' . $captionstring . '</p>';
}
echo ' <h3>' . get_string('comments_header', 'slideshow') . '</h3>';
echo ' <ul style="list-style: none;">';

Expand Down

0 comments on commit 8f11b7b

Please sign in to comment.