Add show all links to post checklist

This commit is contained in:
Brian Miyaji
2014-06-21 12:55:41 +10:00
parent 2ec14d1da3
commit c128aeb447
2 changed files with 19 additions and 1 deletions

View File

@@ -722,7 +722,13 @@ if ( !function_exists( 'sp_post_checklist' ) ) {
<?php
endforeach;
?>
<li class="sp-not-found-container"><?php _e( 'No results found.', 'sportspress' ); ?></li>
<li class="sp-not-found-container">
<?php _e( 'No results found.', 'sportspress' ); ?>
<?php if ( sizeof( $posts ) ): ?><a class="sp-show-all" href="#show-all-<?php echo $meta; ?>s"><?php _e( 'Show all', 'sportspress' ); ?></a><?php endif; ?>
</li>
<?php if ( sizeof( $posts ) ): ?>
<li class="sp-show-all-container"><a class="sp-show-all" href="#show-all-<?php echo $meta; ?>s"><?php _e( 'Show all', 'sportspress' ); ?></a></li>
<?php endif; ?>
</ul>
</div>
<?php