<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @ProductsSchoolNow/base.html.twig */
class __TwigTemplate_c4408ef1380685f3dab8bf841a335449 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'topbar' => [$this, 'block_topbar'],
'navbar' => [$this, 'block_navbar'],
'modals' => [$this, 'block_modals'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@ui2022/schoolnow/page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProductsSchoolNow/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProductsSchoolNow/base.html.twig"));
// line 5
$this->extensions['App\Twig\Extension\DomExtension']->dom_html_attr_($context, "set", "class", "hc-header");
// line 6
$this->extensions['App\Twig\Extension\DomExtension']->dom_styles($context, [0 => "https://honeycomb.style/css/honeycomb.css", 1 => "/hc/css/custom.css"]);
// line 11
twig_include($this->env, $context, "@ProductsSchoolNow/_assets.html.twig");
// line 12
twig_include($this->env, $context, "@ProductsSchoolNow/_assets_tracking.html.twig");
// line 1
$this->parent = $this->loadTemplate("@ui2022/schoolnow/page.html.twig", "@ProductsSchoolNow/base.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 14
public function block_topbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "topbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "topbar"));
// line 15
echo " ";
$this->loadTemplate("topbar.html.twig", "@ProductsSchoolNow/base.html.twig", 15)->display(twig_array_merge(twig_array_merge($context, ["avatar" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 16
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 16, $this->source); })()), "user", [], "any", false, false, false, 16), "systemProfile", [], "any", false, false, false, 16), "hasAvatar", [], "any", false, false, false, 16)) ? ($this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->functionS3Entity(twig_get_attribute($this->env, $this->source, // line 17
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "user", [], "any", false, false, false, 17), "/avatar/thumb")) : (null)), "displayName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 19
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19), "displayName", [], "any", false, false, false, 19)]), ['_args' => twig_to_array(["avatar" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 16
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 16, $this->source); })()), "user", [], "any", false, false, false, 16), "systemProfile", [], "any", false, false, false, 16), "hasAvatar", [], "any", false, false, false, 16)) ? ($this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->functionS3Entity(twig_get_attribute($this->env, $this->source, // line 17
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "user", [], "any", false, false, false, 17), "/avatar/thumb")) : (null)), "displayName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 19
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "user", [], "any", false, false, false, 19), "displayName", [], "any", false, false, false, 19)])]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 23
public function block_navbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 24
echo " ";
$this->loadTemplate("@ui2022/schoolnow/side__menu.html.twig", "@ProductsSchoolNow/base.html.twig", 24)->display(twig_array_merge(twig_array_merge($context, ["avatar" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 25
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "systemProfile", [], "any", false, false, false, 25), "hasAvatar", [], "any", false, false, false, 25)) ? ($this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->functionS3Entity(twig_get_attribute($this->env, $this->source, // line 26
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "user", [], "any", false, false, false, 26), "/avatar/thumb")) : ("/ui2022/images/avatar.png")), "name" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 28
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "user", [], "any", false, false, false, 28), "displayName", [], "any", false, false, false, 28), "items" => [0 => ["title" => "My Feed", "icon" => "icon-feed", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.main"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 34
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "attributes", [], "any", false, false, false, 34), "get", [0 => "_route"], "method", false, false, false, 34) === "app.schoolnow.dashboard.default.main")], 1 => ["title" => "Important", "icon" => "icon-inbox", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.feeds.notifications"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 40
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "attributes", [], "any", false, false, false, 40), "get", [0 => "_route"], "method", false, false, false, 40) === "app.schoolnow.dashboard.default.feeds.notifications")], 2 => (($this->extensions['App\Twig\Extension\SecurityExtension']->maybeGranted("@app.cms.modules.access")) ? (["title" => "My Drafts", "icon" => "icon-myposts", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.drafts.list"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 46
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "attributes", [], "any", false, false, false, 46), "get", [0 => "_route"], "method", false, false, false, 46) === "app.schoolnow.dashboard.default.drafts.list")]) : (null)), 3 => ["title" => "Calendar", "icon" => "icon-calendaricon", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.feeds.calendar"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 52
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "attributes", [], "any", false, false, false, 52), "get", [0 => "_route"], "method", false, false, false, 52) === "app.schoolnow.dashboard.default.feeds.calendar")], 4 => ["title" => "Photos", "icon" => "icon-photos", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.feeds.photos"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 58
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 58, $this->source); })()), "request", [], "any", false, false, false, 58), "attributes", [], "any", false, false, false, 58), "get", [0 => "_route"], "method", false, false, false, 58) === "app.schoolnow.dashboard.default.feeds.photos")]]]), ['_args' => twig_to_array(["avatar" => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 25
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "systemProfile", [], "any", false, false, false, 25), "hasAvatar", [], "any", false, false, false, 25)) ? ($this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->functionS3Entity(twig_get_attribute($this->env, $this->source, // line 26
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 26, $this->source); })()), "user", [], "any", false, false, false, 26), "/avatar/thumb")) : ("/ui2022/images/avatar.png")), "name" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 28
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "user", [], "any", false, false, false, 28), "displayName", [], "any", false, false, false, 28), "items" => [0 => ["title" => "My Feed", "icon" => "icon-feed", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.main"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 34
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "attributes", [], "any", false, false, false, 34), "get", [0 => "_route"], "method", false, false, false, 34) === "app.schoolnow.dashboard.default.main")], 1 => ["title" => "Important", "icon" => "icon-inbox", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.feeds.notifications"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 40
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "attributes", [], "any", false, false, false, 40), "get", [0 => "_route"], "method", false, false, false, 40) === "app.schoolnow.dashboard.default.feeds.notifications")], 2 => (($this->extensions['App\Twig\Extension\SecurityExtension']->maybeGranted("@app.cms.modules.access")) ? (["title" => "My Drafts", "icon" => "icon-myposts", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.drafts.list"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 46
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "attributes", [], "any", false, false, false, 46), "get", [0 => "_route"], "method", false, false, false, 46) === "app.schoolnow.dashboard.default.drafts.list")]) : (null)), 3 => ["title" => "Calendar", "icon" => "icon-calendaricon", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.feeds.calendar"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 52
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "attributes", [], "any", false, false, false, 52), "get", [0 => "_route"], "method", false, false, false, 52) === "app.schoolnow.dashboard.default.feeds.calendar")], 4 => ["title" => "Photos", "icon" => "icon-photos", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.schoolnow.dashboard.default.feeds.photos"), "active" => (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 58
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 58, $this->source); })()), "request", [], "any", false, false, false, 58), "attributes", [], "any", false, false, false, 58), "get", [0 => "_route"], "method", false, false, false, 58) === "app.schoolnow.dashboard.default.feeds.photos")]]])]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 64
public function block_modals($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
// line 65
echo " ";
$this->displayParentBlock("modals", $context, $blocks);
echo "
";
// line 66
$this->loadTemplate("@ProductsSchoolNow/base.html.twig", "@ProductsSchoolNow/base.html.twig", 66, "1693054758")->display(twig_array_merge(twig_array_merge($context, ["attr" => ["id" => "topbar-help", "class" => "sidepanel--help"]]), ['_args' => twig_to_array(["attr" => ["id" => "topbar-help", "class" => "sidepanel--help"]])]));
// line 81
echo "
";
// line 82
$this->loadTemplate("@ProductsSchoolNow/base.html.twig", "@ProductsSchoolNow/base.html.twig", 82, "769042832")->display(twig_array_merge(twig_array_merge($context, ["attr" => ["id" => "sidepanel-setting", "class" => "setting-sidepanel"]]), ['_args' => twig_to_array(["attr" => ["id" => "sidepanel-setting", "class" => "setting-sidepanel"]])]));
// line 95
echo "
<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=";
// line 101
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 101, $this->source); })()), "user", [], "any", false, false, false, 101), "email", [], "any", false, false, false, 101), "html", null, true);
echo "&slug=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["cms"]) || array_key_exists("cms", $context) ? $context["cms"] : (function () { throw new RuntimeError('Variable "cms" does not exist.', 101, $this->source); })()), "tenant", [], "any", false, false, false, 101), "slug", [], "any", false, false, false, 101), "html", null, true);
echo "\"></iframe>')
;
});
});
})(window, document, jQuery);
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ProductsSchoolNow/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 163 => 101, 155 => 95, 153 => 82, 150 => 81, 148 => 66, 143 => 65, 133 => 64, 123 => 58, 122 => 52, 121 => 46, 120 => 40, 119 => 34, 118 => 28, 117 => 26, 116 => 25, 115 => 58, 114 => 52, 113 => 46, 112 => 40, 111 => 34, 110 => 28, 109 => 26, 108 => 25, 106 => 24, 96 => 23, 86 => 19, 85 => 17, 84 => 16, 83 => 19, 82 => 17, 81 => 16, 79 => 15, 69 => 14, 58 => 1, 56 => 12, 54 => 11, 52 => 6, 50 => 5, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
", "@ProductsSchoolNow/base.html.twig", "/var/www/campussuite/src/Products/SchoolNowBundle/Resources/views/base.html.twig");
}
}
/* @ProductsSchoolNow/base.html.twig */
class __TwigTemplate_c4408ef1380685f3dab8bf841a335449___1693054758 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
];
}
protected function doGetParent(array $context)
{
// line 66
return "@ui2022/schoolnow/modal--sidepanel.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProductsSchoolNow/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProductsSchoolNow/base.html.twig"));
$this->parent = $this->loadTemplate("@ui2022/schoolnow/modal--sidepanel.html.twig", "@ProductsSchoolNow/base.html.twig", 66);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 72
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 73
echo " <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>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ProductsSchoolNow/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 363 => 73, 353 => 72, 330 => 66, 163 => 101, 155 => 95, 153 => 82, 150 => 81, 148 => 66, 143 => 65, 133 => 64, 123 => 58, 122 => 52, 121 => 46, 120 => 40, 119 => 34, 118 => 28, 117 => 26, 116 => 25, 115 => 58, 114 => 52, 113 => 46, 112 => 40, 111 => 34, 110 => 28, 109 => 26, 108 => 25, 106 => 24, 96 => 23, 86 => 19, 85 => 17, 84 => 16, 83 => 19, 82 => 17, 81 => 16, 79 => 15, 69 => 14, 58 => 1, 56 => 12, 54 => 11, 52 => 6, 50 => 5, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
", "@ProductsSchoolNow/base.html.twig", "/var/www/campussuite/src/Products/SchoolNowBundle/Resources/views/base.html.twig");
}
}
/* @ProductsSchoolNow/base.html.twig */
class __TwigTemplate_c4408ef1380685f3dab8bf841a335449___769042832 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 82
return "@ui2022/schoolnow/modal--sidepanel.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProductsSchoolNow/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ProductsSchoolNow/base.html.twig"));
$this->parent = $this->loadTemplate("@ui2022/schoolnow/modal--sidepanel.html.twig", "@ProductsSchoolNow/base.html.twig", 82);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 88
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 89
echo " ";
$this->loadTemplate("@ui2022/schoolnow/topbar__menu_user_header.html.twig", "@ProductsSchoolNow/base.html.twig", 89)->display(twig_array_merge(twig_array_merge($context, ["account" => twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 89, $this->source); })()), "user", [], "any", false, false, false, 89)]), ['_args' => twig_to_array(["account" => twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 89, $this->source); })()), "user", [], "any", false, false, false, 89)])]));
// line 90
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 91
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 92
echo " ";
$this->loadTemplate("@App/dashboard/settings/navbar.html.twig", "@ProductsSchoolNow/base.html.twig", 92)->display(twig_array_merge(twig_array_merge($context, ["topMenu" => true]), ['_args' => twig_to_array(["topMenu" => true])]));
// line 93
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ProductsSchoolNow/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 587 => 93, 584 => 92, 574 => 91, 564 => 90, 561 => 89, 551 => 88, 528 => 82, 363 => 73, 353 => 72, 330 => 66, 163 => 101, 155 => 95, 153 => 82, 150 => 81, 148 => 66, 143 => 65, 133 => 64, 123 => 58, 122 => 52, 121 => 46, 120 => 40, 119 => 34, 118 => 28, 117 => 26, 116 => 25, 115 => 58, 114 => 52, 113 => 46, 112 => 40, 111 => 34, 110 => 28, 109 => 26, 108 => 25, 106 => 24, 96 => 23, 86 => 19, 85 => 17, 84 => 16, 83 => 19, 82 => 17, 81 => 16, 79 => 15, 69 => 14, 58 => 1, 56 => 12, 54 => 11, 52 => 6, 50 => 5, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
", "@ProductsSchoolNow/base.html.twig", "/var/www/campussuite/src/Products/SchoolNowBundle/Resources/views/base.html.twig");
}
}