diff options
author | Kevin Wallace <kevin@wallace.seattle.wa.us> | 2019-05-25 18:01:04 -0700 |
---|---|---|
committer | Kevin Wallace <kevin@wallace.seattle.wa.us> | 2019-05-25 18:01:04 -0700 |
commit | 4fc8fe39ed70e84ee55675845dfbf5fc0bd1c3eb (patch) | |
tree | 2a4645889a6b8c8ecca38302a9ed38b1bdd5593e /index.php | |
parent | add divider when clicking 'more' (diff) |
more more links
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -130,14 +130,18 @@ li:target { ?> </ol> <?php - if ($depth > $more && $depth <= $max_more) { + $first_more = TRUE; + while ($depth <= $max_more) { ?> <a<?=$anchor?> class="more" href="?<?=http_build_query([ 'idx' => index_name($selected_index), 'q' => $q, 'more' => $depth, - ])?>#more">MORE</a> + ])?><?= $first_more ? "#more" : "" ?>"><?= $first_more ? "MORE" : $depth ?></a> <?php + $anchor = ""; + $depth++; + $first_more = FALSE; } } else { ?> |