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

@@ -4,7 +4,7 @@ class ShopCategory
{
static public function category_description( $category )
{
return \Tpl::view( 'shop-category/category-description', [
return \Shared\Tpl\Tpl::view( 'shop-category/category-description', [
'category' => $category
] );
}
@@ -19,7 +19,7 @@ class ShopCategory
if ( $results['ls'] > 1 )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> ls = $results['ls'];
$tpl -> bs = $bs ? $bs : 1;
$tpl -> page = $page;
@@ -27,7 +27,7 @@ class ShopCategory
$pager = $tpl -> render( 'site/pager' );
}
return \Tpl::view( 'shop-category/category', [
return \Shared\Tpl\Tpl::view( 'shop-category/category', [
'category' => $category,
'products' => $results['products'],
'pager' => $pager,
@@ -37,7 +37,7 @@ class ShopCategory
}
$products_count = \front\factory\ShopCategory::category_products_count( $category, $lang_id );
return \Tpl::view( 'shop-category/category-infinitescroll', [
return \Shared\Tpl\Tpl::view( 'shop-category/category-infinitescroll', [
'category' => $category,
'products_count' => $products_count,
'category_description' => (int)$bs <= 1 ? true : false,
@@ -47,7 +47,7 @@ class ShopCategory
public static function categories( $categories, $current_category = 0, $level = 0 )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> level = $level;
$tpl -> current_category = $current_category;
$tpl -> categories = $categories;