Add "google_chrome_frame" && "header_rss" block

This commit is contained in:
Nicolas Le Goff
2013-07-05 17:57:01 +02:00
parent a520511fdd
commit ae9aa7f4fc

View File

@@ -8,15 +8,17 @@
<!--<![endif]--> <!--<![endif]-->
<head> <head>
{% block header %} {% block header %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{% block title %}Phraseanet{% endblock title %}</title> <title>{% block title %}Phraseanet{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="{{ app['phraseanet.registry'].get('GV_metaDescription') }}" name="description"/> {% block header_meta %}
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta charset="utf-8">
<meta content="{{ app['phraseanet.registry'].get('GV_metaKeywords') }}" name="keywords"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="phraseanet" name="generator"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="{{ app['phraseanet.registry'].get('GV_metaDescription') }}" name="description"/>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta content="{{ app['phraseanet.registry'].get('GV_metaKeywords') }}" name="keywords"/>
<meta content="phraseanet" name="generator"/>
{% endblock header_meta %}
{% block header_rss %}{% endblock %} {% block header_rss %}{% endblock %}
@@ -45,15 +47,21 @@
{% endblock header %} {% endblock header %}
</head> </head>
<body> <body>
{% if app['phraseanet.registry'].get('GV_display_gcf') %} {% block google_chrome_frame %}
<!--[if lt IE 7]> {% if app['phraseanet.registry'].get('GV_display_gcf') %}
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> <!--[if lt IE 7]>
<![endif]--> {% set browserLink = "<a href='http://browsehappy.com/'>" ~ app['browser'].getBrowser() ~ "</a>"|raw %}
{% endif %} {% set GCFLink = "<a href='http://www.google.com/chromeframe/?redirect=true'>Google Chrome Frame</a>"|raw %}
<div class="container"> <p class="alert alert-warning text-center">
{% block content_scaffholding %} <strong>{% trans %}You are using an outdated browser.{% endtrans %}</strong>
{% trans %}Please upgrade {{ browserLink }} or activate {{ GCFLink }} to improve your experience.{% endtrans %}
</p>
<![endif]-->
{% endif %}
{% endblock google_chrome_frame %}
{% endblock %} <div class="container full-height">
{% block content_scaffholding %}{% endblock %}
{% block footer_scaffholding %} {% block footer_scaffholding %}
<div class="row-fluid"> <div class="row-fluid">
<div class="span12"> <div class="span12">
@@ -99,7 +107,6 @@
{% endblock footer_scaffholding %} {% endblock footer_scaffholding %}
</div><!--/.fluid-container--> </div><!--/.fluid-container-->
{% include 'common/analytics.html.twig' %} {% include 'common/analytics.html.twig' %}
{% block scripts %}{% endblock scripts %}
{% block scripts %}{% endblock %}
</body> </body>
</html> </html>