{% extends '@ProductsSchoolNow/base.html.twig' %}
{% block navbar %}
{% include '@ui2022/schoolnow/side__menu.html.twig' with {
avatar: (app.user.systemProfile.hasAvatar)
? s3_entity(app.user, '/avatar/thumb')
: '/ui2022/images/avatar.png',
name: app.user.displayName,
items: [
{
title: 'Content',
icon: 'icon-message-plane',
link: path('app.app.dashboard.websites.content.all.list'),
active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.'),
items: [
{
title: 'Pages',
link: path('app.app.dashboard.websites.content.legacy.page.list'),
active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.legacy.page.'),
},
{
title: 'News',
link: path('app.app.dashboard.websites.content.posts.post.list'),
active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.posts.post.'),
},
{
title: 'Events',
link: path('app.app.dashboard.websites.content.events.event.list'),
active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.events.event.'),
},
{
title: 'Photos',
link: path('app.app.dashboard.websites.content.exhibits.gallery.list'),
active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.exhibits.gallery.'),
},
{
title: 'Videos',
link: path('app.app.dashboard.websites.content.exhibits.video.list'),
active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.exhibits.video.'),
},
],
},
{
title: 'Admin',
icon: 'icon-userlist',
link: path('cms.container.dashboard.dashboard.index'),
active: false,
},
{
title: 'Intranet',
icon: 'icon-templates',
link: path('cms.container.dashboard.container.index_intranet'),
active: false,
},
{
title: 'Design Manager',
icon: 'icon-contacts',
link: path('cms.theme.dashboard.template.index'),
active: false,
permission: 'campussuite.cms.theme.manage',
},
],
} %}
{% endblock %}