I’ve been playing with the connections theme by Patricia Müller. There have been several minor changes,
index.php
Moved Links into sidebar.php
header.php
Limited archives to current month so that menu does not wrap
- <?php get_archives('monthly', '1', 'html', '', '', TRUE);
Added drop down menu. Wrapping all list items within <form> </form> declarations prevents drop down menu appearing on a separate line.
- <ul id="topnav"><form id="archiveform" action="">
- ...
- <li>|
- <SELECT NAME="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
- <OPTION SELECTED VALUE="">Other months...</OPTION>
- <?php get_archives('monthly', '', 'option', '', '', TRUE); ?>
- </SELECT>
- </li></form>
- </ul>
Reorder from Home, Login, Archives, Links, About, Contact to Login, About, Contact, Links, Recent, Archives, DropDown
sidebar.php
Moved Links from index.php
Changed order of elements from Categories, Monthly, Pages, Search to Search, Categories, Links, Monthly, Pages
Changed Links from unordered list to table so that I could centre graphics
- <table><?php get_links('-1', '<tr><td align="center">', '<hr></td></tr>', '<br />', TRUE); ?></table>
styles.css
Added definitions for table
- #sidebar table
- {
- list-style-type: none;
- padding: 5px;
- margin: 0;
- font-size: 0.9em;
- padding-bottom:3em;
- background:#F3F6ED url(img/sidenav_bottom.jpg) no-repeat bottom;
- border:#E1D6c6 1px solid;
- border-top:#f3f6ed 1px solid;
- }
- #sidebar table tr th, #sidebar table tr td
- {
- font-size: 1em;
- text-align: center;
- background-color: #ffffff;
- }
Note that in order to define the <td> element, I needed to define the whole tree table tr td. These definitions are based on those for #sidebar ul.
Added definition for select so that drop down menu fits within the top menu
- #topnav form select
- {
- font-size:0.7em;
- }
search.php
Removed bug for favicon. Path was was /favicon.ico/bullet.ico
- <link rel="shortcut icon" href="/favicon.ico" />