Content Display

Event Widget

Feature Docs

Display events in various layouts. Filter by featured, online, upcoming, or past events. Supports list, grid, cards, compact, and calendar layouts.

Upcoming Events Cards

Upcoming events in a card layout.

Code
<?php echo EventWidget::widget([ 'layout' => 'cards', 'limit' => 3, ]); ?>
Live Demo

Featured Events

Featured events in grid layout.

Code
<?php echo EventWidget::widget([ 'featured' => true, 'layout' => 'grid', 'limit' => 4, ]); ?>
Live Demo

Compact List

Minimal info compact list.

Code
<?php echo EventWidget::widget([ 'layout' => 'compact', 'limit' => 5, ]); ?>
Live Demo

Configuration Options

OptionTypeDefaultDescription
layoutstringlistLayout: list, grid, cards, compact, calendar
limitint5Number of events to display
featuredboolfalseShow only featured events
onlineboolfalseShow only online events
pastboolfalseShow past events instead of upcoming
showImagebooltrueShow event image
showPricesbooltrueShow ticket prices