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:
@@ -60,7 +60,7 @@ class Site
|
||||
$html = str_replace( '[BANER_STRONA_GLOWNA]', \front\Views\Banners::mainBanner( $bannerRepo->mainBanner( $lang_id ) ), $html );
|
||||
$html = str_replace( '[BANERY]', \front\Views\Banners::banners( $bannerRepo->banners( $lang_id ) ), $html );
|
||||
|
||||
$html = str_replace( '[KATEGORIE]', \Tpl::view( 'shop-category/categories', [
|
||||
$html = str_replace( '[KATEGORIE]', \Shared\Tpl\Tpl::view( 'shop-category/categories', [
|
||||
'level' => $level,
|
||||
'current_category' => \Shared\Helpers\Helpers::get( 'category' ),
|
||||
'categories' => \front\factory\ShopCategory::categories_details()
|
||||
@@ -76,7 +76,7 @@ class Site
|
||||
$products_promoted_tmp[1] ? $pattern = '[PROMOWANE_PRODUKTY:' . $products_promoted_tmp[1] . ']' : $pattern = '[PROMOWANE_PRODUKTY]';
|
||||
|
||||
$html = str_replace( $pattern,
|
||||
\Tpl::view( 'shop-product/promoted-products', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-product/promoted-products', [
|
||||
'products' => \front\factory\ShopProduct::promoted_products( $limit )
|
||||
] ),
|
||||
$html
|
||||
@@ -99,7 +99,7 @@ class Site
|
||||
}
|
||||
|
||||
$html = str_replace( '[KOSZYK]',
|
||||
\Tpl::view( 'shop-basket/basket-mini', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-basket/basket-mini', [
|
||||
'basket' => \Shared\Helpers\Helpers::get_session( 'basket' ),
|
||||
'lang_id' => $lang_id,
|
||||
'coupon' => \Shared\Helpers\Helpers::get_session( 'coupon' )
|
||||
@@ -129,7 +129,7 @@ class Site
|
||||
$menu_tmp = explode( ':', $menu_tmp );
|
||||
$html = str_replace(
|
||||
'[MENU_GLOWNE:' . $menu_tmp[1] . ']',
|
||||
\Tpl::view( 'menu/main-menu', [
|
||||
\Shared\Tpl\Tpl::view( 'menu/main-menu', [
|
||||
'menu' => \front\factory\Menu::menu_details( $menu_tmp[1] )
|
||||
] ),
|
||||
$html );
|
||||
@@ -237,7 +237,7 @@ class Site
|
||||
$single_product = explode( ':', $single_product );
|
||||
$html = str_replace(
|
||||
'[PRODUKT:' . $single_product[1] . ']',
|
||||
\Tpl::view( 'shop-product/product-mini', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-product/product-mini', [
|
||||
'product' => \shop\Product::getFromCache( (int)$single_product[1], $lang_id )
|
||||
] ),
|
||||
$html
|
||||
@@ -259,7 +259,7 @@ class Site
|
||||
|
||||
$html = str_replace(
|
||||
'[PRODUKTY_BOX:' . $products_box[1] . ']',
|
||||
\Tpl::view( 'shop-product/products-box', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-product/products-box', [
|
||||
'products' => $products
|
||||
] ),
|
||||
$html
|
||||
@@ -287,7 +287,7 @@ class Site
|
||||
}
|
||||
|
||||
$html = str_replace( $pattern,
|
||||
\Tpl::view( 'shop-product/products-top', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-product/products-top', [
|
||||
'products' => $top_products_arr,
|
||||
] ),
|
||||
$html
|
||||
@@ -316,7 +316,7 @@ class Site
|
||||
}
|
||||
|
||||
$html = str_replace( $pattern,
|
||||
\Tpl::view( 'shop-product/products-new', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-product/products-new', [
|
||||
'products' => $top_products_arr,
|
||||
] ),
|
||||
$html
|
||||
@@ -377,7 +377,7 @@ class Site
|
||||
|
||||
$html = str_replace(
|
||||
$pattern,
|
||||
\Tpl::view( 'shop-category/blog-category-products', [
|
||||
\Shared\Tpl\Tpl::view( 'shop-category/blog-category-products', [
|
||||
'products' => \front\factory\ShopCategory::blog_category_products( $category_list_tmp[1], $lang_id, $products_limit )
|
||||
] ),
|
||||
$html );
|
||||
@@ -421,14 +421,14 @@ class Site
|
||||
|
||||
public static function facebook( $facebook_link )
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
$tpl = new \Shared\Tpl\Tpl;
|
||||
$tpl -> facebook_link = $facebook_link;
|
||||
return $tpl -> render( 'site/facebook' );
|
||||
}
|
||||
|
||||
static public function title( $title, $show_title, $page_title )
|
||||
{
|
||||
return \Tpl::view( 'site/title', [
|
||||
return \Shared\Tpl\Tpl::view( 'site/title', [
|
||||
'title' => $title,
|
||||
'page_title' => $page_title,
|
||||
'show_title' => $show_title
|
||||
@@ -441,7 +441,7 @@ class Site
|
||||
{
|
||||
\Shared\Helpers\Helpers::delete_session( 'alert' );
|
||||
|
||||
return $tpl = \Tpl::view( 'site/alert', [
|
||||
return $tpl = \Shared\Tpl\Tpl::view( 'site/alert', [
|
||||
'alert' => $alert
|
||||
] );
|
||||
}
|
||||
@@ -450,7 +450,7 @@ class Site
|
||||
{
|
||||
\Shared\Helpers\Helpers::delete_session( 'error' );
|
||||
|
||||
$tpl = new \Tpl;
|
||||
$tpl = new \Shared\Tpl\Tpl;
|
||||
$tpl -> error = $error;
|
||||
return $tpl -> render( 'site/error' );
|
||||
}
|
||||
@@ -458,19 +458,19 @@ class Site
|
||||
|
||||
public static function copyright()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
$tpl = new \Shared\Tpl\Tpl;
|
||||
return $tpl -> render( 'site/copyright' );
|
||||
}
|
||||
|
||||
public static function contact()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
$tpl = new \Shared\Tpl\Tpl;
|
||||
return $tpl -> render( 'site/contact' );
|
||||
}
|
||||
|
||||
public static function cookie_information()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
$tpl = new \Shared\Tpl\Tpl;
|
||||
return $tpl -> render( 'site/cookie-information' );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user