Do not escape link since tpl is escaped
This commit is contained in:
+1
-1
@@ -716,7 +716,7 @@ class Ps_MainMenu extends Module implements WidgetInterface
|
|||||||
|
|
||||||
if ($category['level_depth'] > 1) {
|
if ($category['level_depth'] > 1) {
|
||||||
$cat = new Category($category['id_category']);
|
$cat = new Category($category['id_category']);
|
||||||
$link = Tools::HtmlEntitiesUTF8($cat->getLink());
|
$link = $cat->getLink();
|
||||||
} else {
|
} else {
|
||||||
$link = $this->context->link->getPageLink('index');
|
$link = $this->context->link->getPageLink('index');
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<ul data-depth="{$depth}">
|
<ul data-depth="{$depth}">
|
||||||
{foreach from=$nodes item=node}
|
{foreach from=$nodes item=node}
|
||||||
<li class="{$node.type}{if $node.current} current{/if}">
|
<li class="{$node.type}{if $node.current} current{/if}">
|
||||||
<a href="{$node.url nofilter}" {if $node.open_in_new_window} target="_blank" {/if}>{$node.label}</a>
|
<a href="{$node.url}" {if $node.open_in_new_window} target="_blank" {/if}>{$node.label}</a>
|
||||||
<div>
|
<div>
|
||||||
{menu nodes=$node.children depth=$node.depth}
|
{menu nodes=$node.children depth=$node.depth}
|
||||||
{if $node.image_urls|count}
|
{if $node.image_urls|count}
|
||||||
|
|||||||
Reference in New Issue
Block a user