ver. 0.285: Tpl → Shared\Tpl namespace, CurlServer removal, thumb.php fix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 00:13:59 +01:00
parent fc7d18123d
commit 28b30c1e56
144 changed files with 385 additions and 285 deletions

View File

@@ -190,7 +190,7 @@ class ShopProductController
'shop-product/products-list-custom-script'
);
return \Tpl::view( 'shop-product/products-list', [
return \Shared\Tpl\Tpl::view( 'shop-product/products-list', [
'viewModel' => $viewModel,
'apilo_enabled' => $apiloEnabled,
'shoppro_enabled' => $shopproEnabled,
@@ -230,7 +230,7 @@ class ShopProductController
$product, $languages, $categories, $layouts, $products, $sets, $producers, $units, $dlang
);
return \Tpl::view( 'shop-product/product-edit', [
return \Shared\Tpl\Tpl::view( 'shop-product/product-edit', [
'form' => $viewModel,
'product' => $product,
'user' => $user,
@@ -600,7 +600,7 @@ class ShopProductController
$html .= '<input type="checkbox" class="g-checkbox" name="categories[]" value="' . $catId . '"' . ( $checked ? ' checked="checked"' : '' ) . ' />';
$html .= '<b>' . $catTitle . '</b>';
$html .= '</div>';
$html .= \Tpl::view( 'shop-product/subcategories-list', [
$html .= \Shared\Tpl\Tpl::view( 'shop-product/subcategories-list', [
'categories' => ( new CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $catId ),
'product_categories' => $product['categories'] ?? [],
'dlang' => $dlang,
@@ -949,7 +949,7 @@ class ShopProductController
{
$db = $GLOBALS['mdb'];
return \Tpl::view( 'shop-product/product-combination', [
return \Shared\Tpl\Tpl::view( 'shop-product/product-combination', [
'product' => $this->repository->findForAdmin( (int) \Shared\Helpers\Helpers::get( 'product_id' ) ),
'attributes' => ( new \Domain\Attribute\AttributeRepository( $db ) )->getAttributesListForCombinations(),
'default_language' => $this->languagesRepository->defaultLanguage(),
@@ -1146,7 +1146,7 @@ class ShopProductController
{
$categoryRepository = new CategoryRepository( $GLOBALS['mdb'] );
return \Tpl::view( 'shop-product/mass-edit', [
return \Shared\Tpl\Tpl::view( 'shop-product/mass-edit', [
'products' => $this->repository->allProductsForMassEdit(),
'categories' => $categoryRepository->subcategories( null ),
'dlang' => $this->languagesRepository->defaultLanguage(),