Skip to content

Instantly share code, notes, and snippets.

@afragen
Last active December 20, 2015 18:59
Show Gist options
  • Save afragen/6179886 to your computer and use it in GitHub Desktop.
Save afragen/6179886 to your computer and use it in GitHub Desktop.
The Events Calendar template override for colorizing Events List widget using The Events Calendar Category Colors plugin.
<?php
/**
* Events List Widget Template
* This is the template for the output of the events list widget.
* All the items are turned on and off through the widget admin.
* There is currently no default styling, which is needed.
*
* This view contains the filters required to create an effective events list widget view.
*
* You can recreate an ENTIRELY new events list widget view by doing a template override,
* and placing a list-widget.php file in a tribe-events/widgets/ directory
* within your theme directory, which will override the /views/widgets/list-widget.php.
*
* You can use any or all filters included in this file or create your own filters in
* your functions.php. In order to modify or extend a single filter, please see our
* readme on templates hooks and filters (TO-DO)
*
* @return string
*
* @package TribeEventsCalendar
* @since 2.1
* @author Modern Tribe Inc.
*
*/
?>
<?php do_action( 'tribe_before_widget' ); ?>
<li class="tribe-events-list-widget-events <?php tribe_events_event_classes() ?>">
<h4 class="entry-title summary">
<a href="<?php echo tribe_get_event_link(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h4>
<!-- Event Time -->
<div class="duration">
<?php echo tribe_events_event_schedule_details(); ?>
</div>
<!-- Event Title -->
</li>
@afragen
Copy link
Author

afragen commented Nov 17, 2013

Fixed for 'array to string' error

@afragen
Copy link
Author

afragen commented Jan 3, 2014

Updated for The Events Calendar 3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment