I have a custom form for submitting content with. The problem is all of the form input boxes are the same size, which is fine for all of them except one that I really need to be at least twice as wide.
I'm working on my custom theme based on Zen (the template not the philosophy)
and i have a menu where i want an added class on the "selected" list item. I had done something similar with wordpress which was pretty simple
if you look at the first list item i have the sort of if argument i want .
The one on top works perfect
but i need one where it would do it depending on the node id
this is what i have tried to do but it doesn't seem to work
<?php if ($node->id == '7'){ echo " class=\"selected\"";}?>
can anyone help me out i'm sure it's a very simple argument to code but I's just a newbie
also can you do something like this ,
<?php if argument =='7|8|45' ->the result ?>
where 7|8|45 means if it's either of these values?
I've been all over this site and closely inspected menu.inc and can't figure this out.
I want to theme individual menu items with theme_menu_item(), but base my if/else statements on the id of the parent, so I can theme whole menus at once. Surely there is a way, knowing the $mid, to access the $pid through this function? Or am I going down the wrong path?