templates/base.html.twig line 1
<!DOCTYPE html>
<html>
{% set title_before = '' %}
{% set title_main = '' %}
{% set title_after = '' %}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/ad_logo_b.png">
<title>
{% block title %}{{ title_before }} {{ title_main }} {{ title_after }}{% endblock %}
</title>
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/open-iconic/1.1.1/font/css/open-iconic-bootstrap.min.css">
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block head %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body>
<header>
{% block header %}
{% include 'header.html.twig' %}
{% endblock %}
</header>
<main class="wrapper">
{% block sidebar %}
{% include 'sidebar.html.twig' %}
{% endblock %}
<!-- Page Content -->
<div id="main-container">
{% block body %}{% endblock %}
</div>
</main>
{% block javascripts %}
<script type="application/javascript">
$(document).ready(function () {
$('#sidebar ul li .dropdown-toggle').on('click', function(){
$(this).closest('.dropdown').children('.collapse').collapse('toggle');
});
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
$('#content').with = $( document ).width - $('#sidebar').with ;
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
{% endblock %}
</body>
</html>