diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2010-09-22 22:38:58 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2010-09-22 22:38:58 +0000 |
| commit | 5e8b9615fc0d612ab30bba3b57ab45d76ab63d76 (patch) | |
| tree | 081a3a4bc15b95706eaca046090d4fa494d0d261 /includes | |
| parent | 7d0ecee179d49d288f233a3303ec9f93a3b188dd (diff) | |
| download | webtrees-5e8b9615fc0d612ab30bba3b57ab45d76ab63d76.tar.gz webtrees-5e8b9615fc0d612ab30bba3b57ab45d76ab63d76.tar.bz2 webtrees-5e8b9615fc0d612ab30bba3b57ab45d76ab63d76.zip | |
Modifications to the "edit" icons as discussed on the forum
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_print_facts.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php index 16ebb26987..a5a59c860b 100644 --- a/includes/functions/functions_print_facts.php +++ b/includes/functions/functions_print_facts.php @@ -142,12 +142,12 @@ function print_fact(&$eventObj, $noedit=false) { if ($SHOW_FACT_ICONS) echo $eventObj->Icon(), ' '; if (!$noedit && WT_USER_CAN_EDIT && $styleadd!="change_old" && $linenum>0 && $eventObj->canEdit()) { - echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\">"; - echo "<span class=\"edit_link\">". translate_fact($factref, $label_person). "</span></a>"; - echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\">"; - echo "<span class=\"copy_link\"> </span></a>"; - echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\">"; - echo "<span class=\"delete_link\"> </span></a>"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\">". translate_fact($factref, $label_person). "</a>"; + echo "<div class=\"editfacts\">"; + echo "<a onclick=\"return edit_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Edit')."\"><div class=\"editlink\"> </div></a>"; + echo "<a onclick=\"return copy_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Copy')."\"><div class=\"copylink\"> </div></a>"; + echo "<a onclick=\"return delete_record('$pid', $linenum);\" href=\"javascript:;\" title=\"".i18n::translate('Delete')."\"><div class=\"deletelink\"> </div></a>"; + echo "</div>"; } else {echo translate_fact($factref, $label_person);} if ($fact=="_BIRT_CHIL" and isset($n_chil)) echo "<br />", i18n::translate('#%d', $n_chil++); if ($fact=="_BIRT_GCHI" and isset($n_gchi)) echo "<br />", i18n::translate('#%d', $n_gchi++); |
