| @@ 217-220 (lines=4) @@ | ||
| 214 | echo '</td>'; |
|
| 215 | echo '<td>'; |
|
| 216 | echo '<input name="filename', $i, '" type="text" size="40">'; |
|
| 217 | if ($i == 1) { |
|
| 218 | echo '<p class="small text-muted">', I18N::translate('Do not change to keep original filename.'), '</p>'; |
|
| 219 | echo '<p class="small text-muted">', I18N::translate('The media file you are uploading can be, and probably should be, named differently on the server than it is on your local computer. This is so because often the local filename has meaning to you but is much less meaningful to others visiting this website. Consider also the possibility that you and someone else both try to upload different files called “granny.jpg“.<br><br>In this field, you specify the new name of the file you are uploading. The name you enter here will also be used to name the thumbnail, which can be uploaded separately or generated automatically. You do not need to enter the filename extension (jpg, gif, pdf, doc, etc.)<br><br>Leave this field blank to keep the original name of the file you have uploaded from your local computer.'), '</p>'; |
|
| 220 | } |
|
| 221 | echo '</td></tr>'; |
|
| 222 | } else { |
|
| 223 | echo '<tr style="display:none;"><td><input type="hidden" name="filename', $i, '" value=""></td></tr>'; |
|
| @@ 591-594 (lines=4) @@ | ||
| 588 | foreach ($translated_addfacts as $fact => $fact_name) { |
|
| 589 | echo '<option value="', $fact, '">', $fact_name, '</option>'; |
|
| 590 | } |
|
| 591 | if ($type == 'INDI' || $type == 'FAM') { |
|
| 592 | echo '<option value="FACT">', I18N::translate('Custom fact'), '</option>'; |
|
| 593 | echo '<option value="EVEN">', I18N::translate('Custom event'), '</option>'; |
|
| 594 | } |
|
| 595 | echo '</select>'; |
|
| 596 | echo '<input type="submit" value="', /* I18N: A button label. */ I18N::translate('add'), '">'; |
|
| 597 | echo '</form>'; |
|
| @@ 419-424 (lines=6) @@ | ||
| 416 | echo '<tr><td class="topbottombar" colspan="2">'; |
|
| 417 | echo $controller->getPageTitle(), FunctionsPrint::helpLink('OBJE'); |
|
| 418 | echo '</td></tr>'; |
|
| 419 | if (!$linktoid && $action == 'create') { |
|
| 420 | echo '<tr><td class="descriptionbox wrap width25">'; |
|
| 421 | echo I18N::translate('Enter an individual, family, or source ID'); |
|
| 422 | echo '</td><td class="optionbox wrap"><input type="text" data-autocomplete-type="IFS" name="linktoid" id="linktoid" size="6" value="">'; |
|
| 423 | echo '<p class="small text-muted">', I18N::translate('Enter or search for the ID of the individual, family, or source to which this media object should be linked.'), '</p></td></tr>'; |
|
| 424 | } |
|
| 425 | ||
| 426 | if ($media) { |
|
| 427 | $gedrec = $media->getGedcom(); |
|