Tweak
This commit is contained in:
parent
0a2e902c89
commit
da746d3e10
2 changed files with 31 additions and 3 deletions
|
@ -11,6 +11,18 @@ get_header(); ?>
|
|||
<main id="list-page" class="col-10 col-m-12" role="main">
|
||||
<header>
|
||||
<h1>Quotes.</h1>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
get_the_posts_pagination(
|
||||
array(
|
||||
'screen_reader_text' => ' ',
|
||||
'mid_size' => 20,
|
||||
'prev_text' => '',
|
||||
'next_text' => '',
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
</header>
|
||||
|
||||
<section class="row">
|
||||
|
@ -36,6 +48,21 @@ get_header(); ?>
|
|||
?>
|
||||
</ul>
|
||||
</section><!-- .site-main -->
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
get_the_posts_pagination(
|
||||
array(
|
||||
'screen_reader_text' => ' ',
|
||||
'mid_size' => 20,
|
||||
'prev_text' => '',
|
||||
'next_text' => '',
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
</footer>
|
||||
</main><!-- .content-area -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
|
|
@ -673,6 +673,7 @@ function display_companies() {
|
|||
array_push( $term_item_counts, count( $posts ) );
|
||||
}
|
||||
|
||||
// Oh dear.
|
||||
if ( ( isset( $_POST['job'] ) && 'true' === $_POST['job'] && $term_item_counts[0] > 0 ) || ( isset( $_POST['post'] ) && 'true' === $_POST['post'] && $term_item_counts[1] > 0 ) || ( isset( $_POST['website'] ) && 'true' === $_POST['website'] && $term_item_counts[2] > 0 ) || ( isset( $_POST['program'] ) && 'true' === $_POST['program'] && $term_item_counts[3] > 0 ) || ( isset( $_POST['writing'] ) && 'true' === $_POST['writing'] && $term_item_counts[4] > 0 ) || ( isset( $_POST['video'] ) && 'true' === $_POST['video'] && $term_item_counts[5] > 0 ) || ( isset( $_POST['other'] ) && 'true' === $_POST['other'] && $term_item_counts[6] > 0 ) || ( isset( $_POST['qualification'] ) && 'true' === $_POST['qualification'] && $term_item_counts[7] > 0 ) || ( isset( $_POST['award'] ) && 'true' === $_POST['award'] && $term_item_counts[8] > 0 ) ) {
|
||||
$img_url = wp_get_attachment_image_src( $term->image_id, 'full' ) [0];
|
||||
$bg_img = ( ! $img_url ) ? '' : ' background-image: url(' . strtok( $img_url, '?' ) . ');';
|
||||
|
|
Reference in a new issue