{% extends '@ui2022/schoolnow/page.html.twig' %}
{# TODO: REMOVE - style for basic hc header #}
{% do dom_html_attr_set_class('hc-header') %}
{% do dom_styles([
'https://honeycomb.style/css/honeycomb.css',
'/hc/css/custom.css',
]) %}
{% do include('@ProductsSchoolNow/_assets.html.twig') %}
{% do include('@ProductsSchoolNow/_assets_tracking.html.twig') %}
{% block topbar %}
{% include 'topbar.html.twig' with {
avatar: (app.user.systemProfile.hasAvatar)
? s3_entity(app.user, '/avatar/thumb')
: null,
displayName: app.user.displayName
} %}
{% endblock %}
{% 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: 'My Feed',
icon: 'icon-feed',
link: path('app.schoolnow.dashboard.default.main'),
active: (app.request.attributes.get('_route') is same as('app.schoolnow.dashboard.default.main')),
},
{
title: 'Important',
icon: 'icon-inbox',
link: path('app.schoolnow.dashboard.default.feeds.notifications'),
active: (app.request.attributes.get('_route') is same as('app.schoolnow.dashboard.default.feeds.notifications')),
},
maybe_granted('@app.cms.modules.access') ? {
title: 'My Drafts',
icon: 'icon-myposts',
link: path('app.schoolnow.dashboard.default.drafts.list'),
active: (app.request.attributes.get('_route') is same as('app.schoolnow.dashboard.default.drafts.list')),
} : null,
{
title: 'Calendar',
icon: 'icon-calendaricon',
link: path('app.schoolnow.dashboard.default.feeds.calendar'),
active: (app.request.attributes.get('_route') is same as('app.schoolnow.dashboard.default.feeds.calendar')),
},
{
title: 'Photos',
icon: 'icon-photos',
link: path('app.schoolnow.dashboard.default.feeds.photos'),
active: (app.request.attributes.get('_route') is same as('app.schoolnow.dashboard.default.feeds.photos')),
}
],
} %}
{% endblock %}
{% block modals %}
{{ parent() }}
{% embed '@ui2022/schoolnow/modal--sidepanel.html.twig' with {
attr: {
id: 'topbar-help',
class: 'sidepanel--help',
},
} %}
{% block header %}
<div class="sidepanel__head-left">
<h2 class="text-an-demibold">Help Center</h2>
</div>
<div class="sidepanel__head--right">
<img class="schoolnow-logo" src="/ui2022/images/logo_app_stack_white.svg" width="101" height="15.25" alt="" />
</div>
{% endblock %}
{% endembed %}
{% embed '@ui2022/schoolnow/modal--sidepanel.html.twig' with {
attr: {
id: 'sidepanel-setting',
class: 'setting-sidepanel',
},
} %}
{% block header %}
{% include '@ui2022/schoolnow/topbar__menu_user_header.html.twig' with { account: app.user } %}
{% endblock %}
{% block content %}
{% include '@App/dashboard/settings/navbar.html.twig' with { topMenu: true } %}
{% endblock %}
{% endembed %}
<script type="text/javascript">
(function (window, document, $, undefined) {
$(function () {
$('#topbar-help').on('show.cs.sidepanel', function (e) {
$('#topbar-help .sidepanel__content')
.html('<iframe width="100%" src="https://www-schoolnow-com.sandbox.hs-sites.com/schoolnew-home-page-2022?email={{- app.user.email -}}&slug={{- cms.tenant.slug -}}"></iframe>')
;
});
});
})(window, document, jQuery);
</script>
{% endblock %}