{* $Id$ *} {if $prefs.feature_categories eq 'y' and $tiki_p_modify_object_categories eq 'y' and (count($categories) gt 0 or $tiki_p_admin_categories eq 'y')} {if !isset($labelcol)} {$labelcol = '4'} {/if} {if !isset($inputcol)} {if !isset($notable) || $notable neq 'y'} {$inputcol = '8'} {else} {$inputcol = '12'} {/if} {/if} {if !isset($notable) || $notable neq 'y'}
{button href="#" _flip_id='categorizator' _class='btn btn-primary btn-sm tips' _text="{tr}Select Categories{/tr}" _flip_default_open='n'}
{/if} {if !isset($notable) || $notable neq 'y'}
{/if} {if $mandatory_category >= 0 or $prefs.javascript_enabled neq 'y' or (isset($auto) and $auto eq 'y')}
 
{else} {if !isset($notable) || $notable neq 'y'}
 
{/if}
{/if}
{if count($categories) gt 0} {$cat_tree}
{if $tiki_p_admin_categories eq 'y'} {/if} {select_all checkbox_names='cat_categories[]' label="{tr}Select/deselect all categories{/tr}"}
{* end .clear *} {else}
{if $tiki_p_admin_categories eq 'y'} {/if}
{* end .clear *} {tr}No categories defined{/tr} {/if}
{* end #multiselect *}
{* end #categorizator *} {if !isset($notable) || $notable neq 'y'}
{* end .mb-3 *} {/if} {/if} {if $prefs.feature_theme_control_autocategorize eq 'y'} {jq} if ('{{$smarty.session.tc_theme_cat}}') { if ($('.tree ul[data-id="{{$prefs.feature_theme_control_parentcategory}}"] input[type=checkbox]:checked').length == 0) { $('#categ-{{$smarty.session.tc_theme_cat}}').prop("checked", true); } } {/jq} {/if}