Set Zebra stripping by template

And some fine tuning
This commit is contained in:
savvasha
2017-12-14 14:24:39 +02:00
parent 8d2b504fb8
commit 1c981a47e7
5 changed files with 113 additions and 24 deletions

View File

@@ -94,7 +94,7 @@ if ( $show_title && false === $title && $id ):
endif;
$labels = array();
//Create a unique identifier based on the current time in microseconds
$identifier = uniqid('eventlist_');
$identifier = uniqid( 'eventlist_' );
?>
<div class="sp-template sp-template-event-list">
<?php if ( $title ) { ?>
@@ -450,10 +450,10 @@ $identifier = uniqid('eventlist_');
</table>
</div>
<?php
//var_dump($labels);
// If responsive tables are enabled then load the inline css code
if ($responsive == true){
sportspress_responsive_tables_css($labels,$identifier);
if ( true == $responsive ){
$theme_name = wp_get_theme()->get( 'Name' );
sportspress_responsive_tables_css( $labels, $identifier, $theme_name );
}
if ( $id && $show_all_events_link )
echo '<div class="sp-calendar-link sp-view-all-link"><a href="' . get_permalink( $id ) . '">' . __( 'View all events', 'sportspress' ) . '</a></div>';