{* * Default template for $wa->contactProfileSidebar() helper. * * Can be copied for customization to * wa-config/apps/webasyst/ProfileSidebar.html *} {if $is_profile_sidebar} {$widget_path = "`$app_path`/templates/actions/profile/sidebarWidgets/Calendar.html"} {$schedule_path = "`$app_path`/templates/actions/schedule/Schedule.inc.html"}
[`Calendar`]
{if file_exists($widget_path)} {include file=$widget_path inline} {/if} {if file_exists($schedule_path) && !$is_profile_drawer} {/if}
{foreach $sections as $section_id => $section} {if $section_id !== 'stats'}{continue}{/if}
{$section.title} {if !empty($section.count)} {$section.count} {/if} {if !empty($section.html)} {$section.html} {/if}
{/foreach} {foreach $sections as $section_id => $section} {if $section_id === 'stats' || $section_id === 'access'}{continue}{/if}
{$section.title} {if !empty($section.count)} {$section.count} {/if} {if !empty($section.html)} {$section.html} {/if}
{/foreach} {else} {$section_id = $options.sectionId|default:''} {if $section_id && isset($sections[$section_id])} {$section = $sections[$section_id]} {$section_url = $section.url|default:''}
{strip} {* strip need for js *} {/strip} {/if} {/if}