mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 20:41:16 +02:00
Additional fix for processwire/processwire-issues#587
This commit is contained in:
@@ -404,6 +404,7 @@ class AdminThemeDefaultHelpers extends WireData {
|
|||||||
if(empty($item['navJSON'])) {
|
if(empty($item['navJSON'])) {
|
||||||
$out .= "<li><a href='{$p->url}$item[url]'>$icon$label</a></li>";
|
$out .= "<li><a href='{$p->url}$item[url]'>$icon$label</a></li>";
|
||||||
} else {
|
} else {
|
||||||
|
$item['navJSON'] = $this->wire('sanitizer')->entities($item['navJSON']);
|
||||||
$out .=
|
$out .=
|
||||||
"<li>" .
|
"<li>" .
|
||||||
"<a class='pw-has-items pw-has-ajax-items' " .
|
"<a class='pw-has-items pw-has-ajax-items' " .
|
||||||
|
@@ -681,6 +681,7 @@ class AdminThemeUikit extends AdminThemeFramework implements Module, Configurabl
|
|||||||
"<ul>" . $this->renderPrimaryNavItemChildren($item['children']) . "</ul>";
|
"<ul>" . $this->renderPrimaryNavItemChildren($item['children']) . "</ul>";
|
||||||
|
|
||||||
} else if(!empty($item['navJSON'])) {
|
} else if(!empty($item['navJSON'])) {
|
||||||
|
$item['navJSON'] = $this->wire('sanitizer')->entities($item['navJSON']);
|
||||||
$out .=
|
$out .=
|
||||||
"<a class='pw-has-items pw-has-ajax-items' " .
|
"<a class='pw-has-items pw-has-ajax-items' " .
|
||||||
"data-from='prnav-page-$item[parent_id]' " .
|
"data-from='prnav-page-$item[parent_id]' " .
|
||||||
@@ -781,6 +782,7 @@ class AdminThemeUikit extends AdminThemeFramework implements Module, Configurabl
|
|||||||
$childNavList .
|
$childNavList .
|
||||||
"</ul>";
|
"</ul>";
|
||||||
} else if($child['navJSON']) {
|
} else if($child['navJSON']) {
|
||||||
|
$child['navJSON'] = $this->wire('sanitizer')->entities($child['navJSON']);
|
||||||
$childClass .= ' uk-parent';
|
$childClass .= ' uk-parent';
|
||||||
$childAttr = " class='pw-has-items pw-has-ajax-items' data-json='$child[navJSON]'";
|
$childAttr = " class='pw-has-items pw-has-ajax-items' data-json='$child[navJSON]'";
|
||||||
$childNav = "<ul $ulAttrs></ul>";
|
$childNav = "<ul $ulAttrs></ul>";
|
||||||
|
Reference in New Issue
Block a user