From ac9770413668d278fe25dfecb32e9dcff4ab340d Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Thu, 10 Mar 2011 20:11:21 +0000
Subject: [PATCH] If a format=mobile param is passed, used the Mobile template.

---
 www/index.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/www/index.php b/www/index.php
index 1de5664..892bf97 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" />
-- 
GitLab