[commits] [Wiki] changed: DynamicLogin

Wiki Guest wikiguest at horde.org
Sat Jan 16 16:28:21 UTC 2016


guest [41.140.189.67]  Sat, 16 Jan 2016 16:28:21 +0000

Modified page: http://wiki.horde.org/DynamicLogin
New Revision:  8
Change log:  Revert

@@ -3,32 +3,33 @@

-<code type="php">
+
+<code>
+
  /* If DIMP/MIMP are available, show selection of alternate views. */

  $views = array();
+
  if (!empty($conf['user']['select_view'])) {
+
      $apps = $registry->listApps(null, true);
+
      if (isset($apps['dimp']) || isset($apps['mimp'])) {
+
          $views[] = array('sel' => false, 'val' => 'imp', 'name' =>  
_("Traditional"));
+
          if (isset($apps['dimp'])) {
+
              $views[] = array('sel' => true, 'val' => 'dimp', 'name'  
=> _("Dynamic"));
+
          }
+
          if (isset($apps['mimp'])) {
+
              $views[] = array('sel' => false, 'val' => 'mimp', 'name'  
=> _("Minimalist"));
+
          }
+
      }
+
  }
-</code>
-

-Set the value for "Dynamic" to true as in the example above
-
-Alternately, in order to not override mobile phone detection, change:
-<code type="php">
-        : ($browser->isMobile() && isset($apps['mimp']) ? 'mimp' : 'imp');
  </code>
-
-To:
-<code type="php">
-        : ($browser->isMobile() && isset($apps['mimp']) ? 'mimp' : 'dimp');
-</code>
-



More information about the commits mailing list