diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-07-19 18:36:15 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-07-19 18:36:15 +0300 |
commit | 67c8cda19c0bf26a746d5c5cf9c82ee7ae5f23ca (patch) | |
tree | 6757fb55109b591ea4d4cb5e39926f6c437f1d68 /inc/html.php | |
parent | 6316bc7147a7ef1e90e2040d46bd40d034a09f13 (diff) | |
download | rpg-67c8cda19c0bf26a746d5c5cf9c82ee7ae5f23ca.tar.gz rpg-67c8cda19c0bf26a746d5c5cf9c82ee7ae5f23ca.tar.bz2 |
mediamanager revisions form
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')); } |