{$_title = "[`Message sources`]"} {if $source_type === 'email'} {$_title = "[`Email`]"} {elseif $source_type === 'im'} {$_title = "[`Messengers`]"} {/if} {function render_sources} {if !empty($sources)} {else} {if $source_type === 'email'}

[`Set up an email address to receive messages and deal requests.`]

{/if} {if $source_type === 'im'}

[`Set up connection to instant messengers to receive deal requests and messages.`]

{/if} {/if} {/function} {function render_plugin_source_links type=''} {foreach $plugins as $plugin} {if $type == $plugin.source.type}
  • {sprintf('[`Add %s source`]', $plugin.name|escape)}
  • {/if} {/foreach} {/function} {function if_no_plugins_of_type type='' if_html='' else_html=''} {$cnt = 0} {foreach $plugins as $plugin} {if $type == $plugin.source.type} {$cnt = $cnt + 1} {/if} {/foreach} {if $cnt > 0}{$if_html}{else}{$else_html}{/if} {/function}

    {$_title}

    {render_sources} {if $source_type === 'email'} {capture assign=links_email} {/capture} {capture assign=single_link_email} [`Add email source`] {/capture} {if_no_plugins_of_type type=crmSourceModel::TYPE_EMAIL if_html=$links_email else_html=$single_link_email} {$_cli_ok = crmEmailSourceWorker::isCliOk()} {if !$_cli_ok}
    {include file="./SettingsCronEmailSource.inc.html" inline}
    {/if} {/if} {if $source_type === 'im'} {capture assign=links} {/capture} {capture assign=help} {/capture} {if_no_plugins_of_type type=crmSourceModel::TYPE_IM if_html=$links else_html=$help} {/if}