Update {$mac}.cfg (#5435)

side keys, function keys, and soft keys updated
This commit is contained in:
chansizzle
2020-09-02 16:15:22 -06:00
committed by GitHub
parent 5a76e296c6
commit 8c6ca952f9

View File

@@ -3920,69 +3920,18 @@
<Title></Title>
<ICON>Green</ICON>
</SidekeyConfig1>
{strip}{*-- Each Internal Index contains 12 keys --*}{/strip}
<internal index="1">
<dssSide index="1">
{foreach $keys["line"] as $row}
{if $row.device_key_id <= 12}
<Fkey index="{$row.device_key_id}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
<ICON>{$row.device_key_icon}</ICON>
</Fkey>
{/if}
<Fkey index="{$row.device_key_id}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
<ICON>{$row.device_key_icon}</ICON>
</Fkey>
{/foreach}
</internal>
<internal index="2">
{foreach $keys["line"] as $row}
{if $row.device_key_id > 12 && $row.device_key_id <= 24}
<Fkey index="{$row.device_key_id-12}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
<ICON>{$row.device_key_icon}</ICON>
</Fkey>
{/if}
{/foreach}
</internal>
<internal index="3">
{foreach $keys["line"] as $row}
{if $row.device_key_id > 24 && $row.device_key_id <= 36}
<Fkey index="{$row.device_key_id-24}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
<ICON>{$row.device_key_icon}</ICON>
</Fkey>
{/if}
{/foreach}
</internal>
<internal index="4">
{foreach $keys["line"] as $row}
{if $row.device_key_id > 36 && $row.device_key_id <= 48}
<Fkey index="{$row.device_key_id-36}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
<ICON>{$row.device_key_icon}</ICON>
</Fkey>
{/if}
{/foreach}
</internal>
<internal index="5">
{foreach $keys["line"] as $row}
{if $row.device_key_id > 48 && $row.device_key_id <= 60}
<Fkey index="{$row.device_key_id-48}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
<ICON>{$row.device_key_icon}</ICON>
</Fkey>
{/if}
{/foreach}
</internal>
</dssSide>
{strip}{*-- Each Internal Index contains 12 keys --*}{/strip}
<internal index="1">
{foreach $keys["memory"] as $row}
{if $row.device_key_id <= 12}
@@ -4018,7 +3967,7 @@
</Fkey>
{/if}
{/foreach}
</internal>
</internal>
<internal index="4">
{foreach $keys["memory"] as $row}
{if $row.device_key_id > 36 && $row.device_key_id <= 48}
@@ -4042,71 +3991,14 @@
</Fkey>
{/if}
{/foreach}
</internal>
{foreach $keys["programmable"] as $row}
<dssSoft index="{$row.device_key_id}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
</dssSoft>
{/foreach}
{strip}{*-- Each External Index contains 20 keys --*}{/strip}
<external index="1">
{foreach $keys["expansion"] as $row}
{if $row.device_key_id < 20}
<exKey index="{$row.device_key_id}">
<Type>0</Type>
<Value>{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}</Value>
<Title>{$row.device_key_label}</Title>
</exKey>
{/if}
{/foreach}
</external>
<external index="2">
{foreach $keys["expansion"] as $row}
{if $row.device_key_id > 19 && $row.device_key_id < 40}
<exKey index="{$row.device_key_id}">
<Type>0</Type>
<Value>{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}</Value>
<Title>{$row.device_key_label}</Title>
</exKey>
{/if}
{/foreach}
</external>
<external index="3">
{foreach $keys["expansion"] as $row}
{if $row.device_key_id > 39 && $row.device_key_id < 60}
<exKey index="{$row.device_key_id}">
<Type>0</Type>
<Value>{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}</Value>
<Title>{$row.device_key_label}</Title>
</exKey>
{/if}
{/foreach}
</external>
<external index="4">
{foreach $keys["expansion"] as $row}
{if $row.device_key_id > 59 && $row.device_key_id < 80}
<exKey index="{$row.device_key_id}">
<Type>0</Type>
<Value>{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}</Value>
<Title>{$row.device_key_label}</Title>
</exKey>
{/if}
{/foreach}
</external>
<external index="5">
{foreach $keys["expansion"] as $row}
{if $row.device_key_id > 79 && $row.device_key_id < 100}
<exKey index="{$row.device_key_id}">
<Type>0</Type>
<Value>{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}</Value>
<Title>{$row.device_key_label}</Title>
</exKey>
{/if}
{/foreach}
</external>
</internal>
{foreach $keys["programmable"] as $row}
<dssSoft index="{$row.device_key_id}">
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
</dssSoft>
{/foreach}
</dsskey>
<web>
<WebServerType>0</WebServerType>