when you say “get a list of attributes as array”, did you mean the custom event attribute?
if you mean the #_ATT attributes:
$EM_Event->event_attributes
hope that helps!
Thread Starter
scharc
(@scharc)
oke I see i wasnt clear
I am writing my own format for the events-list.php
this is for every event in the loop:
ob_start();
?>
<tr style="border-bottom: 1px solid white; cursor: pointer;" onclick= "document.location.href='#_EVENTURL'">
<td style="width:70px; padding: 0 10px;">
#_EVENTIMAGE{50,50}
</td>
<td style="padding: 10px 0;">
<h3>#_EVENTLINK</h3>
<strong>#j. #F - #_24HSTARTTIME Uhr | #_LOCATIONLINK, #_LOCATIONTOWN</strong>
</td>
</tr>
<?php
$args['format'] = ob_get_clean();
and i want to extend the <tr> tag with classes to hide / show them with javascript … this classes should be attributes of the event,
eg. the location-name (location-slug) and the categories of the event
<tr style="border-bottom: 1px solid white; cursor: pointer;" onclick= "document.location.href='#_EVENTURL'" class="90s-party dance party locationname ">
maybe you can use EM_EVENT::get($args)
e.g.
$events = EM_Events::get(array('scope' => 'future'));
foreach($events as $EM_event) {
/*..add your formats...*/
echo '<tr>';
echo '<td class="'.$EM_Event->event_slug.'">'.$EM_Event->output('#_EVENTNAME').'</td>';
echo '</tr>';
}