<ul id="nav">
- <li><strong><a href="/">gabriel dunne</a></strong></li>
+ <li><a href="<?=WEB_ROOT?>/">home</a></li>
+ <li><a href="<?=WEB_ROOT?>/index">index</a></li>
+
<br />
- <li><a href="/projects">projects</a></li>
-<!--
- <select>
- <? $dirs = get_dirs(''); ?>
- <? foreach($dirs as $dir) : ?>
- <option value="<?=$dir['url']?>"><?=$dir['name']?></option>
- <? endforeach; ?>
- </select>
--->
- <li><a href="/">blog</a></li>
+ <? $dirs = get_dirs("", array('recursive' => 0)); ?>
+ <? foreach($dirs as $dir) : ?>
+ <li><a href="/<?=$dir['url']?>"><?=$dir['name']?></a></li>
+ <? endforeach; ?>
<br />
- <li><a href="/bio">bio</a></li>
- <li><a href="/contact">contact</a></li>
+ <li><a href="/contact">contact</a></li>
+ <li><a href="/bio">bio</a></li>
+ <br />
+ <br />
-<br />
-<br />
+ <li id="nextprev">
+ <? $this->include_template('nextprev.html.tpl'); ?>
+ </li>
+
+ <!--
+ <li id="viewtoggle">
+ <? $this->include_template('viewtoggle.html.tpl'); ?>
+ </li>
+ -->
-
-
-<!--
- <br /><br />
- <li><a href="/"><em>recent</em></a></li>
- <br />
- <? list($entries, $total) = get_entries('/'); ?>
- <? $c = 0; foreach($entries as $p) : $c++; ?>
- <li><a href="<?=$p['url']?>"><?=$p['title']?></a></li>
- <? if ($c > 10) break; endforeach; ?>
-<br /><br />
- <li><a href="/archive/"><em>archive</em></a></li>
- <br />
- <? $dirs = get_dirs('projects/'); ?>
- <? foreach($dirs as $dir) : ?>
- <li><a href="<?=$dir['url']?>"><?=$dir['name']?></a></li>
- <? endforeach; ?>
-
-
- <br /><br/>
-
-
- <li><a href="/projects/">projects</a></li>
-
- <? list($entries, $total) = get_entries('/projects/'); ?>
- <? foreach($entries as $p) : ?>
- <li><a href="<?=$p['url']?>"><?=$p['title']?></a></li>
- <? endforeach; ?>
- <br /><br/>
- -->
-
-
</ul>
+