Update phonebook.xml

This commit is contained in:
FusionPBX 2019-10-06 11:30:13 -06:00 committed by GitHub
parent 534df73ac7
commit 0eeae9894b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<PhoneDirectory> <PhoneDirectory>
{foreach $contacts as $row} {foreach $contacts as $row}
{if $smarty.get.contacts == "users" && $row.category == "users"} {if $row.category == "users"}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> <Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
@ -17,7 +17,7 @@
{/if} {/if}
{/foreach} {/foreach}
</DirectoryEntry> </DirectoryEntry>
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"} {elseif $row.category == "groups"}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> <Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
@ -33,7 +33,7 @@
{/if} {/if}
{/foreach} {/foreach}
</DirectoryEntry> </DirectoryEntry>
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"} {elseif $row.category == "extensions"}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> <Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
@ -46,7 +46,7 @@
<Telephone>{$row.phone_extension}</Telephone> <Telephone>{$row.phone_extension}</Telephone>
{/if} {/if}
</DirectoryEntry> </DirectoryEntry>
{elseif $smarty.get.contacts == "all"} {else}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> <Name>{$row.contact_name_given} {$row.contact_name_family}</Name>