diff --git a/www/index.php b/www/index.php index 1de566475f736bd9d866ffbdee7d644cc57809df..892bf97437aca932dc6dd0844ab3c1426d80fe3e 100644 --- a/www/index.php +++ b/www/index.php @@ -4,10 +4,18 @@ require_once dirname(__FILE__).'/../config.sample.php'; UNL_Templates::$options['version'] = 3; -$page = UNL_Templates::factory('Fixed'); +$template = 'Fixed'; + +if (isset($_GET['format']) + && $_GET['format'] == 'mobile') { + $template = 'Mobile'; +} + +$page = UNL_Templates::factory($template); $page->doctitle = '<title>UNL | Search</title>'; $local_results = ''; $page->head .= ' +<script type="text/javascript" src="/wdn/templates_3.0/scripts/all.js"></script> <script src="http://www.google.com/jsapi?key=ABQIAAAAfxH7RKwDLHYhDD9dSUZe-RTELkNjcWhKXky6vQZrvQAPA5Uw6xR-eQp2X1fKnLG-UqeKQ_7mwv5CcQ" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="http://directory.unl.edu/css/peoplefinder_default.css" /> <link rel="stylesheet" type="text/css" href="searchCSS.css" />