{***********************************}
{******* $name must be set!! *******}
{******* $control must be set!! *******}

{if !$id}
	{assign var=id value=".:id:."}
{/if}

<select
	type="{$name}"
	name="{$control}{$id}[{$name}]"
	id="{$name}"
>
	{foreach from=\App\Utils\FopManager\Installer::getInstance()->getAvailableFontIds() item=item key=key}
		<option
			value="{$key}"
			{if $data[$name]==$key}
				selected="selected"
			{/if}
			>{$item}</option>
	{/foreach}
</select>