Last active
December 20, 2015 18:59
-
-
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.
This file contains 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
<?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> |
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
Fixed for 'array to string' error