{$_sprite_url = "`$wa_url`wa-apps/shop/img/backend/products/product/icons.svg?v=`$wa->version()`"} {$_category_types = [ [ "name" => _w("Static"), "value" => "0", "icon_html" => "" ], [ "name" => _w("Dynamic"), "value" => "1", "icon_html" => "" ] ]} {$_header_columns = [ "name" => [ "id" => "name", "name" => _w("Category name"), "width_locked" => false, "min_width" => 350, "width" => null ], "count" => [ "id" => "count", "name" => _w("Products"), "width_locked" => false, "min_width" => 70, "width" => null ], "sort" => [ "id" => "sort", "name" => _w("Sort order in storefront"), "width_locked" => true, "min_width" => null, "width" => null ], "filters" => [ "id" => "filters", "name" => _w("Filtering in storefront"), "width_locked" => true, "min_width" => 220, "width" => null ], "stores" => [ "id" => "stores", "name" => _w("Availability in the storefront"), "disabled" => true, "width_locked" => true, "min_width" => null, "width" => null ] ]} {* КОМПОНЕНТЫ *} {$_components = []} {capture assign="_component_categories"}
{* HEADER *}
{* LIST *}
{/capture} {$_components["component-categories"] = $_component_categories|strip} {capture assign="_component_categories_header_column"}
{ { column.name } }
{/capture} {$_components["component-categories-header-column"] = $_component_categories_header_column|strip} {capture assign="_component_category"}
{if $wa->userRights('setscategories')}
{/if}
{*
*} {if $wa->userRights('setscategories')}
{/if}
{/capture} {$_components["component-category"] = $_component_category|strip} {capture assign="_component_category_sorting"}
{/capture} {$_components["component-category-sorting"] = $_component_category_sorting|strip} {capture assign="_component_category_filters"}
{/capture} {$_components["component-category-filters"] = $_component_category_filters|strip} {capture assign="_component_dropdown_storefronts"}
{/capture} {$_components["component-dropdown-storefronts"] = $_component_dropdown_storefronts|strip} {capture assign="_component_search_categories"}
{/capture} {$_components["component-search-categories"] = $_component_search_categories|strip} {capture assign="_component_dropdown_categories_sorting"}
{/capture} {$_components["component-dropdown-categories-sorting"] = $_component_dropdown_categories_sorting|strip} {* ШАБЛОНЫ *} {$_templates = []} {capture assign="_dialog_category_clone"}{include file="./dialogs/categories.category.clone.html" inline}{/capture} {$_templates["dialog-category-clone"] = $_dialog_category_clone|strip} {capture assign="_dialog_category_view"}{include file="./dialogs/categories.category.storefronts.html" inline}{/capture} {$_templates["dialog-category-view"] = $_dialog_category_view|strip} {capture assign="_categories_sort_confirm"}{include file="./dialogs/categories.sort_confirm.html" inline}{/capture} {$_templates["categories-sort-confirm"] = $_categories_sort_confirm} {* ПОДСКАЗКИ *} {$_tooltips = [ "category_edit" => [ "id" => "category_edit", "html" => _w("Edit category settings"), "position" => "top-right", "class" => "inline" ], "category_link" => [ "id" => "category_link", "html" => _w("View category page in the storefront"), "position" => "top-right", "class" => "inline" ], "category_delete" => [ "id" => "category_delete", "html" => _w("Delete category"), "position" => "top-right", "class" => "inline" ] ]} {* ЛОКАЛИЗАЦИЯ *} {$_locales = [ "warn" => sprintf("%s%s", _w("Warning"), "!") ]} {* template will update components array *} {include file="./components/main.html" scope="parent" inline} {include file="./components/products/empty_content.html" scope="parent" inline}