Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
200 views
in Q2A Core by
edited by
1. there are so many global variables in the function.

2. php code mixed with html code

1 Answer

0 votes
by
1. I'm not sure there are a massive amount of global variables. AFAICT they are things like paths to the root, and they're all prefixed with $qa_. There are a bunch of defines, which is standard practice really.

2. All the HTML (or at least the vast majority) is in the theme file, so it's separate from the control logic.
...