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

@@ -6,7 +6,7 @@ class Search implements \ArrayAccess
{
static public function simple_form()
{
return \Tpl::view( 'shop-search/simple-form' );
return \Shared\Tpl\Tpl::view( 'shop-search/simple-form' );
}
static public function search_results()
@@ -17,14 +17,14 @@ class Search implements \ArrayAccess
$results = \shop\Product::searchProductsByName( \Shared\Helpers\Helpers::get( 'query' ), $lang_id, (int)$bs );
$out = \Tpl::view( 'shop-search/products', [
$out = \Shared\Tpl\Tpl::view( 'shop-search/products', [
'query' => \Shared\Helpers\Helpers::get( 'query' ),
'products' => $results['products']
]);
if ( $results['ls'] > 1 )
{
$tpl = new \Tpl;
$tpl = new \Shared\Tpl\Tpl;
$tpl -> ls = $results['ls'];
$tpl -> bs = $bs ? $bs : 1;
$tpl -> link = 'wyszukiwarka/' . \Shared\Helpers\Helpers::get( 'query' );
@@ -40,7 +40,7 @@ class Search implements \ArrayAccess
$results = \shop\Product::searchProductByNameAjax( \Shared\Helpers\Helpers::get( 'query' ), $lang_id );
if ( \Shared\Helpers\Helpers::is_array_fix( $results ) ) foreach ( $results as $row )
$products[] = \Tpl::view( 'shop-search/product-search', [
$products[] = \Shared\Tpl\Tpl::view( 'shop-search/product-search', [
'product' => Product::getFromCache( $row['product_id'], $lang_id )
] );