------------------NavLoop
| 333 | |
| 334 | //------------------NavLoop |
| 335 | NavLoop::NavLoop(Templateiser& ts) : LoopHandler() { |
| 336 | size = pages.size(); |
| 337 | |
| 338 | ts.addLoop("navigation", this); |
| 339 | ts.addKey("pagename", this); |
| 340 | ts.addKey("pagetitle", this); |
| 341 | ts.addKey("currentpage", this); |
| 342 | ts.addKey("currentpagetitle", this); |
| 343 | ts.addIF("iscurrentpage", this); |
| 344 | } |
| 345 | |
| 346 | void NavLoop::computePageList(void) { |
| 347 | // scan the dirs for files with title |