Styling events list widget
-
Hi,
i would like to manage every singular
list element of the widget events list.i have this code:
$events = EM_Events::get(apply_filters('em_widget_events_get_args',$instance)); echo "<ul>"; $li_wrap = !preg_match('/^<li>/i', trim($instance['format'])); if ( count($events) > 0 ){ foreach($events as $event){ if( $li_wrap ){ echo '<li>'. $event->output($instance['format']) .'</li>'; }else{ echo $event->output($instance['format']); } } }else{ echo '<li>'.$instance['no_events_text'].'</li>'; }
This line
echo '<li>'. $event->output($instance['format']) .'</li>';
is the interested element… This generates this:
<ul> <li>date format</li> <li>place</li> </ul>
How can i style these elements individually?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Styling events list widget’ is closed to new replies.