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": {
|
"require": {
|
||||||
"fruitcake/laravel-cors": "^2.0",
|
"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
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected $navigation = true;
|
protected $navigation = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The addon icon.
|
* 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 %}
|
{% import "visiosoft.theme.defaultadmin::macros/sections.twig" as menu %}
|
||||||
|
|
||||||
<aside id="menu" class="scrollbar">
|
<aside id="menu" class="scrollbar">
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for section in template.cp.sections.root().visible() %}
|
{% if not template.module.parent %}
|
||||||
{{ menu.sections(template.cp.sections, section) }}
|
{% for section in template.cp.sections.root().visible() %}
|
||||||
{% endfor %}
|
{{ menu.sections(template.cp.sections, section) }}
|
||||||
</ul>
|
{% 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>
|
</aside>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user