/webtrees/app/Module/ |
H A D | FamilyTreeStatisticsModule.php | 82 * @param int $block_id 88 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 92 $show_last_update = $this->getBlockSetting($block_id, 'show_last_update', '1'); 93 $show_common_surnames = $this->getBlockSetting($block_id, 'show_common_surnames', '1'); 94 …$number_of_surnames = (int) $this->getBlockSetting($block_id, 'number_of_surnames', self::DEFAUL… 95 $stat_indi = $this->getBlockSetting($block_id, 'stat_indi', '1'); 96 $stat_fam = $this->getBlockSetting($block_id, 'stat_fam', '1'); 97 $stat_sour = $this->getBlockSetting($block_id, 'stat_sour', '1'); 98 $stat_media = $this->getBlockSetting($block_id, 'stat_media', '1'); 99 $stat_repo = $this->getBlockSetting($block_id, 'stat_repo', '1'); [all …]
|
H A D | SlideShowModule.php | 77 * @param int $block_id 83 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 86 $default_start = (bool) $this->getBlockSetting($block_id, 'start'); 87 $filter_links = $this->getBlockSetting($block_id, 'filter', self::LINK_ALL); 88 $controls = $this->getBlockSetting($block_id, 'controls', '1'); 92 … $this->getBlockSetting($block_id, 'filter_audio', '0') ? SourceMediaType::VALUE_AUDIO : null, 93 … $this->getBlockSetting($block_id, 'filter_book', '1') ? SourceMediaType::VALUE_BOOK : null, 94 … $this->getBlockSetting($block_id, 'filter_card', '1') ? SourceMediaType::VALUE_CARD : null, 95 …$this->getBlockSetting($block_id, 'filter_certificate', '1') ? SourceMediaType::VALUE_CERTIFICATE … 96 … $this->getBlockSetting($block_id, 'filter_coat', '1') ? SourceMediaType::VALUE_COAT : null, [all …]
|
H A D | StoriesModule.php | 123 foreach ($block_ids as $block_id) { 124 $block_id = (int) $block_id; 127 $languages = $this->getBlockSetting($block_id, 'languages'); 130 'block_id' => $block_id, 131 'title' => $this->getBlockSetting($block_id, 'title'), 132 'story_body' => $this->getBlockSetting($block_id, 'story_body'), 230 $block_id = (int) $story->block_id; 234 $story->title = $this->getBlockSetting($block_id, 'title'); 235 $story->languages = $this->getBlockSetting($block_id, 'languages'); 274 $block_id = Validator::queryParams($request)->integer('block_id', 0); [all …]
|
H A D | HtmlBlockModule.php | 74 * @param int $block_id 80 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 84 $title = $this->getBlockSetting($block_id, 'title'); 85 $content = $this->getBlockSetting($block_id, 'html'); 86 $show_timestamp = $this->getBlockSetting($block_id, 'show_timestamp'); 87 $languages = $this->getBlockSetting($block_id, 'languages'); 98 $block_timestamp = (int) $this->getBlockSetting($block_id, 'timestamp', (string) time()); 107 'id' => $block_id, 108 'config_url' => $this->configUrl($tree, $context, $block_id), 153 * @param int $block_id [all …]
|
H A D | UpcomingAnniversariesModule.php | 135 * @param int $block_id 141 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 145 $days = (int)$this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); 146 $filter = (bool)$this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER); 147 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); 148 $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT); 149 $events = $this->getBlockSetting($block_id, 'events', $default_events); 185 'id' => $block_id, 202 'id' => $block_id, 203 'config_url' => $this->configUrl($tree, $context, $block_id), [all …]
|
H A D | RecentChangesModule.php | 95 * @param int $block_id 101 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 103 $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); 104 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE); 105 $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE); 106 $show_user = (bool) $this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); 107 $show_date = (bool) $this->getBlockSetting($block_id, 'show_date', self::DEFAULT_SHOW_DATE); 108 $source = $this->getBlockSetting($block_id, 'source', self::DEFAULT_SOURCE); 140 'id' => $block_id, 161 'id' => $block_id, [all …]
|
H A D | FrequentlyAskedQuestionsModule.php | 188 $block_id = Validator::queryParams($request)->integer('block_id'); 190 DB::table('block_setting')->where('block_id', '=', $block_id)->delete(); 192 DB::table('block')->where('block_id', '=', $block_id)->delete(); 209 $block_id = Validator::queryParams($request)->integer('block_id'); 212 ->where('block_id', '=', $block_id) 223 ->where('block_id', '=', $block_id) 229 ->where('block_id', '=', $swap_block->block_id) 245 $block_id = Validator::queryParams($request)->integer('block_id'); 248 ->where('block_id', '=', $block_id) 259 ->where('block_id', '=', $block_id) [all …]
|
H A D | OnThisDayModule.php | 115 * @param int $block_id 121 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 127 $filter = (bool) $this->getBlockSetting($block_id, 'filter', '1'); 128 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); 129 $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT); 130 $events = $this->getBlockSetting($block_id, 'events', $default_events); 157 'id' => $block_id, 174 'id' => $block_id, 175 'config_url' => $this->configUrl($tree, $context, $block_id), 220 * @param int $block_id [all …]
|
H A D | YahrzeitModule.php | 80 * @param int $block_id 86 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 90 $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); 91 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); 92 $calendar = $this->getBlockSetting($block_id, 'calendar', self::DEFAULT_CALENDAR); 159 'id' => $block_id, 178 'id' => $block_id, 179 'config_url' => $this->configUrl($tree, $context, $block_id), 224 * @param int $block_id 228 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument [all …]
|
H A D | ChartsBlockModule.php | 78 * @param int $block_id 84 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 90 $type = $this->getBlockSetting($block_id, 'type', 'pedigree'); 91 $xref = $this->getBlockSetting($block_id, 'pid', $default_xref); 112 'block_id' => $block_id, 132 'block_id' => $block_id, 152 'block_id' => $block_id, 183 'id' => $block_id, 184 'config_url' => $this->configUrl($tree, $context, $block_id), 219 * @param int $block_id [all …]
|
H A D | ResearchTaskModule.php | 88 * @param int $block_id 94 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 96 … $show_other = $this->getBlockSetting($block_id, 'show_other', self::DEFAULT_SHOW_OTHER); 97 …$show_unassigned = $this->getBlockSetting($block_id, 'show_unassigned', self::DEFAULT_SHOW_UNASSIG… 98 … $show_future = $this->getBlockSetting($block_id, 'show_future', self::DEFAULT_SHOW_FUTURE); 140 'id' => $block_id, 141 'config_url' => $this->configUrl($tree, $context, $block_id), 245 * @param int $block_id 249 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument 255 $this->setBlockSetting($block_id, 'show_other', (string) $show_other); [all …]
|
H A D | TopGivenNamesModule.php | 62 * @param int $block_id 68 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 71 $num = $this->getBlockSetting($block_id, 'num', self::DEFAULT_NUMBER); 72 $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); 105 'id' => $block_id, 106 'config_url' => $this->configUrl($tree, $context, $block_id), 151 * @param int $block_id 155 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument 160 $this->setBlockSetting($block_id, 'num', (string) $num); 161 $this->setBlockSetting($block_id, 'infoStyle', $info_style); [all …]
|
H A D | TopSurnamesModule.php | 85 * @param int $block_id 91 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 93 $num = (int) $this->getBlockSetting($block_id, 'num', self::DEFAULT_NUMBER); 94 $info_style = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); 191 'id' => $block_id, 192 'config_url' => $this->configUrl($tree, $context, $block_id), 237 * @param int $block_id 241 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument 246 $this->setBlockSetting($block_id, 'num', (string) $num); 247 $this->setBlockSetting($block_id, 'infoStyle', $info_style); [all …]
|
H A D | ReviewChangesModule.php | 93 * @param int $block_id 99 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 103 $sendmail = (bool) $this->getBlockSetting($block_id, 'sendmail', '1'); 104 $days = (int) $this->getBlockSetting($block_id, 'days', '1'); 183 'id' => $block_id, 184 'config_url' => $this->configUrl($tree, $context, $block_id), 232 * @param int $block_id 236 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument 241 $this->setBlockSetting($block_id, 'days', (string) $days); 242 $this->setBlockSetting($block_id, 'sendmail', $sendmail); [all …]
|
H A D | TopPageViewsModule.php | 65 * @param int $block_id 71 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 73 $num = (int) $this->getBlockSetting($block_id, 'num', self::DEFAULT_NUMBER_TO_SHOW); 104 'id' => $block_id, 105 'config_url' => $this->configUrl($tree, $context, $block_id), 150 * @param int $block_id 154 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument 158 $this->setBlockSetting($block_id, 'num', (string) $num); 165 * @param int $block_id 169 public function editBlockConfiguration(Tree $tree, int $block_id): string argument [all …]
|
H A D | ModuleBlockTrait.php | 39 * @param int $block_id 45 public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string argument 85 * @param int $block_id 89 protected function configUrl(Tree $tree, string $context, int $block_id): string argument 93 'block_id' => $block_id, 100 'block_id' => $block_id, 112 * @param int $block_id 116 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void argument 124 * @param int $block_id 128 public function editBlockConfiguration(Tree $tree, int $block_id): string argument
|
H A D | AbstractModule.php | 74 * @param int $block_id 80 …final protected function getBlockSetting(int $block_id, string $setting_name, string $default = ''… argument 83 … ->remember('block-setting-' . $block_id, static fn (): array => DB::table('block_setting') 84 ->where('block_id', '=', $block_id) 94 * @param int $block_id 100 …final protected function setBlockSetting(int $block_id, string $setting_name, string $setting_valu… argument 103 'block_id' => $block_id,
|
H A D | ModuleBlockInterface.php | 72 * @param int $block_id 78 … public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string; argument 107 * @param int $block_id 111 public function editBlockConfiguration(Tree $tree, int $block_id): string; argument 117 * @param int $block_id 121 public function saveBlockConfiguration(ServerRequestInterface $request, int $block_id): void; argument
|
/webtrees/resources/views/modules/favorites/ |
H A D | favorites.phtml | 46 …ta-bs-toggle="modal" data-bs-backdrop="static" data-bs-target="#favorite-form-<?= e($block_id) ?>"> 50 … fade" id="favorite-form-<?= e($block_id) ?>" tabindex="-1" role="dialog" aria-labelledby="favorit… 55 <h5 class="modal-title" id="favorite-form-<?= e($block_id) ?>-label"> 65 …"form-check-input" type="radio" name="type" value="indi" id="fav-indi-<?= e($block_id) ?>" checked> 66 … <label class="form-check-label" for="fav-indi-<?= e($block_id) ?>"> 79 …put class="form-check-input" type="radio" name="type" value="fam" id="fav-fam-<?= e($block_id) ?>"> 80 … <label class="form-check-label" for="fav-fam-<?= e($block_id) ?>"> 93 …t class="form-check-input" type="radio" name="type" value="obje" id="fav-obje-<?= e($block_id) ?>"> 94 … <label class="form-check-label" for="fav-obje-<?= e($block_id) ?>"> 107 …t class="form-check-input" type="radio" name="type" value="sour" id="fav-sour-<?= e($block_id) ?>"> [all …]
|
/webtrees/app/Services/ |
H A D | HomePageService.php | 61 $block_id = Validator::attributes($request)->integer('block_id'); 64 ->where('block_id', '=', $block_id) 90 $block_id = Validator::attributes($request)->integer('block_id'); 93 ->where('block_id', '=', $block_id) 113 * @param int $block_id 117 public function getBlockModule(Tree $tree, int $block_id): ModuleBlockInterface argument 122 ->where('block_id', '=', $block_id) 299 foreach ($updated_blocks as $block_order => $block_id) { 300 if (is_numeric($block_id)) { 303 ->where('block_id', '=', $block_id) [all …]
|
/webtrees/resources/views/ |
H A D | tree-page.phtml | 18 <?php foreach ($main_blocks->concat($side_blocks) as $block_id => $block) : ?> 19 … <?= view('tree-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?> 24 <?php foreach ($main_blocks as $block_id => $block) : ?> 25 … <?= view('tree-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?> 29 <?php foreach ($side_blocks as $block_id => $block) : ?> 30 … <?= view('tree-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?>
|
H A D | user-page.phtml | 23 <?php foreach ($main_blocks->concat($side_blocks) as $block_id => $block) : ?> 24 … <?= view('user-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?> 29 <?php foreach ($main_blocks as $block_id => $block) : ?> 30 … <?= view('user-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?> 34 <?php foreach ($side_blocks as $block_id => $block) : ?> 35 … <?= view('user-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?>
|
H A D | edit-blocks-page.phtml | 33 <?php foreach ($main_blocks as $block_id => $block) : ?> 34 … <?= view('edit-blocks-block', ['block_id' => $block_id, 'block' => $block]) ?> 42 <?php foreach ($side_blocks as $block_id => $block) : ?> 43 … <?= view('edit-blocks-block', ['block_id' => $block_id, 'block' => $block]) ?> 55 <?php foreach ($all_blocks as $block_id => $block) : ?> 56 <?= view('edit-blocks-block', ['block_id' => $block_id, 'block' => $block]) ?>
|
/webtrees/app/Http/RequestHandlers/ |
H A D | TreePageBlock.php | 56 $block_id = Validator::queryParams($request)->integer('block_id'); 58 $block_id = (int) DB::table('block') 59 ->where('block_id', '=', $block_id) 63 $module = $this->home_page_service->getBlockModule($tree, $block_id); 66 … 'content' => $module->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_TREE_PAGE),
|
H A D | UserPageBlock.php | 58 $block_id = Validator::queryParams($request)->integer('block_id'); 60 $block_id = (int) DB::table('block') 61 ->where('block_id', '=', $block_id) 65 $module = $this->home_page_service->getBlockModule($tree, $block_id); 68 … 'content' => $module->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_USER_PAGE),
|