src/App/Resources/views/dashboard/websites/base.html.twig line 1

Open in your IDE?
  1. {% extends '@ProductsSchoolNow/base.html.twig' %}
  2. {% block navbar %}
  3.     {% include '@ui2022/schoolnow/side__menu.html.twig' with {
  4.         avatar: (app.user.systemProfile.hasAvatar)
  5.         ? s3_entity(app.user, '/avatar/thumb')
  6.         : '/ui2022/images/avatar.png',
  7.         name: app.user.displayName,
  8.         items: [
  9.             {
  10.                 title: 'Content',
  11.                 icon: 'icon-message-plane',
  12.                 link: path('app.app.dashboard.websites.content.all.list'),
  13.                 active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.'),
  14.                 items: [
  15.                     {
  16.                         title: 'Pages',
  17.                         link: path('app.app.dashboard.websites.content.legacy.page.list'),
  18.                         active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.legacy.page.'),
  19.                     },
  20.                     {
  21.                         title: 'News',
  22.                         link: path('app.app.dashboard.websites.content.posts.post.list'),
  23.                         active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.posts.post.'),
  24.                     },
  25.                     {
  26.                         title: 'Events',
  27.                         link: path('app.app.dashboard.websites.content.events.event.list'),
  28.                         active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.events.event.'),
  29.                     },
  30.                     {
  31.                         title: 'Photos',
  32.                         link: path('app.app.dashboard.websites.content.exhibits.gallery.list'),
  33.                         active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.exhibits.gallery.'),
  34.                     },
  35.                     {
  36.                         title: 'Videos',
  37.                         link: path('app.app.dashboard.websites.content.exhibits.video.list'),
  38.                         active: (app.request.attributes.get('_route') starts with 'app.app.dashboard.websites.content.exhibits.video.'),
  39.                     },
  40.                 ],
  41.             },
  42.             {
  43.                 title: 'Admin',
  44.                 icon: 'icon-userlist',
  45.                 link: path('cms.container.dashboard.dashboard.index'),
  46.                 active: false,
  47.             },
  48.             {
  49.                 title: 'Intranet',
  50.                 icon: 'icon-templates',
  51.                 link: path('cms.container.dashboard.container.index_intranet'),
  52.                 active: false,
  53.             },
  54.             {
  55.                 title: 'Design Manager',
  56.                 icon: 'icon-contacts',
  57.                 link: path('cms.theme.dashboard.template.index'),
  58.                 active: false,
  59.                 permission: 'campussuite.cms.theme.manage',
  60.             },
  61.         ],
  62.     } %}
  63. {% endblock %}