Выходит такая ошибка
Error: Attribute dataimgt not allowed on element a at this point.
From line 628, column 1; to line 628, column 211
/li>↩<li>↩<a dataimgt="https://dev.audioceh.ru/image/cache/catalog/Vnehnii%20Capi/Cambridge%20Audio/100/cambri…acmagic_100_10529799443-1-200x200.jpg" href="https://dev.audioceh.ru/vneshnie-capy/" class="parent">
А вот что в PHP
foreach ($categories as $category) {
$name = $category['name'];
$pimg = $category['image'];
if (isset($category['image'])) {
$image = $this->model_tool_image->resize($category['image'], 200, 200);
} else {
$image = $this->model_tool_image->resize('no-image.png', 200, 200);
}
$href = $this->url->link('product/category', 'path=' . $category['category_id']);
$class = in_array($category['category_id'], $parts) ? " class=\"active\"" : "";
$parent = $this->getCatTree($category['category_id'], $level + 1);
if ($parent) {
$class = $class ? " class=\"active\"" : " class=\"parent\"";
}
$category_data .= "<li>\n<a dataimgt=\"".$image."\" href=\"" . $href . "\"" . $class . ">" . $name . "</a>" . $parent . "\n</li>\n";
}