continuing work on pagination

This commit is contained in:
Jonas Heinrich 2020-04-21 18:11:36 +02:00
parent c657879840
commit 0ecd2e5efc
5 changed files with 169 additions and 133 deletions

View file

@ -72,11 +72,32 @@ get_header();
</div>
<?php endwhile; ?>
<div class="tx-indexedsearch-browsebox">
<?php the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( '< Zurück', 'textdomain' ),
'next_text' => __( 'Nächste >', 'textdomain' ),
'type' => 'list',
'before_page_number' => 'Seite ',
) ); ?>
</div>
<div class="tx-indexedsearch-browsebox">
<ul class="tx-indexedsearch-browsebox"><li class="tx-indexedsearch-browselist-currentPage"><strong><a href="#" onclick="document.getElementById('tx_indexedsearch_pointer').value='0';document.getElementById('tx_indexedsearch').submit();return false;">Seite 1</a></strong></li><li><a href="#" onclick="document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch').submit();return false;">Seite 2</a></li><li><a href="#" onclick="document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch').submit();return false;">Nächste &gt;</a></li></ul>
</div>
<!-- <ul class="tx-indexedsearch-browsebox">
<li class="tx-indexedsearch-browselist-currentPage">
<strong>
<a href="#" onclick="document.getElementById('tx_indexedsearch_pointer').value='0';document.getElementById('tx_indexedsearch').submit();return false;">Seite 1</a>
</strong>
</li>
<li>
<a href="#" onclick="document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch').submit();return false;">Seite 2</a>
</li>
<li>
<a href="#" onclick="document.getElementById('tx_indexedsearch_pointer').value='1';document.getElementById('tx_indexedsearch').submit();return false;">Nächste &gt;</a>
</li>
</ul> -->
</div>
@ -88,6 +109,8 @@ get_header();
</section>
</main>
<?php