web-wordpress-kit/kit/search.php

119 lines
3.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
get_header();
?>
<main>
<section class="background-color-white">
<div class="content-wrap">
<div class="headline-element" id="c145">
<h2>Suche</h2>
</div>
<div id="c139" class="frame frame-default frame-type-list frame-layout-0">
<div class="tx-indexedsearch">
<div id="c139" class="frame frame-default frame-type-list frame-layout-0">
<div class="tx-indexedsearch">
<div class="tx-indexedsearch-searchbox">
<form method="get" role="search" action="<?php echo site_url(/); ?>">
<div>
</div>
<fieldset>
<div class="tx-indexedsearch-form">
<label for="tx-indexedsearch-searchbox-sword">Suchen nach:</label>
<input class="tx-indexedsearch-searchbox-sword" type="text" name="s" value="<?php the_search_query(); ?>" />
</div>
<div class="tx-indexedsearch-search-submit">
<button type="submit" class="tx-indexedsearch-searchbox-button" />
<span>Suchen</span>
</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<div class="tx-indexedsearch-browsebox">
<p>
<?php
global $wp_query;
echo "Anzeige der Ergebnisse <strong>1 bis 10</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 &gt;</a></li></ul>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<div class="tx-indexedsearch-res">
<h3>
<span class="tx-indexedsearch-title">
<a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a>
</span>
</h3>
<p class="tx-indexedsearch-description">
<?php the_excerpt(); ?>
</p>
<a href="#" class="link-more"><span>Weiterlesen</span></a>
</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 &gt;</a>
</li>
</ul> -->
</div>
</div>
</div>
</section>
</main>
<?php
get_template_part('template-parts/sidebar');
get_footer();