Попробуй:
PHP:
<div class='header'>Ближайшие события</div>
{* NO EVENTS AT ALL *}
{if $events|@count == 0}
<br>
<table cellpadding='0' cellspacing='0' align='center'>
<tr>
<td class='result'>
<img src='./images/icons/bulb16.gif' border='0' class='icon' />
{lang_print id=3000214}
</td>
</tr>
</table>
{/if}
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 2}
<div class='event_pages_top'>
{if $p != 1}<a href='browse_events.php?s={$s}&v={$v}&eventcat_id={$eventcat_id}&p={math equation="p-1" p=$p}'>« {lang_print id=182}</a>{else}« {lang_print id=182}{/if}
|
{if $p_start == $p_end}
<b>{lang_sprintf id=184 1=$p_start 2=$total_events}</b>
{else}
<b>{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_events}</b>
{/if}
|
{if $p != $maxpage}<a href='browse_events.php?s={$s}&v={$v}&eventcat_id={$eventcat_id}&p={math equation="p+1" p=$p}'>{lang_print id=183} »</a>{else}{lang_print id=183} »{/if}
</div>
{/if}
{section name=event_loop loop=$events}
<div style='solid #CCCCCC; float: left;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
<img class='photo' src='{$events[event_loop].event->event_photo("./images/nophoto.gif", TRUE)}' border='0' width='200' height='200' /><br />
<div style='font-weight: bold; font-size: 10pt;'>
<a href='event.php?event_id={$events[event_loop].event->event_info.event_id}'>
{$events[event_loop].event->event_info.event_title}
</a>
</div>
<div style='color: #777777; font-size: 7pt; margin-bottom: 2px;'>
{* NO END DATE *}
{if !$events[event_loop].event->event_info.event_date_end}
{lang_sprintf id=3000203 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start)}
{* SAME-DAY EVENT *}
{elseif $datetime->cdate("F j, Y", $event_date_start)==$datetime->cdate("F j, Y", $event_date_end)}
{lang_sprintf id=3000202 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start) 3=$datetime->cdate($setting.setting_timeformat, $event_date_end)}
{* MULTI-DAY EVENT *}
{else}
{lang_sprintf id=3000204 1=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_start) 2=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_end)}
{/if}
</div>
<div style='color: #777777; font-size: 7pt; margin-bottom: 5px;'>
{assign var=event_date_start value=$datetime->timezone($events[event_loop].event->event_info.event_date_start, $global_timezone)}
{assign var=event_date_end value=$datetime->timezone($events[event_loop].event->event_info.event_date_end, $global_timezone)}
{assign var='event_dateupdated' value=$datetime->time_since($events[event_loop].event->event_info.event_dateupdated)}{capture assign="updated"}{lang_sprintf id=$event_dateupdated[0] 1=$event_dateupdated[1]}{/capture}
{lang_sprintf id=3000215 1=$events[event_loop].num_members}
</div>
</td>
<td style='horizontal-align: left; padding-left: 10px;'>
</td>
</tr>
</table>
</div>
{cycle values=",<div style='clear: both; height: 10px;'></div>"}
{/section}