Lines Matching +full:php +full:- +full:version

1 <?php
100 * @var Collection<array-key,int> $families
106 * @var Collection<array-key,int> $individuals
124 * @var Collection<array-key,int> $media
129 * @var Collection<array-key,int> $notes
135 * @var Collection<array-key,int> $repositories
144 * @var Collection<array-key,int> $sources
146 * @var Collection<array-key,int> $submitters
161 <!-- WEBSITE / WEBTREES -->
162 <div class="card mb-4">
163 <div class="card-header">
164 <h2 class="mb-0">
166 <span class="badge bg-secondary" dir="ltr">
167 <?= e(Webtrees::VERSION) ?>
171 <div class="card-body">
172 <?php foreach ($server_errors as $server_error) : ?>
173 <p class="alert alert-danger"><?= $server_error ?></p>
174 <?php endforeach ?>
176 <?php foreach ($server_warnings as $server_warning) : ?>
177 <p class="alert alert-warning"><?= $server_warning ?></p>
178 <?php endforeach ?>
180 <p class="card-text">
185 <?php if ($latest_version_error !== '') : ?>
186 <p class="alert alert-danger">
187 <?= I18N::translate('There was an error checking for a new version.') ?>
191 … X hours ago. */ I18N::translate('Last checked %s.', $latest_version_timestamp->diffForHumans()) ?>
192 …<a href="#" class="btn btn-primary" data-wt-post-url="<?= e(route(CheckForNewVersionNow::class)) ?…
196 <?php elseif ($latest_version === '') : ?>
197 <p class="card-text">
200 <?php elseif (version_compare(Webtrees::VERSION, $latest_version) < 0) : ?>
201 <p class="card-text alert alert-info">
202 <?= I18N::translate('A new version of webtrees is available.') ?>
203 <a href="<?= e(route(UpgradeWizardPage::class)) ?>" class="alert-link">
204 <?= /* I18N: %s is a version number */
208 <?php else : ?>
209 <p class="card-text">
210 … <?= I18N::translate('This is the latest version of webtrees. No upgrade is available.') ?>
211 … X hours ago. */ I18N::translate('Last checked %s.', $latest_version_timestamp->diffForHumans()) ?>
212 <?php if ($latest_version_timestamp->timestamp() + 60 < time()) : ?>
213 …<a href="#" class="btn btn-primary" data-wt-post-url="<?= e(route(CheckForNewVersionNow::class)) ?…
216 <?php endif ?>
218 <?php endif ?>
220 <?php foreach ($custom_updates as $module) : ?>
221 <div class="alert alert-info">
225 …<?= $module->title() ?> — <?= e($module->customModuleVersion()) ?> — <?= e($module->customModuleLa…
226 <?php if ($module->customModuleSupportUrl() !== '') : ?>
228 …r more information, see %s.', '<a href="' . e($module->customModuleSupportUrl()) . '">' . e($modul…
229 <?php endif ?>
231 <?php endforeach ?>
234 <div class="col-sm">
235 <ul class="fa-ul mx-0">
237 <span class="fa-li"><?= view('icons/preferences') ?></span>
243 <span class="fa-li"><?= view('icons/email') ?></span>
249 <span class="fa-li"><?= view('icons/user') ?></span>
251 <?= I18N::translate('Sign-in and registration') ?>
256 <div class="col-sm">
257 <ul class="fa-ul mx-0">
259 <span class="fa-li"><?= view('icons/list') ?></span>
265 <span class="fa-li"><?= view('icons/delete') ?></span>
271 <span class="fa-li"><?= view('icons/server') ?></span>
278 <div class="col-sm">
279 <ul class="fa-ul mx-0">
281 <span class="fa-li"><?= view('icons/tag') ?></span>
292 <!-- FAMILY TREES -->
293 <div class="card mb-4 <?= array_sum($changes) ? 'card-outline-danger' : '' ?>">
294 <div class="card-header">
295 <h2 class="mb-0">
297 <span class="badge bg-secondary">
298 <?= I18N::number($all_trees->count()) ?>
303 <div class="card-body">
304 <?php if ($all_trees->isEmpty()) : ?>
305 <p class="alert alert-info">
308 <?php endif ?>
310 <ul class="fa-ul mx-0">
312 <span class="fa-li"><?= view('icons/add') ?></span>
318 <span class="fa-li"><?= view('icons/block') ?></span>
323 <?php if (count($all_trees) > 1) : ?>
325 <span class="fa-li"><?= view('icons/merge') ?></span>
330 <?php endif ?>
333 <table class="table table-sm">
334 <caption class="visually-hidden">
341 <th class="align-digits"><?= I18N::translate('Pending changes') ?></th>
342 … <th class="d-none d-sm-table-cell align-digits"><?= I18N::translate('Individuals') ?></th>
343 … <th class="d-none d-lg-table-cell align-digits"><?= I18N::translate('Families') ?></th>
344 … <th class="d-none d-sm-table-cell align-digits"><?= I18N::translate('Sources') ?></th>
345 … <th class="d-none d-lg-table-cell align-digits"><?= I18N::translate('Repositories') ?></th>
346 … <th class="d-none d-sm-table-cell align-digits"><?= I18N::translate('Media') ?></th>
347 … <th class="d-none d-lg-table-cell align-digits"><?= I18N::translate('Notes') ?></th>
348 … <th class="d-none d-lg-table-cell align-digits"><?= I18N::translate('Submitters') ?></th>
353 <?php foreach ($all_trees as $tree) : ?>
354 <tr class="<?= $changes[$tree->id()] ? 'danger' : '' ?>">
357 … <a href="<?= e(route(ManageTrees::class, ['tree' => $tree->name()])) ?>">
358 <?= e($tree->name()) ?>
359 -
360 <?= e($tree->title()) ?>
363 <td style="text-align: right;">
364 <?php if ($changes[$tree->id()]) : ?>
365 …<a href="<?= e(route(PendingChanges::class, ['tree' => $tree->name(), 'url' => route(ControlPanel:…
366 <?= I18N::number($changes[$tree->id()]) ?>
367 …<span class="visually-hidden"><?= I18N::translate('Pending changes') ?> <?= e($tree->title()) ?></…
369 <?php else : ?>
370 -
371 <?php endif ?>
373 <td class="d-none d-sm-table-cell align-digits">
374 <?php if ($individuals[$tree->id()] > 0) : ?>
375 … <?php if ($individual_list_module instanceof IndividualListModule) : ?>
376 …<a href="<?= e($individual_list_module->listUrl($tree)) ?>"><?= I18N::number($individuals[$tree->i…
377 <?php else : ?>
378 <?= I18N::number($individuals[$tree->id()]) ?>
379 <?php endif ?>
380 <?php else : ?>
381 -
382 <?php endif ?>
384 <td class="d-none d-lg-table-cell align-digits">
385 <?php if ($families[$tree->id()] > 0) : ?>
386 <?php if ($family_list_module instanceof FamilyListModule) : ?>
387 …<a href="<?= e($family_list_module->listUrl($tree)) ?>"><?= I18N::number($families[$tree->id()]) ?…
388 <?php else : ?>
389 <?= I18N::number($families[$tree->id()]) ?>
390 <?php endif ?>
391 <?php else : ?>
392 -
393 <?php endif ?>
395 <td class="d-none d-sm-table-cell align-digits">
396 <?php if ($sources[$tree->id()] > 0) : ?>
397 <?php if ($source_list_module instanceof SourceListModule) : ?>
398 …<a href="<?= e($source_list_module->listUrl($tree)) ?>"><?= I18N::number($sources[$tree->id()]) ?>…
399 <?php else : ?>
400 <?= I18N::number($sources[$tree->id()]) ?>
401 <?php endif ?>
402 <?php else : ?>
403 -
404 <?php endif ?>
406 <td class="d-none d-lg-table-cell align-digits">
407 <?php if ($repositories[$tree->id()] > 0) : ?>
408 … <?php if ($repository_list_module instanceof RepositoryListModule) : ?>
409 …<a href="<?= e($repository_list_module->listUrl($tree)) ?>"><?= I18N::number($repositories[$tree->…
410 <?php else : ?>
411 <?= I18N::number($repositories[$tree->id()]) ?>
412 <?php endif ?>
413 <?php else : ?>
414 -
415 <?php endif ?>
417 <td class="d-none d-sm-table-cell align-digits">
418 <?php if ($media[$tree->id()] > 0) : ?>
419 <?php if ($media_list_module instanceof MediaListModule) : ?>
420 …<a href="<?= e($media_list_module->listUrl($tree)) ?>"><?= I18N::number($media[$tree->id()]) ?></a>
421 <?php else : ?>
422 <?= I18N::number($media[$tree->id()]) ?>
423 <?php endif ?>
424 <?php else : ?>
425 -
426 <?php endif ?>
428 <td class="d-none d-lg-table-cell align-digits">
429 <?php if ($notes[$tree->id()] > 0) : ?>
430 <?php if ($note_list_module instanceof NoteListModule) : ?>
431 … <a href="<?= e($note_list_module->listUrl($tree)) ?>"><?= I18N::number($notes[$tree->id()]) ?></a>
432 <?php else : ?>
433 <?= I18N::number($notes[$tree->id()]) ?>
434 <?php endif ?>
435 <?php else : ?>
436 -
437 <?php endif ?>
439 <td class="d-none d-lg-table-cell align-digits">
440 <?php if ($submitters[$tree->id()] > 0) : ?>
441 … <?php if ($submitter_list_module instanceof SubmitterListModule) : ?>
442 …<a href="<?= e($submitter_list_module->listUrl($tree)) ?>"><?= I18N::number($submitters[$tree->id(…
443 <?php else : ?>
444 <?= I18N::number($submitters[$tree->id()]) ?>
445 <?php endif ?>
446 <?php else : ?>
447 -
448 <?php endif ?>
451 <?php endforeach ?>
459 <td class="align-digits">
462 <td class="d-none d-sm-table-cell align-digits">
463 <?= I18N::number($individuals->sum()) ?>
465 <td class="d-none d-lg-table-cell align-digits">
466 <?= I18N::number($families->sum()) ?>
468 <td class="d-none d-sm-table-cell align-digits">
469 <?= I18N::number($sources->sum()) ?>
471 <td class="d-none d-lg-table-cell align-digits">
472 <?= I18N::number($repositories->sum()) ?>
474 <td class="d-none d-sm-table-cell align-digits">
475 <?= I18N::number($media->sum()) ?>
477 <td class="d-none d-lg-table-cell align-digits">
478 <?= I18N::number($notes->sum()) ?>
480 <td class="d-none d-lg-table-cell align-digits">
481 <?= I18N::number($submitters->sum()) ?>
489 <?php if ($show_synchronize) : ?>
490 <?= view('admin/synchronize-trees') ?>
491 <?php endif ?>
493 <!-- USERS -->
494 <div class="card mb-4 <?= $unapproved || $unverified ? 'card-outline-danger' : '' ?>">
495 <div class="card-header">
496 <h2 class="mb-0">
498 <span class="badge bg-secondary">
503 <div class="card-body">
505 …<?php foreach ([I18N::translate('Administrators') => $administrators, I18N::translate('Managers') …
506 <dt class="col-sm-6">
509 <dd class="col-sm-6">
510 <?php foreach ($list as $n => $user) : ?>
512 … <a href="<?= e(route(UserEditPage::class, ['user_id' => $user->id()])) ?>" dir="auto">
513 <?= e($user->realName()) ?>
515 <?php endforeach ?>
516 <?php if ($list->isEmpty()) : ?>
518 <?php endif ?>
520 <?php endforeach ?>
524 <div class="col-sm-6">
525 <ul class="fa-ul mx-0">
527 <span class="fa-li"><?= view('icons/preferences') ?></span>
533 <span class="fa-li"><?= view('icons/add') ?></span>
539 <span class="fa-li"><?= view('icons/delete') ?></span>
545 <span class="fa-li"><?= view('icons/block') ?></span>
552 <div class="col-sm-6">
553 <ul class="fa-ul mx-0">
554 <?php foreach ($recipients as $to => $recipient) : ?>
556 <span class="fa-li"><?= view('icons/email') ?></span>
561 <?php endforeach ?>
568 <!-- MODULES -->
569 <div class="card mb-4">
570 <div class="card-header">
571 <h2 class="mb-0">
573 …w('components/badge', ['count' => $all_modules_enabled->count(), 'total' => $all_modules_disabled-
577 <div class="card-body">
578 <ul class="fa-ul mx-0">
580 <span class="fa-li"><?= view('icons/module') ?></span>
584 …w('components/badge', ['count' => $all_modules_enabled->count(), 'total' => $all_modules_disabled-
589 <div class="col-sm-4">
594 <ul class="fa-ul mx-0">
596 <span class="fa-li"><?= view('icons/footer') ?></span>
600 …omponents/badge', ['count' => $footer_modules_enabled->count(), 'total' => $footer_modules_disable…
603 <span class="fa-li"><?= view('icons/analytics') ?></span>
607 …ents/badge', ['count' => $analytics_modules_enabled->count(), 'total' => $analytics_modules_disabl…
610 <span class="fa-li"><?= view('icons/theme') ?></span>
614 …components/badge', ['count' => $theme_modules_enabled->count(), 'total' => $theme_modules_disabled
617 <span class="fa-li"><?= view('icons/language') ?></span>
621 …onents/badge', ['count' => $language_modules_enabled->count(), 'total' => $language_modules_disabl…
629 <ul class="fa-ul mx-0">
631 <span class="fa-li"><?= view('icons/block') ?></span>
635 …components/badge', ['count' => $block_modules_enabled->count(), 'total' => $block_modules_disabled
643 <ul class="fa-ul mx-0">
645 <span class="fa-li"><?= view('icons/search') ?></span>
649 …', ['count' => $map_autocomplete_modules_enabled->count(), 'total' => $map_autocomplete_modules_di…
652 <span class="fa-li"><?= view('icons/search-location') ?></span>
656 …nts/badge', ['count' => $map_search_modules_enabled->count(), 'total' => $map_search_modules_disab…
659 <span class="fa-li"><?= view('icons/location') ?></span>
663 …onents/badge', ['count' => $map_link_modules_enabled->count(), 'total' => $map_link_modules_disabl…
666 <span class="fa-li"><?= view('icons/map') ?></span>
670 …/badge', ['count' => $map_provider_modules_enabled->count(), 'total' => $map_provider_modules_disa…
675 <div class="col-sm-4">
680 <ul class="fa-ul mx-0">
682 <span class="fa-li"><?= view('icons/menu') ?></span>
686 …('components/badge', ['count' => $menu_modules_enabled->count(), 'total' => $menu_modules_disabled
689 <span class="fa-li"><?= view('icons/chart') ?></span>
693 …components/badge', ['count' => $chart_modules_enabled->count(), 'total' => $chart_modules_disabled
696 <span class="fa-li"><?= view('icons/list') ?></span>
700 …('components/badge', ['count' => $list_modules_enabled->count(), 'total' => $list_modules_disabled
703 <span class="fa-li"><?= view('icons/report') ?></span>
707 …omponents/badge', ['count' => $report_modules_enabled->count(), 'total' => $report_modules_disable…
710 <span class="fa-li"><?= view('icons/data-fix') ?></span>
714 …onents/badge', ['count' => $data_fix_modules_enabled->count(), 'total' => $data_fix_modules_disabl…
722 <ul class="fa-ul mx-0">
724 <span class="fa-li"><?= view('icons/tab') ?></span>
727 …w('components/badge', ['count' => $tab_modules_enabled->count(), 'total' => $tab_modules_disabled-
731 <span class="fa-li"><?= view('icons/sidebar') ?></span>
735 …ponents/badge', ['count' => $sidebar_modules_enabled->count(), 'total' => $sidebar_modules_disable…
738 <span class="fa-li"><?= view('icons/history') ?></span>
742 …ponents/badge', ['count' => $history_modules_enabled->count(), 'total' => $history_modules_disable…
745 <span class="fa-li"><?= view('icons/share') ?></span>
747 … <?= /* I18N: plural noun - things that can be shared */ I18N::translate('Shares') ?>
749 …components/badge', ['count' => $share_modules_enabled->count(), 'total' => $share_modules_disabled
754 <div class="col-sm-4">
760 <ul class="fa-ul mx-0">
761 <?php foreach ($other_modules as $module) : ?>
763 <?php if ($module->isEnabled()) : ?>
764 <span class="fa-li"><?= view('icons/module') ?></span>
765 <?php if ($module instanceof ModuleConfigInterface) : ?>
766 <a href="<?= e($module->getConfigLink()) ?>">
767 <?= $module->title() ?>
770 <?php else : ?>
771 <?= $module->title() ?>
772 <?php endif ?>
773 <?php else : ?>
774 <span class="text-muted">
775 <span class="fa-li"><?= view('icons/module') ?></span>
776 <?= $module->title() ?>
777 <?php if ($module instanceof ModuleConfigInterface) : ?>
779 <?php endif ?>
781 <?php endif ?>
783 <?php if ($module instanceof ModuleCustomInterface) : ?>
784 <?= view('admin/custom-module-info', ['module' => $module]) ?>
785 <?php endif ?>
787 <?php endforeach ?>
794 <!-- MEDIA -->
795 <div class="card mb-4">
796 <div class="card-header">
797 <h2 class="mb-0">
801 <div class="card-body">
802 <ul class="fa-ul mx-0">
804 <span class="fa-li"><?= view('icons/preferences') ?></span>
810 <span class="fa-li"><?= view('icons/upload') ?></span>
816 <span class="fa-li"><?= view('icons/link') ?></span>
825 <!-- MAPS -->
826 <div class="card mb-4">
827 <div class="card-header">
828 <h2 class="mb-0">
832 <div class="card-body">
834 <div class="col-sm-12">
835 <ul class="fa-ul mx-0">
837 <span class="fa-li"><?= view('icons/location') ?></span>
848 <!-- OLD FILES -->
849 <?php if (!empty($files_to_delete)) : ?>
850 <div class="card mb-4 card-outline-danger">
851 <div class="card-header">
852 <h2 class="mb-0">
856 <div class="card-body">
858 …<?= I18N::translate('Files have been found from a previous version of webtrees. Old files can some…
860 <ul class="list-unstyled">
861 <?php foreach ($files_to_delete as $file_to_delete) : ?>
865 <?php endforeach ?>
869 <?php endif ?>