In order to use the layout, your view(s) should extend from the provided base layout
{% extends '@SbSAdminLTE/Layout/base.html.twig' %}
For example you can do it in /app/Resources/views/base.html.twig and all your views will be use the AdminLTE theme.
Located in tag <head>
. Using for title of page.
Located in tag <head>
. Using for favicon of page.
Located in tag <head>
. Please don't forget to use {{ parent() }}
if you want adding your stylesheets in theme. For example:
{% block corestyles %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endblock %}
Located in tag <head>
. Use standard twig block stylesheets to include CSS that is used on single page.
Located in tag <head>
. Please don't forget to use {{ parent() }}
if you want adding your javascripts in theme. For example:
{% block corejs %}
{{ parent() }}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endblock %}
Located in tag <head>
. Using if we need add some javascript in head of page. You can use it to integrate modernizr.js or etc.
Located in tag <head>
. Using if we need add some font in head of page. Please don't forget to use {{ parent() }}
. For example:
{% block fonts %}
{{ parent() }}
<link rel="stylesheet" href="{{ url }}">
{% endblock %}
Located in <div class="wrapper">
. Contains sidebar_toggle_button
, navbar_menu
, navbar_notifications
, navbar_tasks
and navbar_user_account
.
It is not recommended to redefine.
Used for theme logo. You can redefine it for your project. For example:
{% block admin_lte_logo %}
<a href="{{ path('some_path') }}" class="brand-link">
<img src="{{ asset('img/my_logo.png') }}" class="brand-image img-circle elevation-3">
<span class="brand-text font-weight-light">My Application</span>
</a>
{% endblock %}
Located in tag <aside>
. This block used for left side column. It is not recommended to redefine.
Located in <div class="content-wrapper">
. Contains page_header
and page_breadcrumb
. It is not recommended to redefine.
Contain "Page Title", "Description of Page". Recommend use AdminLTE macros for define it. For example:
{% import "@SbSAdminLTE/Layout/main_macros.html.twig" as macros %}
...
{% block page_header %}
{{ macros.page_header("My page", "Description of my page.") }}
{% endblock %}
...
Should contain breadcrumbs.
Located in <section class="content">
. The main page content area.
Located in <div class="wrapper">
. This is footer content area.
Located before tag <body>
close. Use standard twig block javascripts to include JS that is used on single page