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

@@ -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,