Display the application icon in the listview
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 5 Nov 2010 04:29:07 +0000 (00:29 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 5 Nov 2010 04:29:39 +0000 (00:29 -0400)
horde/services/portal/mobile.php
horde/templates/portal/mobile.inc

index b407d25..431a59d 100644 (file)
@@ -22,7 +22,7 @@ if (empty($fullname)) {
 $links = array();
 foreach ($registry->listApps() as $app) {
     if ($app != 'horde') {
-        $links[htmlspecialchars($registry->get('name', $app))] = Horde::url('', true, array('app' => $app));
+        $links[htmlspecialchars($registry->get('name', $app))] = array(Horde::url('', true, array('app' => $app)), $registry->get('icon', $app));
     }
 }
 
index 20cf805..082ca8b 100644 (file)
@@ -5,7 +5,7 @@
     <div data-role="content" class="ui-body"">
         <ul data-role="listview" data-theme="a">
         <?php foreach ($links as $key => $val): ?>
-         <li class="extlink"><?php echo $val->link(array('rel' => 'external'))?><?php echo $key ?></a></li>
+         <li class="extlink"><img class="ui-li-icon" src="<?php echo $val[1]?>"><?php echo $val[0]->link(array('rel' => 'external'))?><?php echo $key ?></a></li>
         <?php endforeach; ?>
         </ul>
     </div>