streamline and improve styling and layout. increment version.
This commit is contained in:
parent
abbd6bb5ee
commit
c370d9c23c
193 changed files with 900 additions and 600 deletions
28
search.php
28
search.php
|
@ -13,27 +13,39 @@ get_header(); ?>
|
|||
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
<h1 class="text-gray-300 fst-italic mb-4 tek-border-bottom-gray-dashed">
|
||||
Search results for: <?php echo esc_html( get_search_query() ); ?></h1>
|
||||
<h1 class="text-muted fst-italic mb-4 tek-border-bottom-gray-dashed">
|
||||
<?php echo 'Search results for: “' . esc_html( get_search_query() ) . '”'; ?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
echo get_template_part( 'content-templates/content', 'article' );
|
||||
endwhile;
|
||||
|
||||
// output listing pagination if not singular
|
||||
if (!is_singular()) :
|
||||
?>
|
||||
|
||||
<nav class="d-flex justify-content-between" aria-label="Page navigation">
|
||||
<div class="nav-previous alignleft"><?php next_posts_link( '← Older' ); ?></div>
|
||||
<div class="nav-next alignright"><?php previous_posts_link( 'Newer →' ); ?></div>
|
||||
<div class="nav-previous alignleft">
|
||||
<?php
|
||||
$txt = inline_svg( 'mdi-chevron-left', array( 'div_class' => 'icon baseline me-1' ) ) . 'Older';
|
||||
next_posts_link( $txt ); ?>
|
||||
</div>
|
||||
<div class="nav-next alignright">
|
||||
<?php
|
||||
$txt = 'Newer' . inline_svg( 'mdi-chevron-right', array( 'div_class' => 'icon baseline ms-1' ) );
|
||||
previous_posts_link( $txt ); ?>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
<?php endif;
|
||||
else :
|
||||
|
||||
echo '<h1 class="text-gray-300 fst-italic mb-4 tek-border-bottom-gray-dashed">Search: nothing found</h1>';
|
||||
echo '<h1 class="text-muted fst-italic mb-4 tek-border-bottom-gray-dashed">Search: nothing found</h1>';
|
||||
|
||||
printf( 'Sorry, no results for %s',
|
||||
printf( 'Sorry, no results for “%s”',
|
||||
esc_html( get_search_query() )
|
||||
);
|
||||
endif;
|
||||
|
@ -42,4 +54,4 @@ get_header(); ?>
|
|||
</div>
|
||||
</main>
|
||||
<?php
|
||||
get_footer('', array('frontpage'=>false));
|
||||
get_footer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue