Hey there, I noticed that in the sidebar menu ( sidebar_nav.tpl.php ) in wetkit menu - there is either extra code that needs to be removed - or missing div element.
On line 35 I am seeing this
<<?php print $tag . $attributes . $id; ?>>
I think it is suppose to be this:
<div<?php print $tag . $attributes . $id; ?>>
Also at the bottom of the page on line 58 I see
</<?php print $tag; ?>>
I'm assuming its suppose to look like this since we cannot print tags inside a closing tag
</div>
I will create a patch momentarily.
There is also an issue with old markup in this, but I am going to open that as a separate issue.
Comment | File | Size | Author |
---|---|---|---|
#6 | sidebar_menu_extra-2680619-6.patch | 10.15 KB | sylus |
Comments
Comment #2
aastrong CreditAttribution: aastrong commentedhttps://github.com/wet-boew-wem/wetkit-menu
Comment #3
sylus CreditAttribution: sylus commentedIs the code not rendering correctly? This might be legacy from and older theme as don't look at those old templates recently.
That said the code is correct and this doesn't make sense to me:
That will render as:
And
That is also correct as it will just render as
Comment #4
sylus CreditAttribution: sylus commentedComment #5
sylus CreditAttribution: sylus commentedOkay I took a closer look and see the problem. These are definitely legacy templates from adaptivetheme, you probably are using them because you have a custom mega menu implementation leveraging mini panels?
I'll align these templates right now and attach a patch.
Comment #6
sylus CreditAttribution: sylus commentedI still think there are a few odd things in these templates $content_attributes, not sure if it exists but fixed the tags issue and corrected the heading @docs
http://www.drupalcontrib.org/api/drupal/contributions!panels!templates!p...
Comment #7
sylus CreditAttribution: sylus commentedAlready pushed fixes to wetkit_menu, so let me know :)
Comment #8
sylus CreditAttribution: sylus commentedI wonder if this is mini panels mega menu specific code?
And not sure we need:
Are these important in your menu renderings?
Comment #9
sylus CreditAttribution: sylus commentedNevermind the first case is actually important as is special logic when to determine to use h1. So only the second example.
Comment #11
sylus CreditAttribution: sylus commentedI think the bulk of this is fixed, can file further issues for more refinements if missed anything ^_^.
Comment #12
aastrong CreditAttribution: aastrong commentedAwesome, thanks !