/webtrees/resources/views/modules/statistics-chart/ |
H A D | custom.phtml | 23 …<form method="post" action="<?= e(route('module', ['module' => $module->name(), 'action' => 'Custo… 34 'name' => 'x-as', 'selected' => $module::X_AXIS_BIRTH_MONTH, 'options' => [ 35 … $module::X_AXIS_BIRTH_MONTH => I18N::translate('Month of birth'), 36 … $module::X_AXIS_DEATH_MONTH => I18N::translate('Month of death'), 37 …$module::X_AXIS_FIRST_CHILD_MONTH => I18N::translate('Month of birth of first child in a relat… 38 … $module::X_AXIS_AGE_AT_DEATH => I18N::translate('Average age at death'), 39 … $module::X_AXIS_AGE_AT_MARRIAGE => I18N::translate('Age in year of marriage'), 40 … $module::X_AXIS_AGE_AT_FIRST_MARRIAGE => I18N::translate('Age in year of first marriage'), 50 'name' => 'x-as', 'selected' => $module::X_AXIS_BIRTH_MONTH, 'options' => [ 51 … $module::X_AXIS_MARRIAGE_MONTH => I18N::translate('Month of marriage'), [all …]
|
/webtrees/resources/views/admin/ |
H A D | modules.phtml | 138 <?php foreach ($modules as $module) : ?> 141 …<?= $module instanceof ModuleCustomInterface ? $module->customTranslations(I18N::languageTag())[$m… 143 <td class="text-center" data-sort="<?= $module->isEnabled() ?>"> 144 …ponents/checkbox', ['label' => '', 'name' => 'status-' . $module->name(), 'checked' => $module->is… 147 …$module instanceof ModuleCustomInterface ? $module->customTranslations(I18N::languageTag())[$modul… 148 <?php if ($module instanceof ModuleCustomInterface) : ?> 149 <?= view('admin/custom-module-info', ['module' => $module]) ?> 151 <?php if ($module instanceof ModuleExternalUrlInterface) : ?> 152 <?= view('admin/external-module-info', ['module' => $module]) ?> 156 <?php if ($module instanceof ModuleConfigInterface) : ?> [all …]
|
H A D | components.phtml | 53 <?php foreach ($modules as $module) : ?> 56 <input type="hidden" name="order[]" value="<?= e($module->name()) ?>"> 57 <span title="<?= e(strip_tags($module->description())) ?>"> 58 …<?= $module instanceof ModuleCustomInterface ? $module->customTranslations(I18N::languageTag())[$m… 60 <?php if ($module instanceof ModuleConfigInterface) : ?> 61 <?php if ($module->isEnabled()) : ?> 62 … <a href="<?= e($module->getConfigLink()) ?>" title="<?= I18N::translate('Preferences') ?>"> 74 <?php if ($module instanceof ModuleCustomInterface) : ?> 75 <?= view('admin/custom-module-info', ['module' => $module]) ?> 77 <?php if ($module instanceof ModuleExternalUrlInterface) : ?> [all …]
|
H A D | control-panel.phtml | 220 <?php foreach ($custom_updates as $module) : ?> 225 …<?= $module->title() ?> — <?= e($module->customModuleVersion()) ?> — <?= e($module->customModuleLa… 226 <?php if ($module->customModuleSupportUrl() !== '') : ?> 228 …'For more information, see %s.', '<a href="' . e($module->customModuleSupportUrl()) . '">' . e($mo… 761 <?php foreach ($other_modules as $module) : ?> 763 <?php if ($module->isEnabled()) : ?> 765 <?php if ($module instanceof ModuleConfigInterface) : ?> 766 <a href="<?= e($module->getConfigLink()) ?>"> 767 <?= $module->title() ?> 771 <?= $module->title() ?> [all …]
|
H A D | custom-module-info.phtml | 15 <?php if ($module->customModuleVersion() !== '') : ?> 18 <?= $module->customModuleVersion() ?> 20 <?php if ($module->customModuleAuthorName() !== '') : ?> 23 <?= $module->customModuleAuthorName() ?> 25 <?php if ($module->customModuleSupportUrl() !== '') : ?> 28 <a href="<?= e($module->customModuleSupportUrl()) ?>"> 29 <?= e($module->customModuleSupportUrl()) ?>
|
/webtrees/resources/views/modules/compact-chart/ |
H A D | chart.phtml | 39 …<?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(1… 45 …<?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(1… 49 …<?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(2… 55 …<?= view('modules/compact-chart/arrow-up', ['module' => $module, 'individual' => $ancestors->get(2… 63 …<?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get… 69 …<?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->ge… 79 …<?= view('modules/compact-chart/arrow-left', ['module' => $module, 'individual' => $ancestors->get… 85 …<?= view('modules/compact-chart/arrow-right', ['module' => $module, 'individual' => $ancestors->ge… 93 …<?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get… 99 …<?= view('modules/compact-chart/arrow-down', ['module' => $module, 'individual' => $ancestors->get… [all …]
|
/webtrees/app/Services/ |
H A D | ModuleService.php | 543 return static fn (ModuleInterface $module): string => $module->title(); 560 …->filter(static fn (ModuleInterface $module): bool => $module->accessLevel($tree, $interface) >= A… 625 … ->map(static function (ModuleInterface $module) use ($module_info): ModuleInterface { 626 $info = $module_info->get($module->name()); 629 $module->setEnabled($info->status === 'enabled'); 631 … if ($module instanceof ModuleFooterInterface && $info->footer_order !== null) { 632 $module->setFooterOrder((int) $info->footer_order); 635 if ($module instanceof ModuleMenuInterface && $info->menu_order !== null) { 636 $module->setMenuOrder((int) $info->menu_order); 639 … if ($module instanceof ModuleSidebarInterface && $info->sidebar_order !== null) { [all …]
|
H A D | HomePageService.php | 70 $module = $this->module_service->findByName($block->module_name); 72 if ($module instanceof ModuleBlockInterface) { 73 return $module; 99 $module = $this->module_service->findByName($block->module_name); 101 if ($module instanceof ModuleBlockInterface) { 102 return $module; 125 …$block = $active_blocks->first(static fn (ModuleInterface $module): bool => $module->name() === $m… 199 $module = $this->module_service->findByInterface($class)->first(); 201 if ($module instanceof ModuleInterface) { 206 'module_name' => $module->name(), [all …]
|
/webtrees/tests/feature/ |
H A D | IndividualListTest.php | 61 $module = new IndividualListModule(); 73 $response = $module->handle($request); 80 $response = $module->handle($request); 87 $response = $module->handle($request); 95 $module = new IndividualListModule(); 99 $response = $module->handle($request); 104 $response = $module->handle($request); 110 $response = $module->handle($request); 117 $module = new IndividualListModule(); 125 $response = $module->handle($request); [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | AbstractModuleComponentAction.php | 67 foreach ($modules as $module) { 68 $enabled = Validator::parsedBody($request)->boolean('status-' . $module->name(), false); 70 if ($enabled !== $module->isEnabled()) { 72 ->where('module_name', '=', $module->name()) 76 … $message = I18N::translate('The module “%s” has been enabled.', $module->title()); 78 … $message = I18N::translate('The module “%s” has been disabled.', $module->title()); 101 foreach ($modules as $module) { 103 $key = 'access-' . $module->name() . '-' . $tree->id(); 106 if ($access_level !== $module->accessLevel($tree, $interface)) { 108 'module_name' => $module->name(), [all …]
|
H A D | DataFixUpdateAll.php | 73 $module = $this->module_service->findByName($data_fix); 74 assert($module instanceof ModuleDataFixInterface); 77 $rows = $module->recordsToFix($tree, $params); 87 return $this->createUpdateRanges($tree, $module, $rows, $params); 93 … => $record instanceof GedcomRecord && !$record->isPendingDeletion() && $module->doesRecordNeedUpd… 96 $module->updateRecord($record, $params); 104 * @param ModuleDataFixInterface $module 112 ModuleDataFixInterface $module, argument 120 … ->map(static function (Collection $chunk) use ($module, $params, $tree, $total): object { 129 'data_fix' => $module->name(),
|
H A D | DataFixData.php | 73 $module = $this->module_service->findByName($data_fix); 74 assert($module instanceof ModuleDataFixInterface); 77 $records = $module->recordsToFix($tree, $params); 79 $callback = function (object $row) use ($module, $params, $tree): array { 85 if ($module->doesRecordNeedUpdate($record, $params)) { 88 'data_fix' => $module->name(), 95 'data_fix' => $module->name(),
|
H A D | ModulesAllAction.php | 58 foreach ($modules as $module) { 59 … $new_status = Validator::parsedBody($request)->boolean('status-' . $module->name(), false); 60 $old_status = $module->isEnabled(); 64 ->where('module_name', '=', $module->name()) 68 … $message = I18N::translate('The module “%s” has been enabled.', $module->title()); 70 … $message = I18N::translate('The module “%s” has been disabled.', $module->title());
|
H A D | RedirectModulePhp.php | 62 … $module = $this->module_service->findByInterface(PedigreeMapModule::class)->first(); 64 if ($module instanceof PedigreeMapModule) { 66 … $url = $module->chartUrl($individual, ['generations' => $generations]); 74 … $module = $this->module_service->findByInterface(InteractiveTreeModule::class)->first(); 76 if ($module instanceof InteractiveTreeModule) { 77 $url = $module->chartUrl($individual, []);
|
/webtrees/app/Statistics/Repository/ |
H A D | FavoritesRepository.php | 57 $module = $this->module_service 61 if ($module instanceof FamilyTreeFavoritesModule) { 62 return $module->getBlock($this->tree, 0, ModuleBlockInterface::CONTEXT_EMBED); 73 $module = $this->module_service 77 if ($module instanceof UserFavoritesModule) { 78 return $module->getBlock($this->tree, 0, ModuleBlockInterface::CONTEXT_EMBED); 90 $module = $this->module_service 94 if ($module instanceof FamilyTreeFavoritesModule) { 95 $count = count($module->getFavorites($this->tree)); 107 $module = $this->module_service [all …]
|
/webtrees/app/Module/ |
H A D | ChartsBlockModule.php | 103 … $module = $this->module_service->findByInterface(PedigreeChartModule::class)->first(); 104 if ($module instanceof PedigreeChartModule) { 105 $title = $module->chartTitle($individual); 106 $chart_url = $module->chartUrl($individual, [ 122 … $module = $this->module_service->findByInterface(DescendancyChartModule::class)->first(); 124 if ($module instanceof DescendancyChartModule) { 125 $title = $module->chartTitle($individual); 126 $chart_url = $module->chartUrl($individual, [ 143 … $module = $this->module_service->findByInterface(HourglassChartModule::class)->first(); 145 if ($module instanceof HourglassChartModule) { [all …]
|
H A D | TopSurnamesModule.php | 129 $module = $this->module_service 131 … ->first(static fn (ModuleInterface $module): bool => $module instanceof IndividualListModule); 137 'module' => $module, 147 'module' => $module, 157 'module' => $module, 170 'module' => $module,
|
/webtrees/resources/views/layouts/ |
H A D | administration.phtml | 40 …erface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { 41 …return $module instanceof ModuleCustomInterface || $module instanceof CustomCssJsModule ? '' : $mo… 91 …erface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { 92 …return $module instanceof ModuleCustomInterface || $module instanceof CustomCssJsModule ? '' : $mo…
|
H A D | default.phtml | 65 …erface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { 66 return $module->headContent(); 140 …duleFooterInterface::class)->map(static function (ModuleFooterInterface $module) use ($request): s… 141 return $module->getFooter($request); 185 …erface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { 186 return $module->bodyContent();
|
/webtrees/modules_v4/ |
H A D | README.md | 8 A module is a folder containing a file called `module.php`. 12 To install a module, copy its folder to `/modules_v4`. 16 Note that module names (i.e. the folder names) must not contain 20 TIP: renaming a module from `<module>` to `<module.disable>` 26 To write a module, you need to understand the PHP programming language.
|
/webtrees/resources/views/lists/ |
H A D | surnames-column-list.phtml | 27 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['alpha' => '@'] + $para… 30 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn] + $… 33 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn] + $…
|
H A D | surnames-bullet-list.phtml | 24 … $url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['alpha' => '@']) : ''; 27 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn]) : … 30 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn]) : …
|
H A D | surnames-compact-list.phtml | 24 … $url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['alpha' => '@']) : ''; 27 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn]) : … 30 …$url = $module instanceof ModuleListInterface ? $module->listUrl($tree, ['surname' => $surn]) : …
|
/webtrees/app/Http/Middleware/ |
H A D | UseLanguage.php | 86 …->first(static fn (ModuleLanguageInterface $module): bool => $module->locale()->languageTag() === … 90 … ->map(static fn (ModuleLanguageInterface $module): LocaleInterface => $module->locale()); 96 …->first(static fn (ModuleLanguageInterface $module): bool => $module->locale()->languageTag() === …
|
/webtrees/tests/app/Module/ |
H A D | UpcomingAnniversariesModuleTest.php | 33 $module = new UpcomingAnniversariesModule($calendar_service); 35 self::assertInstanceOf(ModuleBlockInterface::class, $module); 36 self::assertTrue($module->loadAjax()); 37 self::assertTrue($module->isTreeBlock()); 38 self::assertTrue($module->isUserBlock());
|