mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
commit
f79f373eaf
@ -11,6 +11,7 @@
|
||||
},
|
||||
"require": {
|
||||
"fruitcake/laravel-cors": "^2.0",
|
||||
"visiosoft/style_selector-module": "*"
|
||||
"visiosoft/style_selector-module": "*",
|
||||
"visiosoft/submenu-plugin": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,5 +31,4 @@ class CatsModule extends Module
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
@ -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