{if !$is_api_key_ok} {if $api_token_error}

{$api_token_error}

{/if}

[s`A OneSignal account is required to notify backend users.`]

{sprintf_wp("Please sign up at %s and copy Organization ID and Organization API Key from Organization Keys & IDs page.", 'onesignal.com')}

{else}

{sprintf( '[s`Add an Organization API Key on the <%s>Organization › Keys & IDs<%s> page.`]', 'em class="nowrap"', '/em' )}

[s`Each domain used by your teammates has to be configured separately in OneSignal account.`]

{$_cnt = 0} {foreach $domains as $d} whichUI() == '1.3'} style="color: black;"{else} class="black"{/if}>{$d.name|escape} {if $d.connected} {$_cnt =+ 1} {if empty($d.api_key)} {else} whichUI() == '1.3'} style="color: green;"{else} class="state-success"{/if}>[`Connected`] {/if} {else} {/if} {/foreach}
[`API Key not set.`] {if $wa->whichUI() == '1.3'} [s`Connect`] {else} {/if}

[s`To add a different domain, sign into your Webasyst account on that domain.`]

{if $_cnt > 0}
[s`Apps API auth keys`]
{/if}
{/if}