{% extends 'MopaBootstrapBundle::base.html.twig' %} {% block html_tag %} {# make your site working offline with Application Cache (AppCache) http://www.html5rocks.com/en/tutorials/appcache/beginner/ #} {% endblock html_tag %} {% block head %} {# TODO: meta variable format, associative array or underscored string type #} {# About DNS prefetching: http://html5boilerplate.com/docs/DNS-Prefetching/ If you fetch data from other domains, add them too #} {% block dns_prefetch %} {% for domain in dns_prefetch %} {% endfor %} {% endblock dns_prefetch %} {# IE10 does not support plugins, such as Flash, in Metro Mode. If your site requires plugins, you can let users know that via the X-UA-Compatible meta element, which will prompt them to switch to Desktop Mode. http://html5boilerplate.com/docs/html-head/#prompt-users-to-switch-to-desktop-mode-in-ie10-metro #} {# WARNING: do not add "initial-scale=1" to viewport, breaks iOS view! https://github.com/h5bp/html5-boilerplate/issues/824 #} {# example: href="/humans.txt" #} {# {% block title %}{% endblock %} #} {% block title%}{{ meta['title'] }}{% endblock %} {# TODO: to be removed as HTML5 has no such tag #} {# TODO: read more about canonical urls and then decide whether enable this part or remove http://html5boilerplate.com/docs/html-head/#canonical-url #} {# TODO: Official short link, poorly supported now #} {# TODO: allow BOTs see SITEMAP #} {% if meta['sitemap'] is defined %} {% endif %} {# TODO: Feeds RSS & ATOM #} {% if meta['feed_atom'] is defined %} {% endif %} {% if meta['feed_rss'] is defined %} {% endif %} {# TODO: allow changing this values from controller scope #} {% if meta['noindex'] %} {% set meta_robots = 'noindex,' %} {% else %} {% set meta_robots = '' %} {% endif %} {% if meta['nofollow'] %} {% set meta_robots = meta_robots ~ 'nofollow' %} {% else %} {% set meta_robots = meta_robots ~ 'follow' %} {% endif %} {% if google['wt'] is defined %} {% endif %} {# TODO: Pingbacks http://html5boilerplate.com/docs/html-head/#pingbacks #} {# TODO: Site Search Browser plugin: http://www.google.com/search?ie=UTF-8&q=how+to+make+browser+search+plugin #} {# Override this block to add your own files! #} {% block head_style %} {{ parent() }} {# Find places where your CSS is broken, docs how to use: http://meyerweb.com/eric/tools/css/diagnostics/' #} {% if diagnostic_mode %} {% stylesheets '@MopaBootstrapBundle/Resources/public/css/diagnostic.css' output='css/screen_diagnostic.css' %} {% endstylesheets %} {% endif %} {% endblock head_style %} {% block head_scripts %} {% javascripts '@MopaBootstrapBundle/Resources/public/js/modernizr-2.5.3-respond-1.1.0.min.js' output='js/head_compiled.js' %} {% endjavascripts %} {% endblock head_scripts %} {% endblock head %} {% block body_start %} {% endblock body_start %} {% block body %} {% block navbar %} {{ parent() }} {% endblock navbar %} {% block container %} {{ parent() }} {% endblock container %} {% block foot_script %} {# Load jQuery from Google CDN http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/ #} {# Asynchronous Google Analytics snippet grabbed from: http://mathiasbynens.be/notes/async-analytics-snippet#dont-push-it #} {# more GA tweaks: http://html5boilerplate.com/docs/ga-augments/ #} {% if google['analytics'] is defined %} {% endif %} {# To only use a subset or add more js overwrite and copy paste this block To speed up page loads save a copy of jQuery in your project and override this block to include the correct path. Otherwise the regeneration is done on every load in dev more with use_controller: true #} {# removed jQuery from assetic load as it is loaded from Google CDN above #} {% javascripts '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-tooltip.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-affix.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-alert.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-button.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-carousel.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-collapse.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-dropdown.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-modal.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-popover.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-scrollspy.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-tab.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-transition.js' '@MopaBootstrapBundle/Resources/public/js/mopabootstrap-collection.js' '@MopaBootstrapBundle/Resources/public/js/mopabootstrap-subnav.js' '@MopaBootstrapBundle/Resources/public/js/html5bp_plugins.js' '@MopaBootstrapBundle/Resources/public/js/html5bp_script.js' '@MopaBootstrapBundle/Resources/public/js/eyecon-bootstrap-datepicker.js' output='js/foot_compiled.js' %} {% endjavascripts %} {% endblock foot_script %} {% endblock body %}