. */ namespace Fisharebest\Webtrees\Module; use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\Fact; use Fisharebest\Webtrees\Functions\Functions; use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; use Fisharebest\Webtrees\GedcomTag; use Fisharebest\Webtrees\I18N; /** * Class NotesTabModule */ class NotesTabModule extends AbstractModule implements ModuleTabInterface { /** @var Fact[] A list facts for this note. */ private $facts; /** {@inheritdoc} */ public function getTitle() { return /* I18N: Name of a module */ I18N::translate('Notes'); } /** {@inheritdoc} */ public function getDescription() { return /* I18N: Description of the “Notes” module */ I18N::translate('A tab showing the notes attached to an individual.'); } /** {@inheritdoc} */ public function defaultTabOrder() { return 40; } /** {@inheritdoc} */ public function hasTabContent() { global $WT_TREE; return Auth::isEditor($WT_TREE) || $this->getFactsWithNotes(); } /** {@inheritdoc} */ public function isGrayedOut() { return !$this->getFactsWithNotes(); } /** {@inheritdoc} */ public function getTabContent() { global $controller; ob_start(); ?>
', I18N::translate('There are no notes for this individual.'), ' | |
= GedcomTag::getLabel('NOTE') ?> | = I18N::translate('Add a note') ?> |
---|---|
= GedcomTag::getLabel('SHARED_NOTE') ?> | = I18N::translate('Add a shared note') ?> |