Hi, please

Indexhibit sidebar – with sane id’s & classes

I made some changes to the commented index.php and the plugins index.php (which I found to be the one in charge of the sidebar structure) I basically changed the way these html elements are constructed through php and made sure they can be much more easily selected and styled.

Basically the sidebar I have now looks like this:

<div id="menu">
    <div class="container">
 
        <div class="top-section">
            <h1>Mushon</h1>
        </div>
 
        <ul class="nav sectional">
            <li id="Projects">
                <h3>Projects</h3>
                <ul>
                    <li><a onclick="do_click();" href="http://www.mushon.com/fall08/osd/indexhibit/index.php?/project/kriegspiel/">Just a test</a></li>
                </ul>
            </li>
            <li id="Info">
                <h3>Info</h3>
                <ul>
                    <li class="active"><a onclick="do_click();" href="http://www.mushon.com/fall08/osd/indexhibit/">Main</a></li>
                </ul>
            </li>
            <li id="oldstuff">
                <h3>old stuff</h3>
                <ul>
                    <li><a onclick="do_click();" href="http://www.mushon.com/fall08/osd/indexhibit/index.php?/project/older-one/">older one</a></li>
                </ul>
            </li>
        </ul>
 
        <ul class="bottom-section">
	        <p>Just testing</p>
        </ul>
 
        <!-- you must provide a link to Indexhibit on your site someplace - thank you -->
        <ul class="built">
            <li>Built with <as href="http://www.indexhibit.org/">Indexhibit</as></li>
        </ul>
 
    </div>	
</div>

So try it out and tell me what do you guys think?

3 Comments

  1. joshuwar 11:54, May 16th, 09

    Wonderful… I’m a php-moron, so you’ve just saved me about 9 weeks of stress. Great solution, and thanks for sharing it.

    J

  2. joshuwar 12:48, May 16th, 09

    Okayyyy… I don’t know if you might be able to help here- I’ve tried integrating this script with Ross Cairn’s Expanding Menu plugin detailed here. But perhaps unsurprisingly it doesn’t work quite as expected. Any ideas for merging the two?

  3. Mushon 13:20, May 16th, 09

    I am sorry, I am actually not a big Indexhibit guy, this post was more of a rough hack to help my students hack on their own Indexhibit sites. I would however recommend you look into the commented theme my students came up with:
    http://www.mushon.com/fall08/osd/12/23/my-indexhibit-theme/

    It might be a good starter point for you.
    Good luck!

Post a Comment

You must be logged in to post a comment.