Files
shopPRO/autoload/admin/view/class.ShopCategory.php
2024-10-23 13:44:50 +02:00

22 lines
558 B
PHP

<?php
namespace admin\view;
class ShopCategory
{
public static function category_edit( $category, $pid = '', $languages )
{
$tpl = new \Tpl;
$tpl -> languages = $languages;
$tpl -> pid = $pid;
$tpl -> category = $category;
return $tpl -> render( 'shop-category/category-edit' );
}
public static function subcategories_list( $categories_list, $level )
{
$tpl = new \Tpl;
$tpl -> level = $level;
$tpl -> categories = $categories_list;
return $tpl -> render( 'shop-category/subcategories-list' );
}
}