[Tickets #7954] to make visible or not tab<app>

bugs at horde.org bugs at horde.org
Thu Feb 5 16:06:28 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7954
------------------------------------------------------------------------------
  Ticket             | 7954
  Created By         | gerard.breiner at ias.u-psud.fr
  Summary            | to make visible or not tab<app>
  Queue              | DIMP
  Version            | 1.1.1
  Type               | Enhancement
  State              | New
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


gerard.breiner at ias.u-psud.fr (2009-02-05 11:06) wrote:

Hello,

Actually dimp's sidebar and tabbar are showed even thought we don't  
want tabbar (tabingo, tabkronolith, etc.) but we want menuingo,  
menukronolith etc.

So may I suggest a few modifications that works forme ?

dimp/conf/conf.xml
+ <configboolean name="showtab" required="false" desc="Should we use
   a custom function to display the tabbar? ">false</configboolean>

dimp/templates/index/index.inc
<?php if (!empty($application_folders) || !empty($site_menu)): ?>
+ <?php if ($conf['hooks']['showtab']=='true'): ?>

<?php foreach ($site_menu as $key => $menu_item): if ($menu_item ==  
'separator') continue; ?>
         <li>
          <a id="tab<?php echo $key ?>"><img src="<?php echo  
$menu_item['icon'] ?>" alt="<?php echo $menu_item['text'] ?>" /><?php  
echo $menu_item['text'] ?></a>
         </li>
<?php endforeach; ?>
+ <?php endif; ?>

dimp/index.php

  /* Add the site specific javascript now. */
if (!empty($site_menu)) {
     foreach ($site_menu as $key => $menu_item) {
         if ($menu_item == 'separator') {
             continue;
         }
		$js_code[] = 'DimpCore.clickObserveHandler({ d: $(\'menu' . $key .  
'\'), f: function() { ' . $menu_item['action'] . ' } })';
+        if ($conf['hooks']['showtab']==true) {
			$js_code[] = 'DimpCore.clickObserveHandler({ d: $(\'tab' . $key .  
'\'), f: function() { ' . $menu_item['action'] . ' } })';
+			}
     }
}








More information about the bugs mailing list