Symfony Structure

File structure

We have used twig files.

{% include 'layouts/_main.html.twig' %}

<head>

    <meta charset="utf-8" />
    <title>{% block title %}Welcome{% endblock %} | Hybrix - Admin & Dashboard Template
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Minimal Admin & Dashboard Template" name="description" />
    <meta content="Themesbrand" name="author" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">

    {% block stylesheets %}{% endblock %}
    {% include 'layouts/_head-css.html.twig' %}

</head>

<body>
    {% block body %}

    <!-- Begin page -->
    <div id="layout-wrapper">

        {% include 'layouts/_menu.html.twig' %}
        {% include 'layouts/_sidebar.html.twig' %}

        <!-- ============================================================== -->
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="main-content">

            <div class="page-content">
                <div class="container-fluid">

                    {% block content %}{% endblock %}

                </div>
                <!-- container-fluid -->
            </div>
            <!-- End Page-content -->

            <div>
                <button type="button" class="btn-success btn-rounded shadow-lg btn btn-icon layout-rightside-btn fs-22"><i class="ri-chat-smile-2-line"></i></button>
            </div>

            {% include 'layouts/_footer.html.twig' %}

        </div>
        <!-- end main content-->

    </div>
    <!-- END layout-wrapper -->

    {% include 'layouts/_customizer.html.twig' %}

    {% include 'layouts/_vendor-scripts.html.twig' %}

    {% block javascripts %}{% endblock %}

    {% endblock %}

</body>
</html>

Theme Setup

You can set the theme in the templates/layouts/_main.html.twig file in the html tag.

<html data-theme="default">
data-theme="default" To set default theme
data-theme="Material" To set material theme
data-theme="Creative" To set creative theme
data-theme="Minimal" To set minimal theme
data-theme="Modern" To set modern theme
data-theme="Interaction" To set interaction theme

Layout setup

You can set the default layout in the templates/layouts/_main.html.twig file in the html tag.

<html data-layout="vertical" data-topbar="light" data-sidebar="dark" data-sidebar-size="lg">
data-layout="vertical" To set default layout as Vertical
data-layout="horizontal" To set default layout as Horizontal
data-layout="twocolumn" To set default layout as Two column
data-layout-mode="light" To set Light layout mode.
data-layout-mode="dark" To set Dark layout mode.
data-sidebar-size="lg" data-layout-width="fluid" To set layout width Fluid and left sidebar large.
data-sidebar-size="sm-hover" data-layout-width="boxed" To set layout width Boxed and left sidebar on hover show menu.
data-layout-position="fixed" To set layout position Fixed.
data-layout-position="scrollable" To set layout position Scrollable.
data-topbar="light" To set the Light color of Topbar.
data-topbar="dark" To set the dark color of Topbar.
data-sidebar-size="lg" To set the Large left sidebar.
data-sidebar-size="md" To set the Compact left sidebar.
data-sidebar-size="sm" To set the Icon view left sidebar.
data-sidebar-size="sm-hover" To set the Icon hover left sidebar.
data-layout-style="default" To set the Default layout.
data-layout-style="detached" To set the Detached layout.
data-sidebar="light" To set the Light color of left Sidebar.
data-sidebar="dark" To set the Dark color of left Sidebar.
data-sidebar="gradient" To set the Gradient color of left Sidebar.
data-sidebar="gradient-2" To set the Gradient-2 color of left Sidebar.
data-sidebar="gradient-3" To set the Gradient-3 color of left Sidebar.
data-sidebar="gradient-4" To set the Gradient-4 color of left Sidebar.
data-sidebar-image="none" To Disable image on left Sidebar.
data-sidebar-image="img-1" To set the img-1 Image of left Sidebar.
data-sidebar-image="img-2" To set the img-2 Image of left Sidebar.
data-sidebar-image="img-3" To set the img-3 Image of left Sidebar.
data-sidebar-image="img-4" To set the img-4 Image of left Sidebar.
data-preloader="enable" To enable the preloader on the Page.
data-preloader="disable" To disable the preloader on the Page.
© Hybrix.
Design & Develop by Themesbrand