JavaScript-Free Flyout menu with WordPress (2 posts)

  1. repixel
    Posted 8 years ago #


    me novice tried to modify the cat list, where ANY sub-ul (any non-ancestor) shall get automamtic generated pre- and a post-fix.
    I figure that changes have 2 take place in wp-includes/classes.php lines 604 - 613 .

    This for a Javascript-free flyout menu,
    based on Stu Nichols great work

    Code shall be like this
    Note1: conditinal stuff must automatically appear as html:

    <ul id="top-level_ancestor_list">
    <li "class="show_any_child_list"><a href="xyz">
    <em><!--[if IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]--></em>
    <ul class="any_sublevel_list">
    <li>any sublevel_child list</li>
    <em><!--[if lte IE 6]></td></tr></table></a><![endif]--></em>
    Note2: conditinal stuff must automatically appear as html AFTER the sub-cat list,
    before the </li>

    I get bad code from:
    line 604: $output .= "$indent<!--[if IE 7]><!--><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]--><ul class='children'>\n";

    Any help apreciated, THANKS HERE!
    I've been stuck since nights knowing I dunno enough.
    maybe the code of the fold out category plug could help ?
    lines 192, 215

  2. repixel
    Posted 7 years ago #

    Um, did I write something wrong ?
    If so, I apologise, I'd be sorry!

    Does really no one have a clue about this ?

    Here's once again what I've tried in vain so far:
    ul - Top level cat li / ancestor
    -> (here shall be some extra code 'cause this is some sub ul )
    - some child / or sub / -level li
    - (here some extra code 'cause this is the end of child sub level li)
    ( /ul sub
    -> and again some extra code, maybe in classes.php ? ? )
    (/li )
    - Top level cat li / ancestor

    Greetings, Frank

Topic Closed

This topic has been closed to new replies.

About this Topic