Skip to content
Snippets Groups Projects
Commit ac977041 authored by Brett Bieber's avatar Brett Bieber
Browse files

If a format=mobile param is passed, used the Mobile template.

parent 7b1fd556
No related branches found
No related tags found
No related merge requests found
......@@ -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" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment