styling fixes search results page
This commit is contained in:
parent
0ecd2e5efc
commit
4fcd021cb7
4 changed files with 49 additions and 30 deletions
|
|
@ -40,6 +40,7 @@ get_header();
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -49,13 +50,25 @@ get_header();
|
|||
<p>
|
||||
<?php
|
||||
global $wp_query;
|
||||
echo "Anzeige der Ergebnisse <strong>1 bis 10</strong> von insgesamt <strong>" . $wp_query->found_posts. "</strong>";
|
||||
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
||||
$post_start = ($wp_query->found_posts - $wp_query->post_count);
|
||||
echo "Anzeige der Ergebnisse <strong>" . $post_start . " bis " . $wp_query->post_count . "</strong> von insgesamt <strong>" . $wp_query->found_posts. "</strong>";
|
||||
?>
|
||||
</p>
|
||||
<!-- render the anchor-links to the sections inside the displayed result rows -->
|
||||
|
||||
<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 ></a></li></ul>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
|
@ -72,31 +85,15 @@ 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>
|
||||
|
||||
|
||||
|
||||
<!-- <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 ></a>
|
||||
</li>
|
||||
</ul> -->
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue