{if !empty($reminders)} {$_reminder_types = crmConfig::getReminderType()} {foreach $reminders as $_reminder} {$_is_deal = ( $_reminder.contact_id < 0 )} {if !empty($_reminder.type) && !empty($_reminder_types[$_reminder.type])} {$_active_reminder_type = $_reminder_types[$_reminder.type]} {/if} {capture assign="_header"}{strip} {if $_reminder.type !== "OTHER" && !empty($_active_reminder_type)} {strip} {if !empty($_active_reminder_type.icon)}{/if} {$_active_reminder_type.name|escape} {/strip} {/if} {if $_is_deal} {$_deal_id = abs($_reminder.contact_id)} {if !empty($deals[$_deal_id])} {$_deal = $deals[$_deal_id]} {if !empty($contacts[$_deal.contact_id])} {$_user = $contacts[$_deal.contact_id]} {$_userpic = $_user->getPhoto(16)} {/if} {if !empty($_userpic)} {/if} {$_deal.name|escape} {/if} {else} {$_user = false} {if !empty($contacts[$_reminder.contact_id])} {$_user = $contacts[$_reminder.contact_id]} {/if} {if $_user} {$_userpic = $_user->getPhoto(16)} {if !empty($_userpic)} {/if} {$_user.name|escape} {/if} {/if} {/strip}{/capture}