![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/webtrees/resources/views/modules/stories/ |
Upload File : |
<?php declare(strict_types=1); use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\Tree; /** * @var bool $is_admin * @var Individual $individual * @var array<object> $stories * @var Tree $tree */ ?> <div class="wt-tab-stories"> <?php foreach ($stories as $story) : ?> <div class="wt-story-title text-center"> <h3><?= e($story->title) ?></h3> </div> <div class="wt-story-body"> <p><?= $story->story_body ?></p> </div> <?php if ($is_admin) : ?> <p class="wt-story-edit-link"> <a href="<?= e(route('module', ['module' => 'stories', 'action' => 'AdminEdit', 'block_id' => $story->block_id, 'tree' => $tree->name(), 'url' => $individual->url()])) ?>"> <?= I18N::translate('Edit the story') ?> </a> </p> <?php endif ?> <?php endforeach ?> <?php if ($is_admin && $stories === []) : ?> <p class="wt-story-add-link"> <a href="<?= e(route('module', ['module' => 'stories', 'action' => 'AdminEdit', 'xref' => $individual->xref(), 'tree' => $tree->name(), 'url' => $individual->url()])) ?>"> <?= I18N::translate('Add a story') ?> </a> </p> <?php endif ?> </div>