create optional start page for ie8 theme

This commit is contained in:
Max Pozdeev 2020-10-05 18:17:56 +03:00
parent f88bb7ff9d
commit 1a7aaae416
2 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,6 @@
This is a theme for Internet Explorer 8 and above
This is a theme for old browsers without full support of SVG and Flexbox like Internet Explorer 8, Opera 12
To enable it just change the template option in config.php like below:
$config['template'] = 'ie8';
$config['template'] = 'ie8';
Or you can copy file index_ie8.php to the root directory and use it as start page.

View file

@ -0,0 +1,12 @@
<?php
require_once('./init.php');
Config::set('template', 'ie8');
$url = url_dir( get_unsafe_mttinfo('url'), 0 ) . "index_ie8.php";
Config::set('url', $url);
reset_mttinfo('url');
require('./index.php');