diff options
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/home.php | 2 | ||||
-rw-r--r-- | app/view/templates/homeopt.php | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 68cf965..63a63e1 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -132,7 +132,7 @@ <td class="linkto"><a title="<?= $item->linkto('string') ?>"><?= $item->linkto('sort') ?></a></td> <?php } if ($columns['linkfrom']) { ?> - <td class="linkfrom"><a title="<?= $item->linkfrom('string') ?>"><?= $item->linkfrom('sort') ?></a></td> + <td class="linkfrom"><?= $opt->linktolink($item->linkfrom('array')) ?></td> <?php } if ($columns['datemodif']) { ?> <td class="datemodif"><time datetime="<?= $item->datemodif('string') ?>" title="<?= $item->datemodif('dmy') . ' ' . $item->datemodif('ptime') ?>"><?= $item->datemodif('hrdi') ?></time></td> diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index 05f8d27..d1f70da 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -117,7 +117,31 @@ </fieldset> <fieldset> + <legend>Link to</legend> + + <label for="linkto" title="filter pages that have links pointing to the following selected page">Link pointing to</label> + </br> + <select name="linkto" id="linkto"> + <option value="" selected>-- not set --</option> + <?php + foreach ($opt->pageidlist() as $id) { + if ($id === $opt->linkto()) { + $selected = ' selected'; + } else { + $selected = ''; + } + echo '<option value="' . $id . '"' . $selected . '>' . $id . '</option>'; + } + ?> + </select> + </fieldset> + + + + + <fieldset> <legend>Other</legend> + <?php |