1
tititou36
Order of icons in navigation bar ?
  • 2009/8/16 10:34

  • tititou36

  • Just popping in

  • Posts: 16

  • Since: 2009/8/15


Hi, I was wondering why in the exm and the oxygen GUI admin theme icons in the navigation bar on the right of the module name (the one in <div id="navOptionsCP">) are in reverse order compared to the menu item or the ones in <div id="buttonbar"> built from loadModuleAdminMenu ?

Is this the way it should be ? Personally I find it confusing...

2
ghia
Re: Order of icons in navigation bar ?
  • 2009/8/16 11:04

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It's only confusing if you switch themes. Most people use always the same admin theme and wouldn't notice.

3
tititou36
Re: Order of icons in navigation bar ?
  • 2009/8/16 11:32

  • tititou36

  • Just popping in

  • Posts: 16

  • Since: 2009/8/15


I do agree that onbe do not change theme every day.

My comment was mostly about new users, just as me

Anyway, in these themes, users see 2 navigation bars with identical functionalities (AFAIK). I think that :
- either only one should be displayed
- or they should be displayed at least in the same order

4
ghia
Re: Order of icons in navigation bar ?
  • 2009/8/16 12:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I don't know why they are in that particular order, maybe the developers liked it that way ... and maybe some users too ...

Is it a bug ... or a feature ... ?

5
Mamba
Re: Order of icons in navigation bar ?
  • 2009/8/16 12:02

  • Mamba

  • Moderator

  • Posts: 11535

  • Since: 2004/4/23


I agree with tititou36 that there should be some consistency, especially since Oxygen will be a new default Admin GUI for us.

Let see if we can fix it in 2.4

6
tititou36
Re: Order of icons in navigation bar ?
  • 2009/8/16 13:31

  • tititou36

  • Just popping in

  • Posts: 16

  • Since: 2009/8/15


This is due to css of the theme :
le="color: #000000"><?php div#navOptionsCP a { border: 0px solid #00536C; height: 32px; display: block; width: 32px; float: right; <-------- margin-right: 2px; margin-left: 0; margin-top: 0; margin-bottom: 0 }

When float is 'right', each block is displayed one at a time, right to left. That is why the order is reverse.

I solution could be to invert the order of the options to be displayed by adding at line 231 :
le="color: #000000"><?php // Options are displayed right to left in the theme, so the order of // the array has to be inverted in order to keep the correct layout $mod_options = array_reverse($mod_options);

and inverting in \modules\system\class\gui\oxygen\templates\admin\system_adm_navbar.html the order navOptionsCP in built by (first preferences THEN options) :
le="color: #000000"><?php <div id="navOptionsCP"> <div class="modname"> <{$modname}> </div> <{if $moddir!='system' && $mod_options}> <a class="tooltip" href="<{$xoops_url}>/modules/system/admin.php?fct=preferences&op=showmod&mod=<{$modid}>" title="<{$lang_preferences}>"> <img src="<{$xoops_url}>/modules/system/class/gui/oxygen/images/navIcons/prefs.png" alt="<{$lang_preferences}>" /> </a> <{/if}> <{foreach item=op from=$mod_options}> <a class="tooltip" href="<{$op.link}>" title="<{$op.title}>"> <img src='<{$op.icon|default:"$xoops_url/modules/system/class/gui/oxygen/images/icon_options.png"}>' alt="<{$op.title}>" /> </a> <{/foreach}> </div>