Widget Demos
UI Components
Marketing
Content Display
Navigation
Notifications
Visual Effects
Interactive
Layout
Content Display
Event Widget
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
| Option | Type | Default | Description |
|---|---|---|---|
layout | string | list | Layout: list, grid, cards, compact, calendar |
limit | int | 5 | Number of events to display |
featured | bool | false | Show only featured events |
online | bool | false | Show only online events |
past | bool | false | Show past events instead of upcoming |
showImage | bool | true | Show event image |
showPrices | bool | true | Show ticket prices |