From bbe5a43849e028bcbf0869aaed1098c7a451a2fe Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 25 Dec 2010 00:45:33 -0500 Subject: [PATCH] initial wireframe for ansel mobile view No real functionality here, just wireframe --- ansel/index.php | 7 +++++++ ansel/mobile.php | 32 +++++++++++++++++++++++++++++ ansel/templates/mobile/galleries.html.php | 34 +++++++++++++++++++++++++++++++ ansel/templates/mobile/head.html.php | 2 ++ ansel/templates/mobile/notice.html.php | 9 ++++++++ 5 files changed, 84 insertions(+) create mode 100644 ansel/mobile.php create mode 100644 ansel/templates/mobile/galleries.html.php create mode 100644 ansel/templates/mobile/head.html.php create mode 100644 ansel/templates/mobile/notice.html.php diff --git a/ansel/index.php b/ansel/index.php index 2674cfc8b..48c975da4 100644 --- a/ansel/index.php +++ b/ansel/index.php @@ -10,4 +10,11 @@ require_once dirname(__FILE__) . '/lib/Application.php'; Horde_Registry::appInit('ansel'); + +/* Load mobile? */ +if ($browser->isMobile()) { + include ANSEL_BASE . '/mobile.php'; + exit; +} + Ansel::getUrlFor('default_view', array())->redirect(); diff --git a/ansel/mobile.php b/ansel/mobile.php new file mode 100644 index 000000000..8ff8f6f53 --- /dev/null +++ b/ansel/mobile.php @@ -0,0 +1,32 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Ansel + */ +require_once dirname(__FILE__) . '/lib/Application.php'; +Horde_Registry::appInit('ansel'); + +$title = _("Photo Galleries"); + +$view = new Horde_View(array('templatePath' => ANSEL_TEMPLATES . '/mobile')); +$view->registry = $registry; +$view->portal = Horde::getServiceLink('portal', 'horde')->setRaw(false); +$view->logout = Horde::getServiceLink('logout')->setRaw(false); + +require $registry->get('templates', 'horde') . '/common-header-mobile.inc'; + +echo $view->render('head'); +echo $view->render('galleries'); +//echo $view->render('gallery'); +//echo $view->render('photo'); +echo $view->render('notice'); +$registry->get('templates', 'horde') . '/common-footer-mobile.inc'; diff --git a/ansel/templates/mobile/galleries.html.php b/ansel/templates/mobile/galleries.html.php new file mode 100644 index 000000000..bd9164158 --- /dev/null +++ b/ansel/templates/mobile/galleries.html.php @@ -0,0 +1,34 @@ +
+
+

+ + logout): ?> + + + +
+
+ +
+
\ No newline at end of file diff --git a/ansel/templates/mobile/head.html.php b/ansel/templates/mobile/head.html.php new file mode 100644 index 000000000..55e5548d3 --- /dev/null +++ b/ansel/templates/mobile/head.html.php @@ -0,0 +1,2 @@ + + diff --git a/ansel/templates/mobile/notice.html.php b/ansel/templates/mobile/notice.html.php new file mode 100644 index 000000000..97113461f --- /dev/null +++ b/ansel/templates/mobile/notice.html.php @@ -0,0 +1,9 @@ +
+
+

+
+
+
    +
+
+
\ No newline at end of file -- 2.11.0