Add classes to event logos templates

This commit is contained in:
Brian Miyaji
2016-12-12 19:12:51 +11:00
parent d9463d6193
commit e5eecb9005
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
* @version 2.1.3 * @version 2.1.3
*/ */
?> ?>
<div class="sp-template sp-template-event-blocks sp-template-event-logos-block"> <div class="sp-template sp-template-event-logos sp-template-event-blocks sp-template-event-logos-block">
<div class="sp-table-wrapper"> <div class="sp-table-wrapper">
<table class="sp-event-blocks sp-data-table" data-sp-rows="1"> <table class="sp-event-blocks sp-data-table" data-sp-rows="1">
<thead><tr><th></th></tr></thead> <?php # Required for DataTables ?> <thead><tr><th></th></tr></thead> <?php # Required for DataTables ?>

View File

@@ -49,7 +49,7 @@ foreach ( $teams as $team ):
endforeach; endforeach;
$team_logos = array_filter( $team_logos ); $team_logos = array_filter( $team_logos );
if ( ! empty( $team_logos ) ): if ( ! empty( $team_logos ) ):
echo '<div class="sp-template sp-template-event-logos"><div class="sp-event-logos sp-event-logos-' . sizeof( $teams ) . '">'; echo '<div class="sp-template sp-template-event-logos sp-template-event-logos-inline"><div class="sp-event-logos sp-event-logos-' . sizeof( $teams ) . '">';
// Assign delimiter // Assign delimiter
if ( $show_time && sizeof( $teams ) <= 2 ) { if ( $show_time && sizeof( $teams ) <= 2 ) {