mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
update navigation
This commit is contained in:
parent
5b0ad6ad9f
commit
84f26441c0
@ -11,6 +11,7 @@
|
||||
},
|
||||
"require": {
|
||||
"fruitcake/laravel-cors": "^2.0",
|
||||
"visiosoft/style_selector-module": "*"
|
||||
"visiosoft/style_selector-module": "*",
|
||||
"visiosoft/submenu-plugin": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ class CatsModule extends Module
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $navigation = true;
|
||||
protected $navigation = false;
|
||||
|
||||
/**
|
||||
* The addon icon.
|
||||
@ -32,4 +32,5 @@ class CatsModule extends Module
|
||||
]
|
||||
];
|
||||
|
||||
protected $parent = 'visiosoft.module.advs';
|
||||
}
|
||||
|
||||
@ -1,11 +1,34 @@
|
||||
{% import "visiosoft.theme.defaultadmin::macros/sections.twig" as menu %}
|
||||
|
||||
<aside id="menu" class="scrollbar">
|
||||
|
||||
<ul>
|
||||
{% for section in template.cp.sections.root().visible() %}
|
||||
{{ menu.sections(template.cp.sections, section) }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if not template.module.parent %}
|
||||
{% for section in template.cp.sections.root().visible() %}
|
||||
{{ menu.sections(template.cp.sections, section) }}
|
||||
{% endfor %}
|
||||
|
||||
{% for navigation in getSubmenus(template.module.namespace) %}
|
||||
<li>
|
||||
<a href="{{ url(navigation.href) }}">
|
||||
{{ trans(navigation.title) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for navigation in getSections(template.module.parent) %}
|
||||
<li>
|
||||
<a href="{{ url(navigation.href) }}">
|
||||
{{ trans(navigation.title) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% for navigation in getSections(template.module.namespace) %}
|
||||
<li>
|
||||
<a href="{{ url(navigation.href) }}">
|
||||
{{ trans(navigation.title) }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user