Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

apnet/LayoutBundle

Repository files navigation

Apnet Layout Bundle

Travis-ci status SensioLabsInsight

Base layout template bundled with Bootstrap, jQuery and html5shiv

Installation

Add requirements to composer.json:

{
  "require" : {
    "apnet/layout-bundle" : "~3.1"
  }
}

Configurations

Register ApnetAsseticImporterBundle and ApnetLayoutBundle bundles in the AppKernel.php file

// ...other bundles ...
$bundles[] = new Apnet\AsseticImporterBundle\ApnetAsseticImporterBundle();
$bundles[] = new Apnet\LayoutBundle\ApnetLayoutBundle();

Twig

Use ApnetLayoutBundle::body.html.twig as a parent for all your layout twig templates

{% extends "ApnetLayoutBundle::body.html.twig" %}

{% block title %}LayoutBundle{% endblock %}

{% block stylesheets_core %}
    {{ parent() }}

    <link href="{{ imported_asset('...css') }}" rel="stylesheet" type="text/css" />
{% endblock %}

{% block body_core %}
    <div class="container">
        ...
    </div>
{% endblock %}

{% block javascripts_core %}
    {{ parent() }}

    <script type="text/javascript" src="{{ imported_asset('...js') }}"></script>
{% endblock %}

About

Default layout skeleton for all sites

Resources

License

Stars

Watchers

Forks

Packages

No packages published