Skip to main content

Ivan Teoh

Something personal yet public

94-sidebar.php

(Source)

<!-- begin sidebar -->
<div id="sidebar">
<ul>
    <!-- sidebar lists -->
</ul>
</div><!-- #sidebar -->
<!-- end sidebar --></pre>
The new <code>sidebar.php</code> will look like this. We remove the sidebar id
and replace with primary-side and secondary-side ids. Both elements will have
sidebar class.
<pre lang="phtml" line="7"><!-- begin sidebar -->
<div id="primary-side" class="sidebar">
<ul>
    <!-- primary lists -->
</ul>
</div><!-- #primary-side .sidebar -->
<div id="secondary-side" class="sidebar">
<ul>
    <!-- secondary lists -->
</ul>
</div><!-- #secondary-side .sidebar -->
<!-- end sidebar -->