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 6922b66eed
commit d2c9d97710
144 changed files with 385 additions and 285 deletions

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Tpl::view('articles/article-edit-custom-script', [
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('articles/article-edit-custom-script', [
'article' => $this->article,
'user' => $this->user,
'languages' => $this->form->languages ?? []

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?php if (!empty($this->viewModel->customScriptView)): ?>
<?= \Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?php endif; ?>

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?php if (!empty($this->viewModel->customScriptView)): ?>
<?= \Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?php endif; ?>

View File

@@ -9,7 +9,7 @@
<input type="checkbox" class="g-checkbox" name="pages[]" id="article_page_<?= $page['id'];?>" value="<?= $page['id'];?>" <? if ( is_array( $this -> article_pages ) and in_array( $page['id'], $this -> article_pages ) ):?>checked="checked"<? endif;?> />
<label for="article_page_<?= $page['id'];?>" class="mb0"><?= $page['title'];?></label>
</div>
<?= \Tpl::view( 'articles/subpages-list', [
<?= \Shared\Tpl\Tpl::view( 'articles/subpages-list', [
'pages' => $page['subpages'],
'article_pages' => $this->article_pages,
'parent_id' => $page['id'],

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?php if (!empty($this->viewModel->customScriptView)): ?>
<?= \Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?php endif; ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?php if (!empty($this->viewModel->customScriptView)): ?>
<?= \Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?php endif; ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -276,7 +276,7 @@ ob_start();
</button>
Menu: <b><?= $menu['name'];?></b>
</div>
<?= \Tpl::view( 'layouts/subpages-list', [
<?= \Shared\Tpl\Tpl::view( 'layouts/subpages-list', [
'pages' => $menu['pages'],
'layout_pages' => $this -> layout['pages'],
'step' => 1
@@ -302,7 +302,7 @@ ob_start();
<input type="checkbox" class="g-checkbox" name="categories[]" value="<?= $category['id'];?>" <? if ( is_array( $this -> layout['categories'] ) and in_array( $category['id'], $this -> layout['categories'] ) ):?>checked="checked"<? endif;?> />
<b><?= $category['languages'][$this -> dlang]['title'];?></b>
</div>
<?= \Tpl::view( 'layouts/subcategories-list', [
<?= \Shared\Tpl\Tpl::view( 'layouts/subcategories-list', [
'categories' => $category['subcategories'],
'product_categories' => $this -> layout['categories'],
'dlang' => $this -> dlang

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -10,7 +10,7 @@
<input type="checkbox" class="g-checkbox" name="categories[]" value="<?= $category['id'];?>" <? if ( is_array( $this -> product_categories ) and in_array( $category['id'], $this -> product_categories ) ):?>checked="checked"<? endif;?> />
<b><?= $category['languages'][$this -> dlang]['title'];?></b>
</div>
<?= \Tpl::view( 'layouts/subcategories-list', [
<?= \Shared\Tpl\Tpl::view( 'layouts/subcategories-list', [
'categories' => $category['subcategories'],
'product_categories' => $this -> product_categories,
'dlang' => $this -> dlang

View File

@@ -10,7 +10,7 @@
</div>
<?
if ( is_array( $page['subpages'] ) )
echo \Tpl::view( 'layouts/subpages-list', [
echo \Shared\Tpl\Tpl::view( 'layouts/subpages-list', [
'pages' => $page['subpages'],
'layout_pages' => $this -> layout_pages,
'step' => $this -> step + 1

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -20,7 +20,7 @@ foreach ($menus as $menu):
<?php if ($menuStatus !== 1): ?><i class="fa fa-ban fa-lg text-danger" title="Menu nieaktywne"></i><?php endif; ?>
Menu: <b><?= htmlspecialchars($menuName, ENT_QUOTES, 'UTF-8'); ?></b>
</div>
<?= \Tpl::view('pages/subpages-browse-list', [
<?= \Shared\Tpl\Tpl::view('pages/subpages-browse-list', [
'pages' => $menu['pages'] ?? [],
'step' => 1,
]); ?>

View File

@@ -32,7 +32,7 @@ foreach ($menus as $menu):
</a>
</div>
</div>
<?= \Tpl::view('pages/subpages-list', [
<?= \Shared\Tpl\Tpl::view('pages/subpages-list', [
'pages' => $menu['pages'] ?? [],
'step' => 1,
]); ?>

View File

@@ -51,7 +51,7 @@ if (empty($pages)) {
<?php endforeach; ?>
</div>
<?= \Tpl::view('pages/subpages-browse-list', [
<?= \Shared\Tpl\Tpl::view('pages/subpages-browse-list', [
'pages' => $page['subpages'] ?? [],
'step' => $step + 1,
]); ?>

View File

@@ -67,7 +67,7 @@ if (empty($pages)) {
</div>
<?php endif; ?>
</div>
<?= \Tpl::view('pages/subpages-list', [
<?= \Shared\Tpl\Tpl::view('pages/subpages-list', [
'pages' => $page['subpages'] ?? [],
'step' => $step + 1,
]); ?>

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?php if (!empty($this->viewModel->customScriptView)): ?>
<?= \Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view($this->viewModel->customScriptView, ['list' => $this->viewModel]); ?>
<?php endif; ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -38,7 +38,7 @@ if (!empty($values)) {
foreach ($values as $value) {
++$rowCounter;
$rowKey = 'existing-' . (int)($value['id'] ?? 0);
$initialRowsHtml .= \Tpl::view('shop-attribute/_partials/value-row', [
$initialRowsHtml .= \Shared\Tpl\Tpl::view('shop-attribute/_partials/value-row', [
'rowKey' => $rowKey,
'value' => $value,
'languages' => $activeLanguages,
@@ -47,7 +47,7 @@ if (!empty($values)) {
}
} else {
$rowCounter = 1;
$initialRowsHtml .= \Tpl::view('shop-attribute/_partials/value-row', [
$initialRowsHtml .= \Shared\Tpl\Tpl::view('shop-attribute/_partials/value-row', [
'rowKey' => 'new-1',
'value' => ['id' => 0, 'is_default' => 1, 'impact_on_the_price' => null, 'languages' => []],
'languages' => $activeLanguages,
@@ -55,7 +55,7 @@ if (!empty($values)) {
]);
}
$newRowTemplate = \Tpl::view('shop-attribute/_partials/value-row', [
$newRowTemplate = \Shared\Tpl\Tpl::view('shop-attribute/_partials/value-row', [
'rowKey' => '__ROW_KEY__',
'value' => ['id' => 0, 'is_default' => 0, 'impact_on_the_price' => null, 'languages' => []],
'languages' => $activeLanguages,

View File

@@ -28,7 +28,7 @@ ob_start();
</a>
</div>
</div>
<?= \Tpl::view( 'shop-category/subcategories-list', [
<?= \Shared\Tpl\Tpl::view( 'shop-category/subcategories-list', [
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category['id'] ),
'level' => $this -> level + 1,
'dlang' => $this -> dlang
@@ -49,4 +49,4 @@ $gridContent = $out;
$gridPersist = false;
include __DIR__ . '/../components/grid-edit-replacement.php';
?>
<?= \Tpl::view( 'shop-category/categories-list-custom-script' ); ?>
<?= \Shared\Tpl\Tpl::view( 'shop-category/categories-list-custom-script' ); ?>

View File

@@ -18,7 +18,7 @@ ob_start();
</a>
</div>
</div>
<?= \Tpl::view( 'shop-category/subcategory-browse-list', [
<?= \Shared\Tpl\Tpl::view( 'shop-category/subcategory-browse-list', [
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category['id'] ),
'level' => $this -> level + 1,
'dlang' => $this -> dlang
@@ -55,4 +55,4 @@ include __DIR__ . '/../components/grid-edit-replacement.php';
float: none;
}
</style>
<?= \Tpl::view( 'shop-category/category-browse-custom-script' ); ?>
<?= \Shared\Tpl\Tpl::view( 'shop-category/category-browse-custom-script' ); ?>

View File

@@ -190,5 +190,5 @@ $gridPersist = true;
include __DIR__ . '/../components/grid-edit-replacement.php';
?>
<?= \Tpl::view( 'shop-category/category-edit-custom-script' ); ?>
<?= \Shared\Tpl\Tpl::view( 'shop-category/category-edit-custom-script' ); ?>

View File

@@ -27,4 +27,4 @@ $gridContent = $out;
$gridPersist = false;
include __DIR__ . '/../components/grid-edit-replacement.php';
?>
<?= \Tpl::view( 'shop-category/category-products-custom-script', [ 'category_id' => $this -> category_id ] ); ?>
<?= \Shared\Tpl\Tpl::view( 'shop-category/category-products-custom-script', [ 'category_id' => $this -> category_id ] ); ?>

View File

@@ -25,7 +25,7 @@
<? endif;?>
</div>
</div>
<?= \Tpl::view( 'shop-category/subcategories-list', [
<?= \Shared\Tpl\Tpl::view( 'shop-category/subcategories-list', [
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category['id'] ),
'level' => $this -> level + 1,
'dlang' => $this -> dlang

View File

@@ -14,7 +14,7 @@
</a>
</div>
</div>
<?= \Tpl::view( 'shop-category/subcategory-browse-list', [
<?= \Shared\Tpl\Tpl::view( 'shop-category/subcategory-browse-list', [
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category['id'] ),
'level' => $this -> level + 1,
'dlang' => $this -> dlang

View File

@@ -6,4 +6,4 @@
<br />
<?= \Tpl::view('components/table-list', ['list' => $this->ordersTable]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->ordersTable]); ?>

View File

@@ -1,2 +1,2 @@
<div class="site-title">Lista klientów</div>
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -8,7 +8,7 @@ $selectedIds = is_array($this->selectedIds ?? null) ? $this->selectedIds : [];
<label class="col-lg-4 control-label"><?= htmlspecialchars($label, ENT_QUOTES, 'UTF-8'); ?>:</label>
<div class="col-lg-8">
<div class="coupon-categories-box">
<?= \Tpl::view('shop-coupon/coupon-categories-tree', [
<?= \Shared\Tpl\Tpl::view('shop-coupon/coupon-categories-tree', [
'categories' => $categories,
'selectedIds' => $selectedIds,
'inputName' => $inputName,

View File

@@ -55,7 +55,7 @@ foreach ($selectedRaw as $value) {
</div>
<?php if ($hasChildren): ?>
<?= \Tpl::view('shop-coupon/coupon-categories-tree', [
<?= \Shared\Tpl\Tpl::view('shop-coupon/coupon-categories-tree', [
'categories' => $children,
'selectedIds' => array_keys($selected),
'inputName' => $inputName,

View File

@@ -1,3 +1,3 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Tpl::view('shop-coupon/coupon-edit-custom-script'); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('shop-coupon/coupon-edit-custom-script'); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -217,7 +217,7 @@ $orderId = (int)($this -> order['id'] ?? 0);
<?= $this -> order['trustmate_send'] ? 'Odznacz zamówienie jako wysłane do trustmate.io' : 'Zaznacz zamówienie jako wysłane do trustmate.io';?>
</a>
</div>
<?= \Tpl::view('shop-order/order-details-custom-script', [
<?= \Shared\Tpl\Tpl::view('shop-order/order-details-custom-script', [
'order_id' => $orderId,
'trustmate_send' => (int)($this -> order['trustmate_send'] ?? 0),
]);?>

View File

@@ -222,4 +222,4 @@ $orderId = (int)($this -> order['id'] ?? 0);
</div>
<link class="footer" rel="stylesheet" type="text/css" href="https://geowidget.easypack24.net/css/easypack.css">
<script class="footer" type="text/javascript" src="https://geowidget.easypack24.net/js/sdk-for-javascript.js"></script>
<?= \Tpl::view('shop-order/order-edit-custom-script');?>
<?= \Shared\Tpl\Tpl::view('shop-order/order-edit-custom-script');?>

View File

@@ -1,2 +1,2 @@
<div class="site-title">Lista zamówień</div>
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Tpl::view('shop-product-sets/product-set-edit-custom-script'); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('shop-product-sets/product-set-edit-custom-script'); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -96,7 +96,7 @@
<input type="checkbox" class="g-checkbox" name="mass_categories[]" value="<?= $category['id']; ?>" />
<b><?= $category['languages'][$this->dlang]['title']; ?></b>
</div>
<?= \Tpl::view( 'shop-product/subcategories-list', [
<?= \Shared\Tpl\Tpl::view( 'shop-product/subcategories-list', [
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category['id'] ),
'level' => ($this->level ?? 0) + 1,
'dlang' => $this->dlang,
@@ -111,4 +111,4 @@
</div>
</div>
<?= \Tpl::view( 'shop-product/mass-edit-custom-script' ); ?>
<?= \Shared\Tpl\Tpl::view( 'shop-product/mass-edit-custom-script' ); ?>

View File

@@ -1,5 +1,5 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Tpl::view('shop-product/product-edit-custom-script', [
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('shop-product/product-edit-custom-script', [
'product' => $this->product,
'user' => $this->user,
'languages' => $this->form->languages ?? []

View File

@@ -1,7 +1,7 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?php if (!empty($this->viewModel->customScriptView)): ?>
<?= \Tpl::view($this->viewModel->customScriptView, [
<?= \Shared\Tpl\Tpl::view($this->viewModel->customScriptView, [
'list' => $this->viewModel,
'apilo_enabled' => $this->apilo_enabled,
'shoppro_enabled' => $this->shoppro_enabled,

View File

@@ -11,7 +11,7 @@
<b><?= $category[ 'languages' ][ $this -> dlang ][ 'title' ];?></b>
</div>
<?=
\Tpl::view( 'shop-product/subcategories-list', [
\Shared\Tpl\Tpl::view( 'shop-product/subcategories-list', [
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category[ 'id' ] ),
'product_categories' => $this -> product_categories,
'dlang' => $this -> dlang,

View File

@@ -8,7 +8,7 @@ $selectedIds = is_array($this->selectedIds ?? null) ? $this->selectedIds : [];
<label class="col-lg-4 control-label"><?= htmlspecialchars($label, ENT_QUOTES, 'UTF-8'); ?>:</label>
<div class="col-lg-8">
<div class="promotion-categories-box">
<?= \Tpl::view('shop-promotion/promotion-categories-tree', [
<?= \Shared\Tpl\Tpl::view('shop-promotion/promotion-categories-tree', [
'categories' => $categories,
'selectedIds' => $selectedIds,
'inputName' => $inputName,

View File

@@ -55,7 +55,7 @@ foreach ($selectedRaw as $value) {
</div>
<?php if ($hasChildren): ?>
<?= \Tpl::view('shop-promotion/promotion-categories-tree', [
<?= \Shared\Tpl\Tpl::view('shop-promotion/promotion-categories-tree', [
'categories' => $children,
'selectedIds' => array_keys($selected),
'inputName' => $inputName,

View File

@@ -1,3 +1,3 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Tpl::view('shop-promotion/promotion-edit-custom-script'); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('shop-promotion/promotion-edit-custom-script'); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1,8 +1,8 @@
<?php
echo \Tpl::view('components/form-edit', [
echo \Shared\Tpl\Tpl::view('components/form-edit', [
'form' => $this->form,
]);
echo \Tpl::view('shop-transport/transport-edit-custom-script', [
echo \Shared\Tpl\Tpl::view('shop-transport/transport-edit-custom-script', [
'form' => $this->form,
]);

View File

@@ -1 +1 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/form-edit', ['form' => $this->form]); ?>
<?= \Shared\Tpl\Tpl::view('components/form-edit', ['form' => $this->form]); ?>

View File

@@ -1,2 +1,2 @@
<?= \Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>
<?= \Shared\Tpl\Tpl::view('components/table-list', ['list' => $this->viewModel]); ?>