diff options
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php index b4cf27d61..e256291ee 100644 --- a/inc/html.php +++ b/inc/html.php @@ -483,8 +483,10 @@ function html_revisions($first=0, $media_id = false){ $form->addElement($id); $form->addElement(form_makeCloseTag('a')); + if ($media_id) $form->addElement(form_makeOpenTag('div')); + $form->addElement(form_makeOpenTag('span', array('class' => 'sum'))); - $form->addElement(' – '); + if (!$media_id) $form->addElement(' – '); if (!$media_id) $form->addElement(htmlspecialchars($INFO['sum'])); $form->addElement(form_makeCloseTag('span')); @@ -502,6 +504,9 @@ function html_revisions($first=0, $media_id = false){ $form->addElement(form_makeCloseTag('span')); $form->addElement('('.$lang['current'].')'); + + if ($media_id) $form->addElement(form_makeCloseTag('div')); + $form->addElement(form_makeCloseTag('div')); $form->addElement(form_makeCloseTag('li')); } @@ -555,8 +560,10 @@ function html_revisions($first=0, $media_id = false){ $form->addElement($id); } + if ($media_id) $form->addElement(form_makeOpenTag('div')); + $form->addElement(form_makeOpenTag('span', array('class' => 'sum'))); - $form->addElement(' – '); + if (!$media_id) $form->addElement(' – '); $form->addElement(htmlspecialchars($info['sum'])); $form->addElement(form_makeCloseTag('span')); @@ -571,6 +578,8 @@ function html_revisions($first=0, $media_id = false){ } $form->addElement(form_makeCloseTag('span')); + if ($media_id) $form->addElement(form_makeCloseTag('div')); + $form->addElement(form_makeCloseTag('div')); $form->addElement(form_makeCloseTag('li')); } |