Здравствуйте. Подскажите, я впервые сталкнулся с таким.
В шаблоне оформление мобильного меню выведено в контроллер выглядит как то так и выводит только категории. Появилась необходимость добавить ссылки на страницы типа контактов и прочего, я бы просто воткнул в список ссылки, но сайт мультиязычный и необходимо это как то оформить... А как- ума не приложу)
Заранее спасибо!
$html .='<li><span class=" button-view1 '.$child_class.'"><a href="'. $this->url->link('product/category', "path=".$m['id']).'">'.$m["name"].'</a></span>';
if(isset($m['children'])) {
//echo "<pre>"; print_r($m); echo "</pre>";
$sub1 = $m['children'] ;
$html .='<ul class="level2">';
if(isset($sub1)) {
foreach($sub1 as $child1) {
if(count($child1['children'])>0) { $child_class = 'collapse1';} else {
$child_class = 'no-close';
}
$html .='<li><span class="button-view2 '.$child_class.'"><a href="'. $this->url->link('product/category', "path=".$child1['id']).'">'.$child1["name"].'</a></span>';
if(isset($child1['children'])) {
$html .='<ul class="level3">';
$sub2 = $child1['children'] ;
foreach($sub2 as $child2) {
if(count($child2['children'])>0) { $child_class = 'collapse1';} else {
$child_class = 'no-close';
}
$html .='<li><span class=" '.$child_class.'"><a href="'. $this->url->link('product/category', "path=".$child2['id']).'">'.$child2["name"].'</a></span></li>';
}
$html .='</ul>';
}
$html .='</li>';
}
}
$html .='</ul>
<li><a href="index.php?route=blog/blog">Блог</a></li>
<li><a href="index.php?route=information/contact">Контакты</a></li>';
}
$html .='</li>';
}
$html .='</ul>' ;