Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Created June 9, 2014 18:48
Show Gist options
  • Select an option

  • Save sidharrell/9de33f19f6f98794fe29 to your computer and use it in GitHub Desktop.

Select an option

Save sidharrell/9de33f19f6f98794fe29 to your computer and use it in GitHub Desktop.
fix for espresso-custom-templates/templates/events-table/index.php
// replaces lines 87-93
if ($event_status == 'NOT_ACTIVE') {
$live_button = __('Closed', 'event_espresso');
$cart_link = '';
}
if ( !empty( $event->category_id ) ) {
$array_cat=explode(",",$event->category_id);
$cat=array_map(function($val) { return "cat-" . trim($val); }, $array_cat);
$cat_class = implode(" ", $cat);
} else {
$cat_class = '';
}
?>
<tr class="espresso-table-row <?php echo $cat_class; ?>">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment