WordPress.org

Ready to get started?Download WordPress

Forums

JavaScript-Free Flyout menu with WordPress (2 posts)

  1. repixel
    Member
    Posted 5 years ago #

    Hi,

    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
    http://www.cssplay.co.uk/menus/example_flyout.html
    ___________________________________________________

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

    <ul id="top-level_ancestor_list">
    <li>Toplevel_list</li>
    <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>
    
    </ul>
    <em><!--[if lte IE 6]></td></tr></table></a><![endif]--></em>
    </li>
    <li>Toplevel_list</li>
    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 ?
    http://www.webspaceworks.com/resources/wordpress/31/
    lines 192, 215

  2. repixel
    Member
    Posted 5 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
    __________________________________
    (li)
    -> (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