Created
June 9, 2014 18:48
-
-
Save sidharrell/9de33f19f6f98794fe29 to your computer and use it in GitHub Desktop.
fix for espresso-custom-templates/templates/events-table/index.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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