{{if $activity instanceof \IPS\calendar\Event\Comment or $activity instanceof \IPS\calendar\Event\Review}} {{$item = $activity->item();}} {{else}} {{$item = $activity;}} {{endif}}
{{$date = ( $item->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' ) == NULL ) ? $item->lastOccurrence() : $item->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' );}}
{{if $activity instanceof \IPS\calendar\Event\Comment or $activity instanceof \IPS\calendar\Event\Review}} {{if $activity instanceof \IPS\calendar\Event\Review}} {template="rating" group="global" location="front" app="core" params="'large', $activity->mapped('rating'), \IPS\Settings::i()->reviews_rating_out_of"} {{endif}}
{$activity->truncated()|raw}
    {{if $activity instanceof \IPS\calendar\Event\Review}}
  • {lang="x_members_found_helpful" sprintf="$activity->mapped('votes_helpful'), \IPS\Member::loggedIn()->language()->pluralize( \IPS\Member::loggedIn()->language()->get( 'x_members' ), array( $activity->mapped('votes_total') ) )"}
  • {{endif}} {{if $type != 'search' and $activity instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
  • {template="reputationMini" group="global" app="core" params="$activity, '', NULL, TRUE"}
  • {{endif}}
{{else}} {{if $type != 'search'}}{$activity->mapped('title')}{{endif}}

{{if $item->_end_date}} {lang="until"} {{endif}}

{$activity->truncated()|raw}
    {{if $item->container()->allow_comments}}
  • {lang="num_comments" pluralize="$activity->comments"}
  • {{endif}} {{if $item->container()->allow_reviews}}
  • {lang="num_reviews" pluralize="$activity->reviews"} {{if $activity->reviews > 0}}  {template="rating" group="global" location="front" app="core" params="'tiny', $item->rating, \IPS\Settings::i()->reviews_rating_out_of"}{{endif}}
  • {{endif}} {{if $type != 'search' and $item instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
  • {template="reputationMini" group="global" app="core" params="$activity, '', NULL, TRUE"}
  • {{endif}}
{{endif}}