Move table caption into event list template

This commit is contained in:
Brian Miyaji
2015-08-19 17:24:24 +10:00
parent f2325c6d47
commit be4598e18f

View File

@@ -58,11 +58,11 @@ endif;
if ( $show_title && false === $title && $id ) if ( $show_title && false === $title && $id )
$title = get_the_title( $id ); $title = get_the_title( $id );
if ( $title )
echo '<h4 class="sp-table-caption">' . $title . '</h4>';
?> ?>
<div class="sp-template sp-template-event-list"> <div class="sp-template sp-template-event-list">
<?php if ( $title ) { ?>
<h4 class="sp-table-caption"><?php echo $title; ?></h4>
<?php } ?>
<div class="sp-table-wrapper"> <div class="sp-table-wrapper">
<table class="sp-event-list sp-data-table<?php if ( $paginated ) { ?> sp-paginated-table<?php } if ( $sortable ) { ?> sp-sortable-table<?php } if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>" data-sp-rows="<?php echo $rows; ?>"> <table class="sp-event-list sp-data-table<?php if ( $paginated ) { ?> sp-paginated-table<?php } if ( $sortable ) { ?> sp-sortable-table<?php } if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>" data-sp-rows="<?php echo $rows; ?>">
<thead> <thead>