|
fambi, you cannot do the same actions such as closing and opening a node in PHP. PHP is a scripting language, it doesn't afford you the same functionality and events like Javascript.
No matter what you do, a search engine will not be able to open or close a node as it uses javascript regardless.
The only thing you can do in PHP is get the node names and output them accordingly based on whether they are a parent or a child and so on. Javascript is necessary if you want to retain the same functionality as seen on your example. You COULD do it all in PHP but that would require lots of page loading or AJAX requests. I honestly prefer the simplicity of the javascript version.
I can do this for you, I need you to be a bit more specific, let me know.
|