summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-01-26 21:36:42 +0000
committerGreg Roach <fisharebest@gmail.com>2014-01-26 21:36:42 +0000
commitaf3bb3d13e62bee19b9c94fbacbdfa6a91720874 (patch)
tree854ddd413de3d3aa079c31b185ee37150ff3fb1b
parent371873ac3e91ba86f67366ff8ca077a5a5aab785 (diff)
downloadwebtrees-af3bb3d13e62bee19b9c94fbacbdfa6a91720874.tar.gz
webtrees-af3bb3d13e62bee19b9c94fbacbdfa6a91720874.tar.bz2
webtrees-af3bb3d13e62bee19b9c94fbacbdfa6a91720874.zip
Add class to allow themes to style notes
-rw-r--r--includes/functions/functions_print.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index 0a5cbe26e0..c902b5265e 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -424,11 +424,12 @@ function print_note_record($text, $nlevel, $nrec, $textOnly=false) {
} else {
// A multi-line note, with an expand/collapse option
$element_id = uniqid('n-');
+ // NOTE: class "note-details" is (currently) used only by some third-party themes
return
'<div class="fact_NOTE"><span class="label">' .
'<a href="#" onclick="expand_layer(\'' . $element_id . '\'); return false;"><i id="' . $element_id . '_img" class="icon-plus"></i></a> ' . WT_Gedcom_Tag::getLabel($label) . ': ' .
'</div>' .
- '<div id="' . $element_id . '" style="display:none">' . $html . '</div>';
+ '<div class="note-details" id="' . $element_id . '" style="display:none">' . $html . '</div>';
}
}