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:
@@ -169,7 +169,7 @@ class Order implements \ArrayAccess
|
||||
$order = \front\factory\ShopOrder::order_details( $this -> id );
|
||||
$coupon = (int)$order['coupon_id'] ? new \shop\Coupon( (int)$order['coupon_id'] ) : null;
|
||||
|
||||
$mail_order = \Tpl::view( 'shop-order/mail-summary', [
|
||||
$mail_order = \Shared\Tpl\Tpl::view( 'shop-order/mail-summary', [
|
||||
'settings' => $settings,
|
||||
'order' => $order,
|
||||
'coupon' => $coupon,
|
||||
|
||||
@@ -348,7 +348,7 @@ class Product implements \ArrayAccess
|
||||
$products = array_diff( $products, [ $product_id ] );
|
||||
}
|
||||
|
||||
return \Tpl::view( 'shop-basket/alert-product-sets', [
|
||||
return \Shared\Tpl\Tpl::view( 'shop-basket/alert-product-sets', [
|
||||
'products' => $products
|
||||
] );
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user