Richard,
Just taken a quick look. The problem comes down to the way in which some of your functions are authored. They're a mix of old style and new style module development standards. IN a pnAPI compliant module you shouldn't be including header.php & footer.php. The module functions should return some output back to the core where it will handle how it's displayed within the theme.
I've put a
small fix [41] in cvs to prevent the 'cannot redeclare error'. However you'll still have some text at the bottom of the output has the core expects a return from an
API compliant module. The quick fix for this is to return true at the end of your output. This will instruct the core at you've done everything needed in the module (we use this for things like popup windows and the like).
In the longer term i'd suggest maybe taking the output in pnRender and templates. Given that you also write the same module for xaraya you'll find that working with pnRender is very, very similar to working with xaraya - the abstraction of logic (
PHP), markup (templates) and presentation (
CSS) is very similar between the two systems. Take a look at the example module shipped with .760 for some sample code to work from.
-Mark
--
Visit
My homepage [42] and
Zikula themes. [43]