ver. 0.283: Legacy class cleanup — S, Html, Email, Image, Log, Mobile_Detect → Shared namespace

- Migrate class.S → Shared\Helpers\Helpers (140+ files), remove 12 unused methods
- Migrate class.Html → Shared\Html\Html
- Migrate class.Email → Shared\Email\Email
- Migrate class.Image → Shared\Image\ImageManipulator
- Delete class.Log (unused), class.Mobile_Detect (outdated UA detection)
- Remove grid library loading from admin (index.php, ajax.php)
- Replace gridEdit usage in 10 admin templates with grid-edit-replacement.php
- Fix grid-edit-replacement.php AJAX to send values as JSON (grid.js compat)
- Remove mobile layout conditionals (m_html/m_css/m_js) from Site + LayoutsRepository
- Remove \Log::save_log() calls from OrderAdminService, ShopOrder, Order

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 23:06:06 +01:00
parent 8e97413361
commit 431add234c
159 changed files with 1501 additions and 3043 deletions

View File

@@ -57,7 +57,7 @@ class FormFieldRenderer
$params['class'] .= ' error';
}
return $this->wrapWithError(\Html::input($params), $error);
return $this->wrapWithError(\Shared\Html\Html::input($params), $error);
}
/**
@@ -81,7 +81,7 @@ class FormFieldRenderer
$params['class'] .= ' error';
}
return $this->wrapWithError(\Html::input($params), $error);
return $this->wrapWithError(\Shared\Html\Html::input($params), $error);
}
/**
@@ -105,7 +105,7 @@ class FormFieldRenderer
$params['class'] .= ' error';
}
return $this->wrapWithError(\Html::input($params), $error);
return $this->wrapWithError(\Shared\Html\Html::input($params), $error);
}
/**
@@ -115,7 +115,7 @@ class FormFieldRenderer
{
$value = $this->form->getFieldValue($field);
return \Html::input([
return \Shared\Html\Html::input([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -146,7 +146,7 @@ class FormFieldRenderer
$params['class'] .= ' error';
}
return $this->wrapWithError(\Html::input($params), $error);
return $this->wrapWithError(\Shared\Html\Html::input($params), $error);
}
/**
@@ -156,7 +156,7 @@ class FormFieldRenderer
{
$value = $this->form->getFieldValue($field);
return \Html::input([
return \Shared\Html\Html::input([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -180,7 +180,7 @@ class FormFieldRenderer
$checked = (bool) $value;
}
return \Html::input_switch([
return \Shared\Html\Html::input_switch([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -209,7 +209,7 @@ class FormFieldRenderer
$params['class'] .= ' error';
}
return $this->wrapWithError(\Html::select($params), $error);
return $this->wrapWithError(\Shared\Html\Html::select($params), $error);
}
/**
@@ -219,7 +219,7 @@ class FormFieldRenderer
{
$value = $this->form->getFieldValue($field);
return \Html::textarea([
return \Shared\Html\Html::textarea([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -236,7 +236,7 @@ class FormFieldRenderer
{
$value = $this->form->getFieldValue($field);
return \Html::textarea([
return \Shared\Html\Html::textarea([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -255,7 +255,7 @@ class FormFieldRenderer
$filemanagerUrl = $field->filemanagerUrl ?? $this->generateFilemanagerUrl($field->id);
return \Html::input_icon([
return \Shared\Html\Html::input_icon([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -276,7 +276,7 @@ class FormFieldRenderer
if ($field->useFilemanager) {
$filemanagerUrl = $field->filemanagerUrl ?? $this->generateFilemanagerUrl($field->id);
return \Html::input_icon([
return \Shared\Html\Html::input_icon([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -287,7 +287,7 @@ class FormFieldRenderer
]);
}
return \Html::input([
return \Shared\Html\Html::input([
'label' => $field->label,
'name' => $field->name,
'id' => $field->id,
@@ -395,7 +395,7 @@ class FormFieldRenderer
switch ($field->type) {
case FormFieldType::IMAGE:
$filemanagerUrl = $field->filemanagerUrl ?? $this->generateFilemanagerUrl($id);
return $this->wrapWithError(\Html::input_icon([
return $this->wrapWithError(\Shared\Html\Html::input_icon([
'label' => $field->label,
'name' => $name,
'id' => $id,
@@ -407,7 +407,7 @@ class FormFieldRenderer
case FormFieldType::TEXTAREA:
case FormFieldType::EDITOR:
return $this->wrapWithError(\Html::textarea([
return $this->wrapWithError(\Shared\Html\Html::textarea([
'label' => $field->label,
'name' => $name,
'id' => $id,
@@ -417,7 +417,7 @@ class FormFieldRenderer
]), $error);
case FormFieldType::SWITCH:
return \Html::input_switch([
return \Shared\Html\Html::input_switch([
'label' => $field->label,
'name' => $name,
'id' => $id,
@@ -425,7 +425,7 @@ class FormFieldRenderer
]);
case FormFieldType::SELECT:
return $this->wrapWithError(\Html::select([
return $this->wrapWithError(\Shared\Html\Html::select([
'label' => $field->label,
'name' => $name,
'id' => $id,
@@ -441,7 +441,7 @@ class FormFieldRenderer
$iconJs = str_replace('{lang}', (string)$languageId, $iconJs);
}
return $this->wrapWithError(\Html::input_icon([
return $this->wrapWithError(\Shared\Html\Html::input_icon([
'label' => $field->label,
'name' => $name,
'id' => $id,
@@ -454,7 +454,7 @@ class FormFieldRenderer
]), $error);
}
return $this->wrapWithError(\Html::input([
return $this->wrapWithError(\Shared\Html\Html::input([
'label' => $field->label,
'name' => $name,
'id' => $id,