{* * 2007-2017 Amazzing * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * * @author Amazzing * @copyright 2007-2017 Amazzing * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * *} {function renderCategoryLevel} {foreach $categories as $c} {if !empty($sorted_categories[$c.id_category])}{$children = $sorted_categories[$c.id_category]}{else}{$children = []}{/if}
{$is_checked = isset($checked[$c.id_category])}
{if $type == 'radio' || $type == 'checkbox'} {/if} {if $type == 'full'} {/if}
{renderCategoryLevel categories = $children}
{/foreach} {/function} {function renderCategorySelectorLevel} {foreach $categories as $c} {if !empty($sorted_categories[$c.id_category])} {renderCategorySelectorLevel categories = $sorted_categories[$c.id_category]} {/if} {/foreach} {/function} {if $type == 'select'} {else} {if !empty($post_categories)}
{* filled dynamically *}{* filled dynamically *} {* currently not required *}
{/if} {renderCategoryLevel categories = $sorted_categories[0]} {/if} {* since 1.3.0 *}