Closed (fixed)
Project:
Menu Icons
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Dec 2008 at 21:39 UTC
Updated:
1 May 2009 at 15:25 UTC
Jump to comment: Most recent file
Hey,
I'v rolled out a patch with some extra functionality for your module. Here's what I've done:
Let me know how you feel about these changes.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | menu_icons.patch | 17.31 KB | skilip |
Comments
Comment #1
vm commentedyou did not attach the patch
Comment #2
skilip commentedI haven't figured out how to create a patch which also removes both 'menu_iccons.install' and 'menu_iccons.css'. I hope the patch is further ok.
Comment #3
grendzy commentedMy apologies for not responding sooner; I haven't looked at this in a while. I'm subscribed to this queue now so I should be more responsive in the future. ;-) I appreciate your patch and I'll look at it soon.
These sound good. I'll be glad to be rid of all those extra theme functions if possible; at the time I couldn't figure out a way to alter menu items (adding the menu-$mlid class) without duplicating the whole stack (most of that stuff was copied from nice_menus which faced a similar problem). I would love it if all that junk could be replaced with a simple preprocess function.
Also this module will work better now that #326210: (Needs tests) menu_submit & mlid on menu creation has landed in D6.
Comment #4
skilip commentedNice seeing some activity again ;)
Comment #5
grendzy commentedI haven't tested the patch, but just skimming the code things are looking pretty good.
I'm not sure I agree with removing the CSS file. The intent was to save some bandwidth with tons of repeated
background-repeat: no-repeat;for example, and also to have a stylesheet in place that themers can override.What are your thoughts on this? I'm usually not worried about piling on additional CSS files because most of my projects are able to use the CSS aggregator. Though I'm aware that folks using private files (which I occasionally need too) can't use that feature, and IE is limited to 30 style sheets.
Comment #6
skilip commentedA css file is generated dynamically and cached when possible, so there should be no concern there ;).
Comment #7
skilip commentedFor your concerns on the background-repeat repetition:
IMO adding an extra stylesheet just for that (and maybe padding and a few others) is giving us more overhead tha having that declaration per menu-item. Another argument for declaring that per item, is having the possibility of having pore specific styles per item in the future. Think of adding a configuration option for choosing where to align the icon on a per-item level.
Comment #8
skilip commented