summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-04-05 17:20:56 +0100
committerGreg Roach <fisharebest@gmail.com>2015-04-05 19:28:50 +0100
commit0f90941c2f916db54f88a8031341c6792a414d9c (patch)
tree65aacbb6b404f351b61fcff6762046b534e1e88e /includes
parent62b231169c9fd6ed366069273b41089722f14687 (diff)
downloadwebtrees-0f90941c2f916db54f88a8031341c6792a414d9c.tar.gz
webtrees-0f90941c2f916db54f88a8031341c6792a414d9c.tar.bz2
webtrees-0f90941c2f916db54f88a8031341c6792a414d9c.zip
Help text
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_edit.php23
1 files changed, 3 insertions, 20 deletions
diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php
index e54ae630ed..8e228c00b3 100644
--- a/includes/functions/functions_edit.php
+++ b/includes/functions/functions_edit.php
@@ -509,16 +509,6 @@ function add_simple_tag($tag, $upperlevel = '', $label = '', $extra = null, Indi
} else {
// Not all facts have help text.
switch ($fact) {
- case 'FORM':
- if ($upperlevel != 'OBJE') {
- echo help_link($fact);
- }
- break;
- case 'NOTE':
- if ($islink) {
- echo help_link('edit_add_SHARED_NOTE');
- }
- break;
case 'NAME':
if ($upperlevel != 'REPO') {
echo help_link($fact);
@@ -551,7 +541,6 @@ function add_simple_tag($tag, $upperlevel = '', $label = '', $extra = null, Indi
case 'TIME':
case 'WWW':
case '_HEB':
- case '_PRIM':
echo help_link($fact);
break;
}
@@ -619,13 +608,14 @@ function add_simple_tag($tag, $upperlevel = '', $label = '', $extra = null, Indi
if ($value === 'Y') {
echo ' selected';
}
- echo '>', I18N::translate('yes'), '</option>';
+ echo '>', /* I18N: option in list box “always use this image” */ I18N::translate('always'), '</option>';
echo '<option value="N" ';
if ($value === 'N') {
echo 'selected';
}
- echo '>', I18N::translate('no'), '</option>';
+ echo '>', /* I18N: option in list box “never use this image” */ I18N::translate('never'), '</option>';
echo '</select>';
+ echo '<p class="small text-muted">', I18N::translate('Use this image for charts and on the individual’s page.'), '</p>';
} else if ($fact === 'SEX') {
echo '<select id="', $element_id, '" name="', $element_name, '"><option value="M" ';
if ($value === 'M') {
@@ -940,7 +930,6 @@ function print_add_layer($tag, $level = 2) {
switch ($tag) {
case 'SOUR':
echo "<a href=\"#\" onclick=\"return expand_layer('newsource');\"><i id=\"newsource_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new source citation'), '</a>';
- echo help_link('edit_add_SOUR');
echo '<br>';
echo '<div id="newsource" style="display: none;">';
echo '<table class="facts_table">';
@@ -969,12 +958,10 @@ function print_add_layer($tag, $level = 2) {
//-- Add a new ASSOciate
if ($tag == 'ASSO') {
echo "<a href=\"#\" onclick=\"return expand_layer('newasso');\"><i id=\"newasso_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new associate'), '</a>';
- echo help_link('edit_add_ASSO');
echo '<br>';
echo '<div id="newasso" style="display: none;">';
} else {
echo "<a href=\"#\" onclick=\"return expand_layer('newasso2');\"><i id=\"newasso2_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new associate'), '</a>';
- echo help_link('edit_add_ASSO');
echo '<br>';
echo '<div id="newasso2" style="display: none;">';
}
@@ -993,7 +980,6 @@ function print_add_layer($tag, $level = 2) {
case 'NOTE':
//-- Retrieve existing note or add new note to fact
echo "<a href=\"#\" onclick=\"return expand_layer('newnote');\"><i id=\"newnote_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new note'), '</a>';
- echo help_link('edit_add_NOTE');
echo '<br>';
echo '<div id="newnote" style="display: none;">';
echo '<table class="facts_table">';
@@ -1004,7 +990,6 @@ function print_add_layer($tag, $level = 2) {
case 'SHARED_NOTE':
echo "<a href=\"#\" onclick=\"return expand_layer('newshared_note');\"><i id=\"newshared_note_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new shared note'), '</a>';
- echo help_link('edit_add_SHARED_NOTE');
echo '<br>';
echo '<div id="newshared_note" style="display: none;">';
echo '<table class="facts_table">';
@@ -1016,7 +1001,6 @@ function print_add_layer($tag, $level = 2) {
case 'OBJE':
if ($WT_TREE->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($WT_TREE)) {
echo "<a href=\"#\" onclick=\"return expand_layer('newobje');\"><i id=\"newobje_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new media object'), '</a>';
- echo help_link('OBJE');
echo '<br>';
echo '<div id="newobje" style="display: none;">';
echo '<table class="facts_table">';
@@ -1027,7 +1011,6 @@ function print_add_layer($tag, $level = 2) {
case 'RESN':
echo "<a href=\"#\" onclick=\"return expand_layer('newresn');\"><i id=\"newresn_img\" class=\"icon-plus\"></i> ", I18N::translate('Add a new restriction'), '</a>';
- echo help_link('RESN');
echo '<br>';
echo '<div id="newresn" style="display: none;">';
echo '<table class="facts_table">';