HTML5VertiTemplateBundle
This bundle provides HTML5 Verti Template for Symfony2, (*1)
, (*2)
, (*3)
, (*4)
Installation
$ composer require evheniy/html5-verti-template-bundle "1.*"
Or add to composer.json, (*5)
"evheniy/evheniy/html5-verti-template-bundle": "1.*"
AppKernel:, (*6)
public function registerBundles()
{
$bundles = array(
...
new Evheniy\HTML5VertiTemplateBundle\HTML5VertiTemplateBundle(),
);
...
config.yml:, (*7)
#HTML5VertiTemplateBundle
html5_verti_template: ~
or
#HTML5VertiTemplateBundle
html5_verti_template:
cdn: cdn.site.com
And Assetic Configuration in config.yml:, (*8)
#Assetic Configuration
assetic:
bundles: [ HTML5VertiTemplateBundle, JqueryBundle ]
filters:
uglifyjs2:
bin: /usr/local/bin/uglifyjs
uglifycss:
bin: /usr/local/bin/uglifycss
optipng:
bin: /usr/bin/optipng
jpegoptim:
bin: /usr/bin/jpegoptim
This bundle uses JqueryBundle and HTML5CacheBundle. So you need to configure those bundles, (*9)
AppKernel:, (*10)
public function registerBundles()
{
$bundles = array(
...
new Evheniy\JqueryBundle\JqueryBundle(),
new Evheniy\HTML5CacheBundle\HTML5CacheBundle(),
);
...
config.yml:, (*11)
jquery: ~
html5_cache: ~
The last step, (*12)
app/console assetic:dump --env=prod --no-debug
And for cache, (*13)
app/console manifest:dump
Documentation
You can use local CDN (domain):, (*14)
html5_verti_template:
cdn: cdn.site.com
Default value is empty, (*15)
Using
This bundle provides 4 kinds of view:, (*16)
-
main page:, (*17)
{% extends "HTML5VertiTemplateBundle::index.html.twig" %}
-
with left sidebar:, (*18)
{% extends "HTML5VertiTemplateBundle::left_sidebar.html.twig" %}
-
with right sidebar:, (*19)
{% extends "HTML5VertiTemplateBundle::right_sidebar.html.twig" %}
-
[without sidebar][9]:, (*20)
{% extends "HTML5VertiTemplateBundle::no_sidebar.html.twig" %}
You can see how it looks like on demo, (*21)
License
This bundle is under the MIT license., (*22)
Документация на русском языке, (*23)
Demo, (*24)
Verti is a free responsive site template by HTML5 UP, (*25)