mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Add browsehappy code
This commit is contained in:
parent
fd2c2d552a
commit
82b41d4df5
@ -462,7 +462,7 @@ function tickers()
|
|||||||
*/
|
*/
|
||||||
function template_place_holder($type)
|
function template_place_holder($type)
|
||||||
{
|
{
|
||||||
global $template_place_holders;
|
global $twig, $template_place_holders;
|
||||||
$ret = '';
|
$ret = '';
|
||||||
|
|
||||||
if(array_key_exists($type, $template_place_holders) && is_array($template_place_holders[$type]))
|
if(array_key_exists($type, $template_place_holders) && is_array($template_place_holders[$type]))
|
||||||
@ -471,6 +471,9 @@ function template_place_holder($type)
|
|||||||
if($type === 'head_start') {
|
if($type === 'head_start') {
|
||||||
$ret .= template_header();
|
$ret .= template_header();
|
||||||
}
|
}
|
||||||
|
elseif ($type === 'body_start') {
|
||||||
|
$ret .= $twig->render('browsehappy.html.twig');
|
||||||
|
}
|
||||||
elseif($type === 'body_end') {
|
elseif($type === 'body_end') {
|
||||||
$ret .= template_ga_code();
|
$ret .= template_ga_code();
|
||||||
}
|
}
|
||||||
|
3
system/templates/browsehappy.html.twig
Normal file
3
system/templates/browsehappy.html.twig
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<!--[if lt IE 7]>
|
||||||
|
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||||
|
<![endif]-->
|
Loading…
x
Reference in New Issue
Block a user