Browse files

Rewrite restricted country template to include HTML5 <head> tags. Clo…

…ses #8
  • Loading branch information...
1 parent 2495608 commit 7a645af3267d9cbb25be61ca3df5fc8da4b49751 @heskethm committed Jun 25, 2012
Showing with 31 additions and 12 deletions.
  1. +31 −12 restricted-country.tpl
View
43 restricted-country.tpl
@@ -6,20 +6,39 @@
* ==============================================================
*}
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}" lang="{$lang_iso}">
+ <!DOCTYPE html>
+ <!--[if IE]><![endif]-->
+ <html lang="{$meta_language}">
<head>
- <title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-{if isset($meta_description)}
- <meta name="description" content="{$meta_description|escape:'htmlall':'UTF-8'}" />
-{/if}
-{if isset($meta_keywords)}
- <meta name="keywords" content="{$meta_keywords|escape:'htmlall':'UTF-8'}" />
-{/if}
- <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
- <link rel="shortcut icon" href="{$favicon_url}" />
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+
+ {* Title set in Back Office > SEO & Titles. *}
+ <title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
+
+ {* Meta description for SERPs. *}
+ {if isset($meta_description) AND $meta_description}
+ <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
+ {/if}
+
+ {* Keywords are nearly useless these days, but PrestaShop has the functionality and some clients may require them (Ref: http://bit.ly/P4FuYL). *}
+ {if isset($meta_keywords) AND $meta_keywords}
+ <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
+ {/if}
+
+ {* Set robots based upon Back Office config. Don't forget to generate a robots.txt too. *}
+ <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
+
+ {* Favicon is displayed in address bar and bookmark bars in visitor's browser (Ref: http://bit.ly/P4F7xg). *}
+ <link rel="icon" href="{$favicon_url}?{$img_update_time}">
+
<link href="{$css_dir}restricted-country.css" rel="stylesheet" type="text/css" />
+
+ {* IE9.js makes older versions of Internet Explorer behave like a standards-compliant browser. (Ref: http://bit.ly/LX9ox0) *}
+ <!--[if lt IE 9]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script><![endif]-->
+
+ {* HTML5Shiv enables HTML5 elements in older versions of Internet Explorer (Ref: http://bit.ly/LX9S6f) *}
+ <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<div id="restricted-country">

0 comments on commit 7a645af

Please sign in to comment.